Package com.sun.identity.saml.assertion
Class AuthorityBinding
- java.lang.Object
-
- com.sun.identity.saml.assertion.AuthorityBinding
-
@SupportedAll public class AuthorityBinding extends Object
TheAuthorityBinding
element may be used to indicate to a replying party receiving anAuthenticationStatement
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
Nested Classes Modifier and Type Class Description static class
AuthorityBinding.AuthorityKindType
TheAuthorityKindType
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
Constructors Constructor Description AuthorityBinding(int authKind, String location, String binding)
ConstructsAuthorityBinding
AuthorityBinding(Element element)
Constructs anAuthorityBinding
element from an existing XML block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAuthorityKind()
Returns theAuthorityKind
.String
getBinding()
Gets the binding URIString
getLocation()
Gets the Location URIString
toString()
Returns a String representation of theAuthorityBinding
String
toString(boolean includeNS, boolean declareNS)
Returns a String representation of theAuthorityBinding
-
-
-
Constructor Detail
-
AuthorityBinding
public AuthorityBinding(Element element) throws SAMLException
Constructs anAuthorityBinding
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, String location, String binding) throws SAMLException
ConstructsAuthorityBinding
- 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 String getLocation()
Gets 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 String getBinding()
Gets 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 theAuthorityKind
.- Returns:
- A integer representing the type of SAML protocol queries to which the authority described by this element will respond.
-
toString
public String toString()
Returns a String representation of theAuthorityBinding
-
toString
public String toString(boolean includeNS, boolean declareNS)
Returns a String representation of theAuthorityBinding
- Parameters:
includeNS
- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared within the Element.- Returns:
- A String representation of the
AuthorityBinding
element.
-
-