Class RoleDescriptorImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.xmlsec.signature.AbstractSignableXMLObject
-
- org.opensaml.saml.common.AbstractSignableSAMLObject
-
- org.opensaml.saml.saml2.metadata.impl.RoleDescriptorImpl
-
- All Implemented Interfaces:
AttributeExtensibleXMLObject,XMLObject,SAMLObject,SignableSAMLObject,CacheableSAMLObject,TimeBoundSAMLObject,RoleDescriptor,SignableXMLObject
- Direct Known Subclasses:
AttributeAuthorityDescriptorImpl,AuthnAuthorityDescriptorImpl,PDPDescriptorImpl,QueryDescriptorTypeImpl,SSODescriptorImpl
public abstract class RoleDescriptorImpl extends AbstractSignableSAMLObject implements RoleDescriptor
Concrete implementation ofRoleDescriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private DurationcacheDurationcacheDurection attribute.private XMLObjectChildrenList<ContactPerson>contactPersonsContact persons for this role.private StringerrorURLError URL.private ExtensionsextensionsExtensions child.private StringidID attribute.private XMLObjectChildrenList<KeyDescriptor>keyDescriptorsKey descriptors for this role.private OrganizationorganizationOrganization administering this role.private List<String>supportedProtocolsSet of supported protocols.private AttributeMapunknownAttributes"anyAttribute" attributes.private InstantvalidUntilvalidUntil attribute.-
Fields inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAME
-
Fields inherited from interface org.opensaml.saml.saml2.metadata.RoleDescriptor
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, ERROR_URL_ATTRIB_NAME, ID_ATTRIB_NAME, PROTOCOL_ENUMERATION_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
Fields inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRoleDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSupportedProtocol(String protocol)DurationgetCacheDuration()List<ContactPerson>getContactPersons()StringgetErrorURL()ExtensionsgetExtensions()StringgetID()List<KeyDescriptor>getKeyDescriptors()List<XMLObject>getOrderedChildren()OrganizationgetOrganization()StringgetSignatureReferenceID()List<String>getSupportedProtocols()AttributeMapgetUnknownAttributes()InstantgetValidUntil()booleanisSupportedProtocol(String protocol)booleanisValid()voidremoveAllSupportedProtocols()voidremoveSupportedProtocol(String protocol)voidremoveSupportedProtocols(Collection<String> protocols)voidsetCacheDuration(Duration duration)voidsetErrorURL(String url)voidsetExtensions(Extensions ext)voidsetID(String newID)voidsetOrganization(Organization org)voidsetValidUntil(Instant dt)-
Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignature
-
Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSigned
-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, 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, setSchemaType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.saml.saml2.metadata.RoleDescriptor
getEndpoints, getEndpoints
-
Methods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignature
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
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
-
-
-
-
Field Detail
-
id
private String id
ID attribute.
-
validUntil
private Instant validUntil
validUntil attribute.
-
cacheDuration
private Duration cacheDuration
cacheDurection attribute.
-
errorURL
private String errorURL
Error URL.
-
extensions
private Extensions extensions
Extensions child.
-
organization
private Organization organization
Organization administering this role.
-
unknownAttributes
private final AttributeMap unknownAttributes
"anyAttribute" attributes.
-
contactPersons
private final XMLObjectChildrenList<ContactPerson> contactPersons
Contact persons for this role.
-
keyDescriptors
private final XMLObjectChildrenList<KeyDescriptor> keyDescriptors
Key descriptors for this role.
-
-
Constructor Detail
-
RoleDescriptorImpl
protected RoleDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Detail
-
getID
public String getID()
- Specified by:
getIDin interfaceRoleDescriptor
-
setID
public void setID(String newID)
- Specified by:
setIDin interfaceRoleDescriptor
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceTimeBoundSAMLObject
-
getValidUntil
public Instant getValidUntil()
- Specified by:
getValidUntilin interfaceTimeBoundSAMLObject
-
setValidUntil
public void setValidUntil(Instant dt)
- Specified by:
setValidUntilin interfaceTimeBoundSAMLObject
-
getCacheDuration
public Duration getCacheDuration()
- Specified by:
getCacheDurationin interfaceCacheableSAMLObject
-
setCacheDuration
public void setCacheDuration(Duration duration)
- Specified by:
setCacheDurationin interfaceCacheableSAMLObject
-
getSupportedProtocols
public List<String> getSupportedProtocols()
- Specified by:
getSupportedProtocolsin interfaceRoleDescriptor
-
isSupportedProtocol
public boolean isSupportedProtocol(String protocol)
- Specified by:
isSupportedProtocolin interfaceRoleDescriptor
-
addSupportedProtocol
public void addSupportedProtocol(String protocol)
- Specified by:
addSupportedProtocolin interfaceRoleDescriptor
-
removeSupportedProtocol
public void removeSupportedProtocol(String protocol)
- Specified by:
removeSupportedProtocolin interfaceRoleDescriptor
-
removeSupportedProtocols
public void removeSupportedProtocols(Collection<String> protocols)
- Specified by:
removeSupportedProtocolsin interfaceRoleDescriptor
-
removeAllSupportedProtocols
public void removeAllSupportedProtocols()
- Specified by:
removeAllSupportedProtocolsin interfaceRoleDescriptor
-
getErrorURL
public String getErrorURL()
- Specified by:
getErrorURLin interfaceRoleDescriptor
-
setErrorURL
public void setErrorURL(String url)
- Specified by:
setErrorURLin interfaceRoleDescriptor
-
getExtensions
public Extensions getExtensions()
- Specified by:
getExtensionsin interfaceRoleDescriptor
-
setExtensions
public void setExtensions(Extensions ext)
- Specified by:
setExtensionsin interfaceRoleDescriptor
-
getOrganization
public Organization getOrganization()
- Specified by:
getOrganizationin interfaceRoleDescriptor
-
setOrganization
public void setOrganization(Organization org)
- Specified by:
setOrganizationin interfaceRoleDescriptor
-
getContactPersons
public List<ContactPerson> getContactPersons()
- Specified by:
getContactPersonsin interfaceRoleDescriptor
-
getKeyDescriptors
public List<KeyDescriptor> getKeyDescriptors()
- Specified by:
getKeyDescriptorsin interfaceRoleDescriptor
-
getUnknownAttributes
public AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-
getSignatureReferenceID
public String getSignatureReferenceID()
- Specified by:
getSignatureReferenceIDin interfaceSignableSAMLObject
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
-