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 Credentials
Returns theCredentials
that have been set before usingsetCredentials(javax.jcr.Credentials)
.void
setCredentials
(Credentials credentials) Set the credentials.
-
Constructor Details
-
CredentialsCallback
public CredentialsCallback()
-
-
Method Details
-
getCredentials
Returns theCredentials
that have been set before usingsetCredentials(javax.jcr.Credentials)
.- Returns:
- The
Credentials
to 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)
-