Interface STSAttributeProvider
-
- All Known Implementing Classes:
DefaultSTSAttributeProvider
public interface STSAttributeProviderThis interface is a plugin for attrinute services to a Security Token Service (STS). An attribute service provides the attributes about a requestor. The attributes are included in the issued toekn for the requestor using with the target servicce for authentication and authorization purpose. The usual services mechanism is used to find implementing class of
STSAttributeProvider.- Author:
- Jiandong Guo
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_IDENTIFIER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<QName,List<String>>getClaimedAttributes(Subject subject, String appliesTo, String tokenType, Claims claims)Returns the map of claimed attributes of the requestor apply to the targeted service.
-
-
-
Field Detail
-
NAME_IDENTIFIER
static final String NAME_IDENTIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClaimedAttributes
Map<QName,List<String>> getClaimedAttributes(Subject subject, String appliesTo, String tokenType, Claims claims)
Returns the map of claimed attributes of the requestor apply to the targeted service.- Parameters:
subject- TheSubjectcontgaining authentication information and context of the authenticated requestor.appliesTo- Identifying target service(s)tokenType- Type of token to be issued which will contain these attributes.cliams- Identifying the attributes of the requestor claimed by the target service.- Returns:
- map of attribut key and values. The key of the map is a
QNamecontains the key name the the name space for the key. The value of the map is aListofStringcontains a list of the values. One particular value with the requestor identity to be in the issued token with key nameNAME_IDENTIFIERmust be in the map.
-
-