org.apache.ws.security
Class SAMLTokenPrincipal

java.lang.Object
  extended by org.apache.ws.security.SAMLTokenPrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.Principal

public class SAMLTokenPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable

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
SAMLTokenPrincipal(AssertionWrapper assertion)
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.String getName()
           
 AssertionWrapper 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

SAMLTokenPrincipal

public SAMLTokenPrincipal(AssertionWrapper assertion)
Method Detail

getToken

public AssertionWrapper getToken()

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

getId

public java.lang.String getId()


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.