Class DynamicPropertyPrivateKey

java.lang.Object
com.broadleafcommerce.auth.user.autoconfigure.support.keys.AbstractDynamicPropertyKey<RSAPrivateKey>
com.broadleafcommerce.auth.user.autoconfigure.support.keys.DynamicPropertyPrivateKey
All Implemented Interfaces:
Serializable, RSAKey, RSAPrivateKey, Key, PrivateKey, Destroyable

public class DynamicPropertyPrivateKey extends AbstractDynamicPropertyKey<RSAPrivateKey> implements RSAPrivateKey
This is a special 'smart key' bean that will always present the latest private key for AuthenticationServices based on AuthorizationServerProperties.OAuth2.getEncodedPrivateKey(). The only exception is when this key is used multiple times in a request lifecycle - in that case, the 'latest' value is computed in the first use of this key, and then that value is used for the remainder of that request's lifecycle.
See Also: