org.apache.wss4j.common.principal
Class SAMLTokenPrincipalImpl

java.lang.Object
  extended by org.apache.wss4j.common.principal.SAMLTokenPrincipalImpl
All Implemented Interfaces:
Serializable, Principal, SAMLTokenPrincipal

public class SAMLTokenPrincipalImpl
extends Object
implements Serializable, SAMLTokenPrincipal

A principal that represents a SAML Token. It parses the Subject and returns the Subject name value as the Principal name.

See Also:
Serialized Form

Constructor Summary
SAMLTokenPrincipalImpl(SamlAssertionWrapper samlAssertion)
           
 
Method Summary
 String getId()
           
 String getName()
           
 SamlAssertionWrapper getToken()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

SAMLTokenPrincipalImpl

public SAMLTokenPrincipalImpl(SamlAssertionWrapper samlAssertion)
Method Detail

getToken

public SamlAssertionWrapper getToken()
Specified by:
getToken in interface SAMLTokenPrincipal

getName

public String getName()
Specified by:
getName in interface Principal
Specified by:
getName in interface SAMLTokenPrincipal

getId

public String getId()
Specified by:
getId in interface SAMLTokenPrincipal


Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.