public abstract class RoleDescriptorImpl extends AbstractSignableSAMLObject implements RoleDescriptor
RoleDescriptor.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Long |
cacheDuration
cacheDurection attribute.
|
private XMLObjectChildrenList<ContactPerson> |
contactPersons
Contact persons for this role.
|
private java.lang.String |
errorURL
Error URL.
|
private Extensions |
extensions
Extensions child.
|
private java.lang.String |
id
ID attribute.
|
private XMLObjectChildrenList<KeyDescriptor> |
keyDescriptors
Key descriptors for this role.
|
private Organization |
organization
Organization administering this role.
|
private java.util.List<java.lang.String> |
supportedProtocols
Set of supported protocols.
|
private AttributeMap |
unknownAttributes
"anyAttribute" attributes.
|
private org.joda.time.DateTime |
validUntil
validUntil attribute.
|
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ERROR_URL_ATTRIB_NAME, ID_ATTRIB_NAME, PROTOCOL_ENUMERATION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAMEVALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAMECACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME| Modifier | Constructor and Description |
|---|---|
protected |
RoleDescriptorImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSupportedProtocol(java.lang.String protocol)
Adds a protocol to the list of supported protocols for this role.
|
java.lang.Long |
getCacheDuration()
Gets the maximum time, in milliseconds, that this descriptor should be cached.
|
java.util.List<ContactPerson> |
getContactPersons()
Gets an immutable list of
ContactPersons for this role. |
java.lang.String |
getErrorURL()
Gets the URI users should be sent to in the event of an error.
|
Extensions |
getExtensions()
Gets the Extensions child of this object.
|
java.lang.String |
getID()
Gets the ID of this role descriptor.
|
java.util.List<KeyDescriptor> |
getKeyDescriptors()
Gets the key descriptors for this role.
|
java.util.List<XMLObject> |
getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
|
Organization |
getOrganization()
Gets the organization responsible for this role.
|
java.lang.String |
getSignatureReferenceID()
Gets the value of the ID attribute for this SAML object which will be used as its signature reference.
|
java.util.List<java.lang.String> |
getSupportedProtocols()
Gets an immutable list of protocol URIs supported by this role.
|
AttributeMap |
getUnknownAttributes()
Gets a mutable map of the attributes.
|
org.joda.time.DateTime |
getValidUntil()
Gets the date until which this descriptor is valid.
|
boolean |
isSupportedProtocol(java.lang.String protocol)
Chckes to see if the given protocol is supported by this role.
|
boolean |
isValid()
Checks to see if the current time is past the validUntil time.
|
void |
removeAllSupportedProtocols()
Removes all the supported protocols from this role.
|
void |
removeSupportedProtocol(java.lang.String protocol)
Removes a protocol to the list of supported protocols for this role.
|
void |
removeSupportedProtocols(java.util.Collection<java.lang.String> protocols)
Removes a list of protocols to the list of supported protocols for this role.
|
void |
setCacheDuration(java.lang.Long duration)
Sets the maximum time, in milliseconds, that this descriptor should be cached.
|
void |
setErrorURL(java.lang.String url)
Sets the URI users should be sent to in the event of an error.
|
void |
setExtensions(Extensions ext)
Sets the Extensions child of this object.
|
void |
setID(java.lang.String newID)
Sets the ID of this role descriptor.
|
void |
setOrganization(Organization org)
Sets the organization responsible for this role.
|
void |
setValidUntil(org.joda.time.DateTime dt)
Sets the date until which this descriptor is valid.
|
equals, hashCode, prepareForAssignment, setSignaturegetSignature, isSigneddetach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEndpoints, getEndpointsgetSignature, isSigned, setSignaturedetach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationprivate java.lang.String id
private org.joda.time.DateTime validUntil
private java.lang.Long cacheDuration
private final java.util.List<java.lang.String> supportedProtocols
private java.lang.String errorURL
private Extensions extensions
private Organization organization
private final AttributeMap unknownAttributes
private final XMLObjectChildrenList<ContactPerson> contactPersons
private final XMLObjectChildrenList<KeyDescriptor> keyDescriptors
protected RoleDescriptorImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
namespaceURI - the namespace the element is inelementLocalName - the local name of the XML element this Object representsnamespacePrefix - the prefix for the given namespacepublic java.lang.String getID()
getID in interface RoleDescriptorpublic void setID(java.lang.String newID)
setID in interface RoleDescriptornewID - the ID of this role descriptorpublic boolean isValid()
isValid in interface TimeBoundSAMLObjectpublic org.joda.time.DateTime getValidUntil()
getValidUntil in interface TimeBoundSAMLObjectpublic void setValidUntil(org.joda.time.DateTime dt)
setValidUntil in interface TimeBoundSAMLObjectdt - the date until which this descriptor is validpublic java.lang.Long getCacheDuration()
getCacheDuration in interface CacheableSAMLObjectpublic void setCacheDuration(java.lang.Long duration)
setCacheDuration in interface CacheableSAMLObjectduration - the maximum time that this descriptor should be cachedpublic java.util.List<java.lang.String> getSupportedProtocols()
getSupportedProtocols in interface RoleDescriptorpublic boolean isSupportedProtocol(java.lang.String protocol)
isSupportedProtocol in interface RoleDescriptorprotocol - the protocolpublic void addSupportedProtocol(java.lang.String protocol)
addSupportedProtocol in interface RoleDescriptorprotocol - the protocolpublic void removeSupportedProtocol(java.lang.String protocol)
removeSupportedProtocol in interface RoleDescriptorprotocol - the protocolpublic void removeSupportedProtocols(java.util.Collection<java.lang.String> protocols)
removeSupportedProtocols in interface RoleDescriptorprotocols - the protocolpublic void removeAllSupportedProtocols()
removeAllSupportedProtocols in interface RoleDescriptorpublic java.lang.String getErrorURL()
getErrorURL in interface RoleDescriptorpublic void setErrorURL(java.lang.String url)
setErrorURL in interface RoleDescriptorurl - the URI users should be sent to in the event of an errorpublic Extensions getExtensions()
getExtensions in interface RoleDescriptorpublic void setExtensions(Extensions ext)
setExtensions in interface RoleDescriptorext - the Extensions child of this objectpublic Organization getOrganization()
getOrganization in interface RoleDescriptorpublic void setOrganization(Organization org)
setOrganization in interface RoleDescriptororg - the organization responsible for this rolepublic java.util.List<ContactPerson> getContactPersons()
ContactPersons for this role.getContactPersons in interface RoleDescriptorContactPersons for this rolepublic java.util.List<KeyDescriptor> getKeyDescriptors()
getKeyDescriptors in interface RoleDescriptorpublic AttributeMap getUnknownAttributes()
getUnknownAttributes in interface AttributeExtensibleXMLObjectpublic java.lang.String getSignatureReferenceID()
getSignatureReferenceID in interface SignableSAMLObjectpublic java.util.List<XMLObject> getOrderedChildren()
getOrderedChildren in interface XMLObject