Class TokenProviderCallback
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.callback.TokenProviderCallback
-
- All Implemented Interfaces:
javax.security.auth.callback.Callback
public class TokenProviderCallback extends java.lang.Object implements javax.security.auth.callback.Callback
Callback implementation to set and retrieve a login token provider.
-
-
Constructor Summary
Constructors Constructor Description TokenProviderCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenProvider
getTokenProvider()
Returns the token provider as set usingsetTokenProvider(TokenProvider)
ornull
.void
setTokenProvider(TokenProvider tokenProvider)
Sets theTokenProvider
that is being used during the authentication process.
-
-
-
Method Detail
-
getTokenProvider
public TokenProvider getTokenProvider()
Returns the token provider as set usingsetTokenProvider(TokenProvider)
ornull
.- Returns:
- an instance of
TokenProvider
ornull
if no provider has been set before.
-
setTokenProvider
public void setTokenProvider(TokenProvider tokenProvider)
Sets theTokenProvider
that is being used during the authentication process.- Parameters:
tokenProvider
- TheTokenProvider
to use during the authentication process.
-
-