Package org.opensaml.saml.saml2.metadata
Interface RoleDescriptor
- All Superinterfaces:
AttributeExtensibleXMLObject,CacheableSAMLObject,SAMLObject,SignableSAMLObject,SignableXMLObject,TimeBoundSAMLObject,XMLObject
- All Known Subinterfaces:
AttributeAuthorityDescriptor,AttributeQueryDescriptorType,AuthnAuthorityDescriptor,AuthnQueryDescriptorType,AuthzDecisionQueryDescriptorType,IDPSSODescriptor,PDPDescriptor,QueryDescriptorType,SPSSODescriptor,SSODescriptor
- All Known Implementing Classes:
AttributeAuthorityDescriptorImpl,AttributeQueryDescriptorTypeImpl,AuthnAuthorityDescriptorImpl,AuthnQueryDescriptorTypeImpl,AuthzDecisionQueryDescriptorTypeImpl,IDPSSODescriptorImpl,PDPDescriptorImpl,QueryDescriptorTypeImpl,RoleDescriptorImpl,RoleDescriptorXSAnyAdapter,SPSSODescriptorImpl,SSODescriptorImpl
public interface RoleDescriptor
extends SignableSAMLObject, TimeBoundSAMLObject, CacheableSAMLObject, AttributeExtensibleXMLObject
SAML 2.0 Metadata RoleDescriptor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringElement name, no namespace.static final QNameDefault element name.static final String"errorURL" attribute's local name.static final String"ID" attribute's local name.static final String"protocolEnumeration" attribute's local name.static final StringLocal name of the XSI type.static final QNameQName of the XSI type.Fields inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAMEFields inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSupportedProtocol(String protocol) Adds a protocol to the list of supported protocols for this role.Gets list ofContactPersons for this role.Gets immutable list of endpoints for this role.getEndpoints(QName type) Gets a read-only list of endpoints for this role for the given type.Gets the URI users should be sent to in the event of an error.Gets the Extensions child of this object.getID()Gets the ID of this role descriptor.Gets the key descriptors for this role.Gets the organization responsible for this role.Gets an immutable list of protocol URIs supported by this role.booleanisSupportedProtocol(String protocol) Chckes to see if the given protocol is supported by this role.voidRemoves all the supported protocols from this role.voidremoveSupportedProtocol(String protocol) Removes a protocol to the list of supported protocols for this role.voidremoveSupportedProtocols(Collection<String> protocols) Removes a list of protocols to the list of supported protocols for this role.voidsetErrorURL(String errorURL) Sets the URI users should be sent to in the event of an error.voidsetExtensions(Extensions extensions) Sets the Extensions child of this object.voidSets the ID of this role descriptor.voidsetOrganization(Organization organization) Sets the organization responsible for this role.Methods inherited from interface org.opensaml.core.xml.AttributeExtensibleXMLObject
getUnknownAttributesMethods inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
getCacheDuration, setCacheDurationMethods inherited from interface org.opensaml.saml.common.SignableSAMLObject
getSignatureReferenceIDMethods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignatureMethods inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
getValidUntil, isValid, setValidUntilMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
DEFAULT_ELEMENT_LOCAL_NAME
Element name, no namespace.- See Also:
-
DEFAULT_ELEMENT_NAME
Default element name. -
TYPE_LOCAL_NAME
Local name of the XSI type.- See Also:
-
TYPE_NAME
QName of the XSI type. -
ID_ATTRIB_NAME
"ID" attribute's local name.- See Also:
-
PROTOCOL_ENUMERATION_ATTRIB_NAME
"protocolEnumeration" attribute's local name.- See Also:
-
ERROR_URL_ATTRIB_NAME
"errorURL" attribute's local name.- See Also:
-
-
Method Details
-
getID
Gets the ID of this role descriptor.- Returns:
- the ID of this role descriptor
-
setID
Sets the ID of this role descriptor.- Parameters:
newID- the ID of this role descriptor
-
getSupportedProtocols
Gets an immutable list of protocol URIs supported by this role.- Returns:
- list of protocol URIs supported by this role
-
isSupportedProtocol
Chckes to see if the given protocol is supported by this role.- Parameters:
protocol- the protocol- Returns:
- true if the protocol is supported, false if not
-
addSupportedProtocol
Adds a protocol to the list of supported protocols for this role.- Parameters:
protocol- the protocol
-
removeSupportedProtocol
Removes a protocol to the list of supported protocols for this role.- Parameters:
protocol- the protocol
-
removeSupportedProtocols
Removes a list of protocols to the list of supported protocols for this role.- Parameters:
protocols- the protocol
-
removeAllSupportedProtocols
void removeAllSupportedProtocols()Removes all the supported protocols from this role. -
getErrorURL
Gets the URI users should be sent to in the event of an error.- Returns:
- the URI users should be sent to in the event of an error
-
setErrorURL
Sets the URI users should be sent to in the event of an error.- Parameters:
errorURL- the URI users should be sent to in the event of an error
-
getExtensions
Gets the Extensions child of this object.- Returns:
- the Extensions child of this object
-
setExtensions
Sets the Extensions child of this object.- Parameters:
extensions- the Extensions child of this object
-
getKeyDescriptors
Gets the key descriptors for this role.- Returns:
- the key descriptors for this role
-
getOrganization
Gets the organization responsible for this role.- Returns:
- the organization responsible for this role
-
setOrganization
Sets the organization responsible for this role.- Parameters:
organization- the organization responsible for this role
-
getContactPersons
Gets list ofContactPersons for this role.- Returns:
- list of
ContactPersons for this role
-
getEndpoints
Gets immutable list of endpoints for this role.- Returns:
- immutable list of endpoints for this role
-
getEndpoints
Gets a read-only list of endpoints for this role for the given type.- Parameters:
type- the type of endpoints to retrieve- Returns:
- immutable list of endpoints for this role
-