public class AuthenticationProviderWrapper
extends java.lang.Object
implements org.springframework.security.authentication.AuthenticationProvider
Constructor and Description |
---|
AuthenticationProviderWrapper(org.springframework.security.authentication.AuthenticationProvider delegate)
Construct an AuthenticationProviderWrapper that will delegate to the given AuthenticationProvider.
|
AuthenticationProviderWrapper(org.springframework.security.authentication.AuthenticationProvider delegate,
com.appiancorp.security.auth.ScsKeyChangeHandler scsKeyChangeHandler)
Construct an AuthenticationProviderWrapper that will delegate to the given AuthenticationProvider, and
will handle changes in scs key using the provided ScsKeyChangeHandler.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication)
Calls the delegate configured via the constructor.
|
org.springframework.security.authentication.AuthenticationProvider |
getDelegate()
Get the AuthenticationProvider to which the AuthenticationProviderWraper is delegating method calls.
|
protected char[] |
getScsKey(org.springframework.security.core.Authentication originalAuthToken,
org.springframework.security.core.Authentication resultAuthToken)
Get an appropriate value for the Secure Credential Store key.
|
boolean |
supports(java.lang.Class<?> authentication)
Defers to the delegate configured via the constructor.
|
public AuthenticationProviderWrapper(org.springframework.security.authentication.AuthenticationProvider delegate)
supports(Class>)
and authenticate(Authenticate)
both delegate to
this class. It uses the default ScsKeyChangeHandler
to handle changes in scs key. This is the
constructor that should be used to wrap custom authentication providers.public AuthenticationProviderWrapper(org.springframework.security.authentication.AuthenticationProvider delegate, com.appiancorp.security.auth.ScsKeyChangeHandler scsKeyChangeHandler)
supports(Class>)
and authenticate(Authenticate)
both delegate to
this class.public final boolean supports(java.lang.Class<?> authentication)
supports
in interface org.springframework.security.authentication.AuthenticationProvider
public final org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
authenticate
in interface org.springframework.security.authentication.AuthenticationProvider
org.springframework.security.core.AuthenticationException
protected char[] getScsKey(org.springframework.security.core.Authentication originalAuthToken, org.springframework.security.core.Authentication resultAuthToken)
originalAuthToken
to get the authentication credentials.
The value returned from this method is never stored in the Appian system. A hashed version of it resides
in memory for the duration of a User Session. It is used to encrypt and decrypt values in for the user
in the Appian Secure Credential Store. A hashed version is stored on disk to compare against future
keys to determine when to clear the user secured credential store for a given user.public org.springframework.security.authentication.AuthenticationProvider getDelegate()
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.