Interface CredentialPolicy
- All Superinterfaces:
Component,IdentifiedComponent
- All Known Implementing Classes:
AbstractCredentialPolicyRule,ChainingCredentialPolicyRule,FunctionalCredentialPolicyRule,SecondFactorOnlyCredentialPolicyRule
An API for applying policy checks to an authentication credential.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresentation of the three outcomes of an CredentialPolicy. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EnhancedCredentialRecord credential, ProfileRequestContext prc) Execute the policy.Methods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Method Details
-
evaluate
CredentialPolicy.CredentialPolicyOutcome evaluate(@Nonnull EnhancedCredentialRecord credential, @Nonnull ProfileRequestContext prc) Execute the policy.- Parameters:
credential- the credential to accept or reject.prc- the profile request context- Returns:
CredentialPolicy.CredentialPolicyOutcome.ACCEPTif allowed,CredentialPolicy.CredentialPolicyOutcome.REJECTif rejected, andCredentialPolicy.CredentialPolicyOutcome.IGNOREotherwise.
-