Class CredentialValidationResult
- java.lang.Object
- 
- jakarta.security.enterprise.identitystore.CredentialValidationResult
 
- 
 public class CredentialValidationResult extends Object CredentialValidationResultis the result from an attempt to validate an instance ofCredential.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCredentialValidationResult.Status
 - 
Field SummaryFields Modifier and Type Field Description static CredentialValidationResultINVALID_RESULTstatic CredentialValidationResultNOT_VALIDATED_RESULT
 - 
Constructor SummaryConstructors Constructor Description CredentialValidationResult(CallerPrincipal callerPrincipal)Constructor for a VALID result.CredentialValidationResult(CallerPrincipal callerPrincipal, Set<String> groups)Constructor for a VALID result.CredentialValidationResult(String callerName)Constructor for a VALID result.CredentialValidationResult(String storeId, CallerPrincipal callerPrincipal, String callerDn, String callerUniqueId, Set<String> groups)Constructor for a VALID result.CredentialValidationResult(String storeId, String callerName, String callerDn, String callerUniqueId, Set<String> groups)Constructor for a VALID result.CredentialValidationResult(String callerName, Set<String> groups)Constructor for a VALID result.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCallerDn()Return the CallerPrincipal for the validated credential.Set<String>getCallerGroups()Determines the set of groups that the specified Caller is in, based on the associated identity store.CallerPrincipalgetCallerPrincipal()Return the CallerPrincipal for the validated credential.StringgetCallerUniqueId()Return a string that uniquely identifies this caller within the identity store (since the Principal name used may not be unique).StringgetIdentityStoreId()Return the unique ID of the identity store used to validate the credentials.CredentialValidationResult.StatusgetStatus()Determines the validation status.
 
- 
- 
- 
Field Detail- 
INVALID_RESULTpublic static final CredentialValidationResult INVALID_RESULT 
 - 
NOT_VALIDATED_RESULTpublic static final CredentialValidationResult NOT_VALIDATED_RESULT 
 
- 
 - 
Constructor Detail- 
CredentialValidationResultpublic CredentialValidationResult(String callerName) Constructor for a VALID result.- Parameters:
- callerName- Name of the validated caller
 
 - 
CredentialValidationResultpublic CredentialValidationResult(CallerPrincipal callerPrincipal) Constructor for a VALID result.- Parameters:
- callerPrincipal- CallerPrincipal of validated caller
 
 - 
CredentialValidationResultpublic CredentialValidationResult(String callerName, Set<String> groups) Constructor for a VALID result.- Parameters:
- callerName- Name of the validated caller
- groups- Groups associated with the caller from the identity store
 
 - 
CredentialValidationResultpublic CredentialValidationResult(CallerPrincipal callerPrincipal, Set<String> groups) Constructor for a VALID result.- Parameters:
- callerPrincipal- CallerPrincipal of validated caller
- groups- Groups associated with the caller from the identity store
 
 - 
CredentialValidationResultpublic CredentialValidationResult(String storeId, String callerName, String callerDn, String callerUniqueId, Set<String> groups) Constructor for a VALID result.- Parameters:
- storeId- Identity store unique ID
- callerName- Name of the validated caller
- callerDn- Caller's LDAP DN (distinguished name)
- callerUniqueId- Caller's unique identifier from the identity store
- groups- Groups associated with the caller from the identity store
 
 - 
CredentialValidationResultpublic CredentialValidationResult(String storeId, CallerPrincipal callerPrincipal, String callerDn, String callerUniqueId, Set<String> groups) Constructor for a VALID result.- Parameters:
- storeId- Identity store unique ID
- callerPrincipal- CallerPrincipal of validated caller
- callerDn- Caller's LDAP DN (distinguished name)
- callerUniqueId- Caller's unique identifier from the identity store
- groups- Groups associated with the caller from the identity store
 
 
- 
 - 
Method Detail- 
getStatuspublic CredentialValidationResult.Status getStatus() Determines the validation status.- Returns:
- The validation status
 
 - 
getIdentityStoreIdpublic String getIdentityStoreId() Return the unique ID of the identity store used to validate the credentials.- Returns:
- String identifying the external store used to validate credentials.
 
 - 
getCallerPrincipalpublic CallerPrincipal getCallerPrincipal() Return the CallerPrincipal for the validated credential.- Returns:
- The CallerPrincipal.
 
 - 
getCallerUniqueIdpublic String getCallerUniqueId() Return a string that uniquely identifies this caller within the identity store (since the Principal name used may not be unique).- Returns:
- Caller's unique identifier.
 
 - 
getCallerDnpublic String getCallerDn() Return the CallerPrincipal for the validated credential.- Returns:
- The CallerPrincipal.
 
 
- 
 
-