Class CredentialValidationResult
java.lang.Object
jakarta.security.enterprise.identitystore.CredentialValidationResult
CredentialValidationResult
is the result from an attempt to
validate an instance of Credential
.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CredentialValidationResult
static final CredentialValidationResult
-
Constructor Summary
ConstructorDescriptionCredentialValidationResult
(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 Summary
Modifier and TypeMethodDescriptionReturn the CallerPrincipal for the validated credential.Determines the set of groups that the specified Caller is in, based on the associated identity store.Return the CallerPrincipal for the validated credential.Return a string that uniquely identifies this caller within the identity store (since the Principal name used may not be unique).Return the unique ID of the identity store used to validate the credentials.Determines the validation status.
-
Field Details
-
INVALID_RESULT
-
NOT_VALIDATED_RESULT
-
-
Constructor Details
-
CredentialValidationResult
Constructor for a VALID result.- Parameters:
callerName
- Name of the validated caller
-
CredentialValidationResult
Constructor for a VALID result.- Parameters:
callerPrincipal
- CallerPrincipal of validated caller
-
CredentialValidationResult
Constructor for a VALID result.- Parameters:
callerName
- Name of the validated callergroups
- Groups associated with the caller from the identity store
-
CredentialValidationResult
Constructor for a VALID result.- Parameters:
callerPrincipal
- CallerPrincipal of validated callergroups
- Groups associated with the caller from the identity store
-
CredentialValidationResult
public CredentialValidationResult(String storeId, String callerName, String callerDn, String callerUniqueId, Set<String> groups) Constructor for a VALID result.- Parameters:
storeId
- Identity store unique IDcallerName
- Name of the validated callercallerDn
- Caller's LDAP DN (distinguished name)callerUniqueId
- Caller's unique identifier from the identity storegroups
- Groups associated with the caller from the identity store
-
CredentialValidationResult
public CredentialValidationResult(String storeId, CallerPrincipal callerPrincipal, String callerDn, String callerUniqueId, Set<String> groups) Constructor for a VALID result.- Parameters:
storeId
- Identity store unique IDcallerPrincipal
- CallerPrincipal of validated callercallerDn
- Caller's LDAP DN (distinguished name)callerUniqueId
- Caller's unique identifier from the identity storegroups
- Groups associated with the caller from the identity store
-
-
Method Details
-
getStatus
Determines the validation status.- Returns:
- The validation status
-
getIdentityStoreId
Return the unique ID of the identity store used to validate the credentials.- Returns:
- String identifying the external store used to validate credentials.
-
getCallerPrincipal
Return the CallerPrincipal for the validated credential.- Returns:
- The CallerPrincipal.
-
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.
-
getCallerDn
Return the CallerPrincipal for the validated credential.- Returns:
- The CallerPrincipal.
-
getCallerGroups
Determines the set of groups that the specified Caller is in, based on the associated identity store.- Returns:
- The set of groups that the specified Caller is in, or empty if none.
-