public abstract class RoleDescriptorImpl extends AbstractSignableSAMLObject implements RoleDescriptor
RoleDescriptor
.Modifier and Type | Field and Description |
---|---|
private Long |
cacheDuration
cacheDurection attribute.
|
private org.opensaml.core.xml.util.XMLObjectChildrenList<ContactPerson> |
contactPersons
Contact persons for this role.
|
private String |
errorURL
Error URL.
|
private Extensions |
extensions
Extensions child.
|
private String |
id
ID attribute.
|
private org.opensaml.core.xml.util.XMLObjectChildrenList<KeyDescriptor> |
keyDescriptors
Key descriptors for this role.
|
private Organization |
organization
Organization administering this role.
|
private List<String> |
supportedProtocols
Set of supported protocols.
|
private org.opensaml.core.xml.util.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_NAME
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME
Modifier | Constructor and Description |
---|---|
protected |
RoleDescriptorImpl(String namespaceURI,
String elementLocalName,
String namespacePrefix)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSupportedProtocol(String protocol) |
Long |
getCacheDuration() |
List<ContactPerson> |
getContactPersons() |
String |
getErrorURL() |
Extensions |
getExtensions() |
String |
getID() |
List<KeyDescriptor> |
getKeyDescriptors() |
List<org.opensaml.core.xml.XMLObject> |
getOrderedChildren() |
Organization |
getOrganization() |
String |
getSignatureReferenceID() |
List<String> |
getSupportedProtocols() |
org.opensaml.core.xml.util.AttributeMap |
getUnknownAttributes() |
org.joda.time.DateTime |
getValidUntil() |
boolean |
isSupportedProtocol(String protocol) |
boolean |
isValid() |
void |
removeAllSupportedProtocols() |
void |
removeSupportedProtocol(String protocol) |
void |
removeSupportedProtocols(Collection<String> protocols) |
void |
setCacheDuration(Long duration) |
void |
setErrorURL(String url) |
void |
setExtensions(Extensions ext) |
void |
setID(String newID) |
void |
setOrganization(Organization org) |
void |
setValidUntil(org.joda.time.DateTime dt) |
equals, hashCode, prepareForAssignment, setSignature
getSignature, isSigned
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getEndpoints, getEndpoints
getSignature, isSigned, setSignature
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
private String id
private org.joda.time.DateTime validUntil
private Long cacheDuration
private String errorURL
private Extensions extensions
private Organization organization
private final org.opensaml.core.xml.util.AttributeMap unknownAttributes
private final org.opensaml.core.xml.util.XMLObjectChildrenList<ContactPerson> contactPersons
private final org.opensaml.core.xml.util.XMLObjectChildrenList<KeyDescriptor> keyDescriptors
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
in interface RoleDescriptor
public void setID(String newID)
setID
in interface RoleDescriptor
public boolean isValid()
isValid
in interface TimeBoundSAMLObject
public org.joda.time.DateTime getValidUntil()
getValidUntil
in interface TimeBoundSAMLObject
public void setValidUntil(org.joda.time.DateTime dt)
setValidUntil
in interface TimeBoundSAMLObject
public Long getCacheDuration()
getCacheDuration
in interface CacheableSAMLObject
public void setCacheDuration(Long duration)
setCacheDuration
in interface CacheableSAMLObject
public List<String> getSupportedProtocols()
getSupportedProtocols
in interface RoleDescriptor
public boolean isSupportedProtocol(String protocol)
isSupportedProtocol
in interface RoleDescriptor
public void addSupportedProtocol(String protocol)
addSupportedProtocol
in interface RoleDescriptor
public void removeSupportedProtocol(String protocol)
removeSupportedProtocol
in interface RoleDescriptor
public void removeSupportedProtocols(Collection<String> protocols)
removeSupportedProtocols
in interface RoleDescriptor
public void removeAllSupportedProtocols()
removeAllSupportedProtocols
in interface RoleDescriptor
public String getErrorURL()
getErrorURL
in interface RoleDescriptor
public void setErrorURL(String url)
setErrorURL
in interface RoleDescriptor
public Extensions getExtensions()
getExtensions
in interface RoleDescriptor
public void setExtensions(Extensions ext)
setExtensions
in interface RoleDescriptor
public Organization getOrganization()
getOrganization
in interface RoleDescriptor
public void setOrganization(Organization org)
setOrganization
in interface RoleDescriptor
public List<ContactPerson> getContactPersons()
getContactPersons
in interface RoleDescriptor
public List<KeyDescriptor> getKeyDescriptors()
getKeyDescriptors
in interface RoleDescriptor
public org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()
getUnknownAttributes
in interface org.opensaml.core.xml.AttributeExtensibleXMLObject
public String getSignatureReferenceID()
getSignatureReferenceID
in interface SignableSAMLObject
public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
getOrderedChildren
in interface org.opensaml.core.xml.XMLObject
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.