public interface PrincipalProvider
The ServletContainerAuthenticationProvider's principalProviders set may be configured with zero or more instances of implementations of this interface, which it will consult during authentication. The union of the results will be assigned to the FEDORA_ALL_PRINCIPALS session attribute.
HttpHeaderPrincipalProvider
Modifier and Type | Method and Description |
---|---|
Set<Principal> |
getPrincipals(javax.jcr.Credentials credentials)
Extract principals from the provided credentials.
|
Set<Principal> getPrincipals(javax.jcr.Credentials credentials)
If no principals can be extracted, for example because the credentials are of a different type than expected, implementations of this method should return the empty set rather than null.
credentials
- the credentialsCopyright © 2013–2017 DuraSpace, Inc.. All rights reserved.