Class CredentialsCallback
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.callback.CredentialsCallback
-
- All Implemented Interfaces:
javax.security.auth.callback.Callback
public class CredentialsCallback extends java.lang.Object implements javax.security.auth.callback.Callback
Callback implementation to retrieveCredentials
.
-
-
Constructor Summary
Constructors Constructor Description CredentialsCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Credentials
getCredentials()
Returns theCredentials
that have been set before usingsetCredentials(javax.jcr.Credentials)
.void
setCredentials(Credentials credentials)
Set the credentials.
-
-
-
Method Detail
-
getCredentials
@Nullable public @Nullable Credentials getCredentials()
Returns theCredentials
that have been set before usingsetCredentials(javax.jcr.Credentials)
.- Returns:
- The
Credentials
to be used for authentication ornull
.
-
setCredentials
public void setCredentials(Credentials credentials)
Set the credentials.- Parameters:
credentials
- The credentials to be used in the authentication process. They may be null if no credentials have been specified inContentRepository.login(javax.jcr.Credentials, String)
-
-