Class SpnegoPrincipalResolver
java.lang.Object
org.apereo.cas.authentication.principal.resolvers.PersonDirectoryPrincipalResolver
org.apereo.cas.support.spnego.authentication.principal.SpnegoPrincipalResolver
- All Implemented Interfaces:
org.apereo.cas.authentication.principal.PrincipalResolver,org.springframework.core.Ordered
public class SpnegoPrincipalResolver
extends org.apereo.cas.authentication.principal.resolvers.PersonDirectoryPrincipalResolver
Implementation of a CredentialToPrincipalResolver that takes a
SpnegoCredential and returns a SimplePrincipal.
- Since:
- 3.1
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.apereo.cas.authentication.principal.PrincipalResolver
BEAN_NAME_ATTRIBUTE_REPOSITORY, BEAN_NAME_GLOBAL_PRINCIPAL_ATTRIBUTE_REPOSITORY, BEAN_NAME_PRINCIPAL_RESOLVER -
Constructor Summary
ConstructorsConstructorDescriptionSpnegoPrincipalResolver(org.apereo.cas.authentication.principal.resolvers.PrincipalResolutionContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractPrincipalId(org.apereo.cas.authentication.Credential credential, Optional<org.apereo.cas.authentication.principal.Principal> currentPrincipal) booleansupports(org.apereo.cas.authentication.Credential credential) Methods inherited from class org.apereo.cas.authentication.principal.resolvers.PersonDirectoryPrincipalResolver
buildResolvedPrincipal, convertPersonAttributesToPrincipal, getAttributeRepository, getContext, resolve, retrievePersonAttributes, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apereo.cas.authentication.principal.PrincipalResolver
getName, getOrder, resolve, resolve
-
Constructor Details
-
SpnegoPrincipalResolver
public SpnegoPrincipalResolver(org.apereo.cas.authentication.principal.resolvers.PrincipalResolutionContext context)
-
-
Method Details
-
extractPrincipalId
protected String extractPrincipalId(org.apereo.cas.authentication.Credential credential, Optional<org.apereo.cas.authentication.principal.Principal> currentPrincipal) - Overrides:
extractPrincipalIdin classorg.apereo.cas.authentication.principal.resolvers.PersonDirectoryPrincipalResolver
-
supports
public boolean supports(org.apereo.cas.authentication.Credential credential) - Specified by:
supportsin interfaceorg.apereo.cas.authentication.principal.PrincipalResolver- Overrides:
supportsin classorg.apereo.cas.authentication.principal.resolvers.PersonDirectoryPrincipalResolver
-