com.sun.identity.saml.assertion
Class AuthorityBinding

java.lang.Object
  |
  +--com.sun.identity.saml.assertion.AuthorityBinding

public class AuthorityBinding
extends java.lang.Object

The element may be used to indicate to a replying party receiving an AuthenticationStatement that a SAML authority may be avaliable to provide additional information about the subject of the statement. A single SAML authority may advertise its presence over multiple protocol binding, at multiple locations, and as more than one kind of authority by sending multiple elements as needed


Inner Class Summary
static class AuthorityBinding.AuthorityKindType
           
 
Constructor Summary
AuthorityBinding(org.w3c.dom.Element element)
          Constructor builds an AuthorityBinding element from an existing XML block
AuthorityBinding(int authKind, java.lang.String location, java.lang.String binding)
          Constructor
 
Method Summary
 int getAuthorityKind()
          Get the AuthorityKind
 java.lang.String getBinding()
          Get the binding URI
 java.lang.String getLocation()
          Get the Location URI
 java.lang.String toString()
          Create a String representation of the AuthorityBinding
 java.lang.String toString(boolean includeNS, boolean declareNS)
          Create a String representation of the AuthorityBinding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorityBinding

public AuthorityBinding(org.w3c.dom.Element element)
                 throws SAMLException
Constructor builds an AuthorityBinding element from an existing XML block
Parameters:
element - : representing a DOM tree element
Throws:
SAMLException: - An SAMLException implies that there is an error in the sender or in the element definition.

AuthorityBinding

public AuthorityBinding(int authKind,
                        java.lang.String location,
                        java.lang.String binding)
                 throws SAMLException
Constructor
Parameters:
authKind: - A integer representing the type of SAML protocol queries to which the authority described by this element will respond. If you do NO specify this attribute, pass in value "-1".
location: - A URI describing how to locate and communicate with the authority, the exact syntax of which depends on the protocol binding in use.
binding: - A String representing a URI reference identifying the SAML protocol binding to use in communicating with the authority.
Throws:
SAMLException: - An SAMLException implies that there is an error in the sender or in the element definition.
Method Detail

getLocation

public java.lang.String getLocation()
Get the Location URI
Returns:
A String representing the URI describing how to locate and communicate with the authority, the exact syntax of which depends on the protocol binding in use.

getBinding

public java.lang.String getBinding()
Get the binding URI
Returns:
A String representing a URI reference identifying the SAML protocol binding to use in communicating with the authority.

getAuthorityKind

public int getAuthorityKind()
Get the AuthorityKind
Returns:
A integer representing the type of SAML protocol queries to which the authority described by this element will respond.

toString

public java.lang.String toString()
Create a String representation of the AuthorityBinding
Overrides:
toString in class java.lang.Object
Returns:
A String representation of the element

toString

public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
Create a String representation of the AuthorityBinding
Parameters:
includeNS - : Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - : Determines whether or not the namespace is declared within the Element.
Returns:
A String representation of the element