Module jakarta.security
Class UsernamePasswordCredential
java.lang.Object
jakarta.security.enterprise.credential.AbstractClearableCredential
jakarta.security.enterprise.credential.UsernamePasswordCredential
- All Implemented Interfaces:
- Credential
- Direct Known Subclasses:
- BasicAuthenticationCredential
Represents the credentials typically used by standard caller name/password authentication.
- 
Constructor SummaryConstructorsConstructorDescriptionUsernamePasswordCredential(String callerName, Password password) Constructor.UsernamePasswordCredential(String callerName, String password) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidInvokes the specific subclass to securely clear the credential value.booleanDetermines the password.Determines the password.Methods inherited from class jakarta.security.enterprise.credential.AbstractClearableCredentialclear, isCleared, setClearedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.security.enterprise.credential.CredentialisValid
- 
Constructor Details- 
UsernamePasswordCredential
- 
UsernamePasswordCredential
 
- 
- 
Method Details- 
getPassword
- 
getPasswordAsString
- 
clearCredentialpublic void clearCredential()Description copied from class:AbstractClearableCredentialInvokes the specific subclass to securely clear the credential value. SomeCredentialFor example, if the credential includes a password, this method would overwrite the password value. - Specified by:
- clearCredentialin class- AbstractClearableCredential
 
- 
getCaller
- 
compareTo
 
-