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.
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 credentials
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.