public class ContainerRolesPrincipalProvider extends Object implements PrincipalProvider
PrincipalProvider
Modifier and Type | Class and Description |
---|---|
protected static class |
ContainerRolesPrincipalProvider.ContainerRolesPrincipal |
Constructor and Description |
---|
ContainerRolesPrincipalProvider() |
Modifier and Type | Method and Description |
---|---|
Set<Principal> |
getPrincipals(javax.jcr.Credentials credentials)
Extract principals from the provided credentials.
|
void |
setRoleNames(Set<String> roleNames)
Sets the role names which have been configured in the repo.xml file.
|
public ContainerRolesPrincipalProvider()
public void setRoleNames(Set<String> roleNames)
roleNames
- The names of container roles that should be recognized
as principalspublic Set<Principal> getPrincipals(javax.jcr.Credentials credentials)
PrincipalProvider
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.
getPrincipals
in interface PrincipalProvider
credentials
- the credentialsCopyright © 2013–2018 DuraSpace, Inc.. All rights reserved.