public class AuthorityBinding extends Object
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.Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
AuthorityBinding(Element element)
Constructs an
AuthorityBinding element from an existing XML
block. |
AuthorityBinding(int authKind,
String location,
String binding)
Constructs
AuthorityBinding |
Modifier and Type | Method and Description |
---|---|
int |
getAuthorityKind()
Returns the
AuthorityKind . |
String |
getBinding()
Gets the binding URI
|
String |
getLocation()
Gets the Location URI
|
String |
toString()
Returns a String representation of the
AuthorityBinding |
String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the
AuthorityBinding |
public AuthorityBinding(Element element) throws SAMLException
AuthorityBinding
element from an existing XML
block.element
- representing a DOM tree element.SAMLException
- if there is an error in the sender or in the
element definition.public AuthorityBinding(int authKind, String location, String binding) throws SAMLException
AuthorityBinding
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.SAMLException
- if there is an error in the sender or in the
element definition.public String getLocation()
public String getBinding()
public int getAuthorityKind()
AuthorityKind
.public String toString(boolean includeNS, boolean declareNS)
AuthorityBinding
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.AuthorityBinding
element.Copyright © 2010-2014, ForgeRock All Rights Reserved.