Class CredentialsCallback
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.callback.CredentialsCallback
- All Implemented Interfaces:
Callback
Callback implementation to retrieve
Credentials.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable CredentialsReturns theCredentialsthat have been set before usingsetCredentials(javax.jcr.Credentials).voidsetCredentials(Credentials credentials) Set the credentials.
-
Constructor Details
-
CredentialsCallback
public CredentialsCallback()
-
-
Method Details
-
getCredentials
Returns theCredentialsthat have been set before usingsetCredentials(javax.jcr.Credentials).- Returns:
- The
Credentialsto be used for authentication ornull.
-
setCredentials
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)
-