Class PropertyFileClaimsHandler
java.lang.Object
org.codice.ddf.security.sts.claims.property.PropertyFileClaimsHandler
- All Implemented Interfaces:
ddf.security.claims.ClaimsHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the user name from the principal.ddf.security.claims.ClaimsCollectionretrieveClaims(ddf.security.claims.ClaimsParameters parameters) voidsetIdClaimType(String idClaimType) voidsetPropertyFileLocation(String propertyFileLocation) voidsetRoleClaimType(String roleClaimType)
-
Constructor Details
-
PropertyFileClaimsHandler
public PropertyFileClaimsHandler()
-
-
Method Details
-
retrieveClaims
public ddf.security.claims.ClaimsCollection retrieveClaims(ddf.security.claims.ClaimsParameters parameters) - Specified by:
retrieveClaimsin interfaceddf.security.claims.ClaimsHandler
-
getUser
Obtains the user name from the principal.- Parameters:
principal- Describing the current user that should be used for retrieving claims.- Returns:
- the user name if the principal has one, null if no name is specified or if principal is null.
-
setPropertyFileLocation
-
setRoleClaimType
-
setIdClaimType
-