com.sun.identity.saml.assertion
Class AuthorityBinding

java.lang.Object
  extended bycom.sun.identity.saml.assertion.AuthorityBinding

public class AuthorityBinding
extends java.lang.Object

The <AuthorityBinding> element may be used to indicate to a replying party receiving an AuthenticationStatement that a SAML authority may be available 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.


Nested Class Summary
static class AuthorityBinding.AuthorityKindType
          The AuthorityKindType is an inner class defining constants for the representing the type of SAML protocol queries to which the authority described by this element will respond.
 
Constructor Summary
AuthorityBinding(org.w3c.dom.Element element)
          Constructs an AuthorityBinding element from an existing XML block.
AuthorityBinding(int authKind, java.lang.String location, java.lang.String binding)
          Constructor
 
Method Summary
 int getAuthorityKind()
          Returns the AuthorityKind.
 java.lang.String getBinding()
          Get the binding URI
 java.lang.String getLocation()
          Get the Location URI
 java.lang.String toString()
          Returns a String representation of the AuthorityBinding
 java.lang.String toString(boolean includeNS, boolean declareNS)
          Returns 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
Constructs an AuthorityBinding element from an existing XML block.

Parameters:
element - representing a DOM tree element.
Throws:
SAMLException - if 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 - if 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()
Returns 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()
Returns a String representation of the AuthorityBinding

Returns:
A String representation of the <saml:AuthorityBinding> element.

toString

public java.lang.String toString(boolean includeNS,
                                 boolean declareNS)
Returns 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.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.