com.sun.xml.ws.security.trust.impl
Class DefaultSTSAttributeProvider

java.lang.Object
  extended by com.sun.xml.ws.security.trust.impl.DefaultSTSAttributeProvider
All Implemented Interfaces:
STSAttributeProvider

public class DefaultSTSAttributeProvider
extends java.lang.Object
implements STSAttributeProvider


Field Summary
 
Fields inherited from interface com.sun.xml.ws.api.security.trust.STSAttributeProvider
NAME_IDENTIFIER
 
Constructor Summary
DefaultSTSAttributeProvider()
           
 
Method Summary
 java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> getClaimedAttributes(javax.security.auth.Subject subject, java.lang.String appliesTo, java.lang.String tokenType, Claims claims)
          Returns the map of claimed attributes of the requestor apply to the targeted service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSTSAttributeProvider

public DefaultSTSAttributeProvider()
Method Detail

getClaimedAttributes

public java.util.Map<javax.xml.namespace.QName,java.util.List<java.lang.String>> getClaimedAttributes(javax.security.auth.Subject subject,
                                                                                                      java.lang.String appliesTo,
                                                                                                      java.lang.String tokenType,
                                                                                                      Claims claims)
Description copied from interface: STSAttributeProvider
Returns the map of claimed attributes of the requestor apply to the targeted service.

Specified by:
getClaimedAttributes in interface STSAttributeProvider
Parameters:
subject - The Subject contgaining 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.
Returns:
map of attribut key and values. The key of the map is a QName contains the key name the the name space for the key. The value of the map is a List of String contains a list of the values. One particular value with the requestor identity to be in the issued token with key nameNAME_IDENTIFIER must be in the map.