com.sun.identity.liberty.ws.security
Class  ProxySubject
java.lang.Object
  |
  +--com.sun.identity.saml.assertion.Subject
        |
        +--com.sun.identity.liberty.ws.security.ProxySubject
- public class ProxySubject- extends Subject
The ProxySubject class represents the identity of a proxy,
 the confirmation key and confirmation obligation the proxy must posess and
 demonstrate for authentication purpose.
 
| Method Summary | 
|  boolean | equals(ProxySubject subject)Checks for equality between this object and the
 ProxySubjectpassed down as parameter. | 
|  java.lang.String | toString()Creates a String representation of the element.
 | 
|  java.lang.String | toString(boolean includeNS,
         boolean declareNS)Creates a String representation of the
 <Subject>element. | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
ProxySubject
public ProxySubject(NameIdentifier nameIdentifier,
                    SubjectConfirmation subjectConfirmation)
             throws SAMLException
- Constructs a ProxySubjectobject from aNameIdentifierobject and aSubjectConfirmationobject.
- 
- Parameters:
- nameIdentifier-- NameIdentifierobject.
- subjectConfirmation-- SubjectConfirmationobject.
- Throws:
- SAMLException- if- nameIdentifierand- SubjectConfirmationare null;
 
ProxySubject
public ProxySubject(NameIdentifier nameIdentifier)
             throws SAMLException
- Constructs a ProxySubjectobject from aNameIdentifierobject.
- 
- Parameters:
- nameIdentifier-- NameIdentifierobject.
- Throws:
- SAMLException- if- nameIdentifieris null.
 
ProxySubject
public ProxySubject(org.w3c.dom.Element subjectElement)
             throws SAMLException
- Constructs a ProxySubjectobject from a DOM Element. 
 which has already been built into a DOM.
- 
- Parameters:
- subjectElement- An Element representing DOM tree for- ProxySubjectobject.
- Throws:
- SAMLException- if it could not process the
            Element properly, implying that there is an error in the
            sender or in the element definition.
 
ProxySubject
public ProxySubject(SubjectConfirmation subjectConfirmation)
             throws SAMLException
- Constructs a ProxySubjectobject from aSubjectConfirmationobject.
- 
- Parameters:
- subjectConfirmation-- SubjectConfirmationobject to be
        added to the object.
- Throws:
- SAMLException- if- subjectConfirmationis null.
 
equals
public boolean equals(ProxySubject subject)
- Checks for equality between this object and the ProxySubjectpassed down as parameter.
- 
- Parameters:
- subject-- ProxySubjectto be checked
- Returns:
- true if the two are EXACTLY equal.
 
toString
public java.lang.String toString()
- Creates a String representation of the element.- 
- Overrides:
- toStringin class- Subject
 
- 
- Returns:
- A string containing the valid XML for this element.
         By default name space name is prepended to the element name
         example <saml:Subject>
 
toString
public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
- Creates a String representation of the <Subject>element.
- 
- Overrides:
- toStringin class- Subject
 
- 
- Parameters:
- includeNS- if true prepends all elements by their Namespace
        name example- <saml:Subject>.
- declareNS- if true includes the namespace within the
        generated XML.
- Returns:
- A string containing the valid XML for this element.
 
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.