public abstract class RoleDescriptorImpl extends AbstractSignableSAMLObject implements RoleDescriptor
RoleDescriptor
.DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ERROR_URL_ATTRIB_NAME, ID_ATTRIB_NAME, PROTOCOL_ENUMERATION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME
修飾子 | コンストラクタと説明 |
---|---|
protected |
RoleDescriptorImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addSupportedProtocol(String protocol)
Adds a protocol to the list of supported protocols for this role.
|
Long |
getCacheDuration()
Gets the maximum time, in milliseconds, that this descriptor should be cached.
|
List<ContactPerson> |
getContactPersons()
Gets an immutable list of
ContactPerson s for this role. |
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.
|
String |
getID()
Gets the ID of this role descriptor.
|
List<KeyDescriptor> |
getKeyDescriptors()
Gets the key descriptors for this role.
|
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.
|
String |
getSignatureReferenceID()
Gets the value of the ID attribute for this SAML object which will be used as its signature reference.
|
List<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(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(String protocol)
Removes a protocol to the list of supported protocols for this role.
|
void |
removeSupportedProtocols(Collection<String> protocols)
Removes a list of protocols to the list of supported protocols for this role.
|
void |
setCacheDuration(Long duration)
Sets the maximum time, in milliseconds, that this descriptor should be cached.
|
void |
setErrorURL(String errorURL)
Sets the URI users should be sent to in the event of an error.
|
void |
setExtensions(Extensions extensions)
Sets the Extensions child of this object.
|
void |
setID(String newID)
Sets the ID of this role descriptor.
|
void |
setOrganization(Organization organization)
Sets the organization responsible for this role.
|
void |
setValidUntil(org.joda.time.DateTime validUntil)
Sets the date until which this descriptor is valid.
|
equals, prepareForAssignment, setSignature
deregisterValidator, getValidators, registerValidator, validate, validateChildren
getSignature, isSigned
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoints, getEndpoints
getSignature, isSigned, setSignature
deregisterValidator, getValidators, registerValidator, validate
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
protected RoleDescriptorImpl(String namespaceURI, String elementLocalName, 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 String getID()
getID
インタフェース内 RoleDescriptor
public void setID(String newID)
setID
インタフェース内 RoleDescriptor
newID
- the ID of this role descriptorpublic boolean isValid()
isValid
インタフェース内 TimeBoundSAMLObject
public org.joda.time.DateTime getValidUntil()
getValidUntil
インタフェース内 TimeBoundSAMLObject
public void setValidUntil(org.joda.time.DateTime validUntil)
setValidUntil
インタフェース内 TimeBoundSAMLObject
validUntil
- the date until which this descriptor is validpublic Long getCacheDuration()
getCacheDuration
インタフェース内 CacheableSAMLObject
public void setCacheDuration(Long duration)
setCacheDuration
インタフェース内 CacheableSAMLObject
duration
- the maximum time that this descriptor should be cachedpublic List<String> getSupportedProtocols()
getSupportedProtocols
インタフェース内 RoleDescriptor
public boolean isSupportedProtocol(String protocol)
isSupportedProtocol
インタフェース内 RoleDescriptor
protocol
- the protocolpublic void addSupportedProtocol(String protocol)
addSupportedProtocol
インタフェース内 RoleDescriptor
protocol
- the protocolpublic void removeSupportedProtocol(String protocol)
removeSupportedProtocol
インタフェース内 RoleDescriptor
protocol
- the protocolpublic void removeSupportedProtocols(Collection<String> protocols)
removeSupportedProtocols
インタフェース内 RoleDescriptor
protocols
- the protocolpublic void removeAllSupportedProtocols()
removeAllSupportedProtocols
インタフェース内 RoleDescriptor
public String getErrorURL()
getErrorURL
インタフェース内 RoleDescriptor
public void setErrorURL(String errorURL)
setErrorURL
インタフェース内 RoleDescriptor
errorURL
- the URI users should be sent to in the event of an errorpublic Extensions getExtensions()
getExtensions
インタフェース内 RoleDescriptor
public void setExtensions(Extensions extensions) throws IllegalArgumentException
setExtensions
インタフェース内 RoleDescriptor
extensions
- the Extensions child of this objectIllegalArgumentException
- thrown if the given extensions Object is already a child of another SAMLObjectpublic Organization getOrganization()
getOrganization
インタフェース内 RoleDescriptor
public void setOrganization(Organization organization) throws IllegalArgumentException
setOrganization
インタフェース内 RoleDescriptor
organization
- the organization responsible for this roleIllegalArgumentException
- thrown if the given organization is owned by another elementpublic List<ContactPerson> getContactPersons()
ContactPerson
s for this role.getContactPersons
インタフェース内 RoleDescriptor
ContactPerson
s for this rolepublic List<KeyDescriptor> getKeyDescriptors()
getKeyDescriptors
インタフェース内 RoleDescriptor
public AttributeMap getUnknownAttributes()
getUnknownAttributes
インタフェース内 AttributeExtensibleXMLObject
public String getSignatureReferenceID()
getSignatureReferenceID
インタフェース内 SignableSAMLObject
public List<XMLObject> getOrderedChildren()
getOrderedChildren
インタフェース内 XMLObject
Copyright © 2012. All Rights Reserved.