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:
org.opensaml.core.xml.AttributeExtensibleXMLObject,org.opensaml.core.xml.XMLObject,org.opensaml.saml.common.SAMLObject,org.opensaml.saml.common.SignableSAMLObject,org.opensaml.saml.saml2.common.CacheableSAMLObject,org.opensaml.saml.saml2.common.TimeBoundSAMLObject,org.opensaml.saml.saml2.metadata.RoleDescriptor,org.opensaml.xmlsec.signature.SignableXMLObject
- Direct Known Subclasses:
AttributeAuthorityDescriptorImpl,AuthnAuthorityDescriptorImpl,PDPDescriptorImpl,QueryDescriptorTypeImpl,SSODescriptorImpl
public abstract class RoleDescriptorImpl extends org.opensaml.saml.common.AbstractSignableSAMLObject implements org.opensaml.saml.saml2.metadata.RoleDescriptorConcrete implementation ofRoleDescriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private DurationcacheDurationcacheDurection attribute.private org.opensaml.core.xml.util.XMLObjectChildrenList<org.opensaml.saml.saml2.metadata.ContactPerson>contactPersonsContact persons for this role.private StringerrorURLError URL.private org.opensaml.saml.saml2.metadata.ExtensionsextensionsExtensions child.private StringidID attribute.private org.opensaml.core.xml.util.XMLObjectChildrenList<org.opensaml.saml.saml2.metadata.KeyDescriptor>keyDescriptorsKey descriptors for this role.private org.opensaml.saml.saml2.metadata.OrganizationorganizationOrganization administering this role.private List<String>supportedProtocolsSet of supported protocols.private org.opensaml.core.xml.util.AttributeMapunknownAttributes"anyAttribute" attributes.private InstantvalidUntilvalidUntil attribute.-
Fields inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_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<org.opensaml.saml.saml2.metadata.ContactPerson>getContactPersons()StringgetErrorURL()org.opensaml.saml.saml2.metadata.ExtensionsgetExtensions()StringgetID()List<org.opensaml.saml.saml2.metadata.KeyDescriptor>getKeyDescriptors()List<org.opensaml.core.xml.XMLObject>getOrderedChildren()org.opensaml.saml.saml2.metadata.OrganizationgetOrganization()StringgetSignatureReferenceID()List<String>getSupportedProtocols()org.opensaml.core.xml.util.AttributeMapgetUnknownAttributes()InstantgetValidUntil()booleanisSupportedProtocol(String protocol)booleanisValid()voidremoveAllSupportedProtocols()voidremoveSupportedProtocol(String protocol)voidremoveSupportedProtocols(Collection<String> protocols)voidsetCacheDuration(Duration duration)voidsetErrorURL(String url)voidsetExtensions(org.opensaml.saml.saml2.metadata.Extensions ext)voidsetID(String newID)voidsetOrganization(org.opensaml.saml.saml2.metadata.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 org.opensaml.saml.saml2.metadata.Extensions extensions
Extensions child.
-
organization
private org.opensaml.saml.saml2.metadata.Organization organization
Organization administering this role.
-
unknownAttributes
private final org.opensaml.core.xml.util.AttributeMap unknownAttributes
"anyAttribute" attributes.
-
contactPersons
private final org.opensaml.core.xml.util.XMLObjectChildrenList<org.opensaml.saml.saml2.metadata.ContactPerson> contactPersons
Contact persons for this role.
-
keyDescriptors
private final org.opensaml.core.xml.util.XMLObjectChildrenList<org.opensaml.saml.saml2.metadata.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 interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
setID
public void setID(String newID)
- Specified by:
setIDin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
isValid
public boolean isValid()
- Specified by:
isValidin interfaceorg.opensaml.saml.saml2.common.TimeBoundSAMLObject
-
getValidUntil
public Instant getValidUntil()
- Specified by:
getValidUntilin interfaceorg.opensaml.saml.saml2.common.TimeBoundSAMLObject
-
setValidUntil
public void setValidUntil(Instant dt)
- Specified by:
setValidUntilin interfaceorg.opensaml.saml.saml2.common.TimeBoundSAMLObject
-
getCacheDuration
public Duration getCacheDuration()
- Specified by:
getCacheDurationin interfaceorg.opensaml.saml.saml2.common.CacheableSAMLObject
-
setCacheDuration
public void setCacheDuration(Duration duration)
- Specified by:
setCacheDurationin interfaceorg.opensaml.saml.saml2.common.CacheableSAMLObject
-
getSupportedProtocols
public List<String> getSupportedProtocols()
- Specified by:
getSupportedProtocolsin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
isSupportedProtocol
public boolean isSupportedProtocol(String protocol)
- Specified by:
isSupportedProtocolin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
addSupportedProtocol
public void addSupportedProtocol(String protocol)
- Specified by:
addSupportedProtocolin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
removeSupportedProtocol
public void removeSupportedProtocol(String protocol)
- Specified by:
removeSupportedProtocolin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
removeSupportedProtocols
public void removeSupportedProtocols(Collection<String> protocols)
- Specified by:
removeSupportedProtocolsin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
removeAllSupportedProtocols
public void removeAllSupportedProtocols()
- Specified by:
removeAllSupportedProtocolsin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
getErrorURL
public String getErrorURL()
- Specified by:
getErrorURLin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
setErrorURL
public void setErrorURL(String url)
- Specified by:
setErrorURLin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
getExtensions
public org.opensaml.saml.saml2.metadata.Extensions getExtensions()
- Specified by:
getExtensionsin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
setExtensions
public void setExtensions(org.opensaml.saml.saml2.metadata.Extensions ext)
- Specified by:
setExtensionsin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
getOrganization
public org.opensaml.saml.saml2.metadata.Organization getOrganization()
- Specified by:
getOrganizationin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
setOrganization
public void setOrganization(org.opensaml.saml.saml2.metadata.Organization org)
- Specified by:
setOrganizationin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
getContactPersons
public List<org.opensaml.saml.saml2.metadata.ContactPerson> getContactPersons()
- Specified by:
getContactPersonsin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
getKeyDescriptors
public List<org.opensaml.saml.saml2.metadata.KeyDescriptor> getKeyDescriptors()
- Specified by:
getKeyDescriptorsin interfaceorg.opensaml.saml.saml2.metadata.RoleDescriptor
-
getUnknownAttributes
public org.opensaml.core.xml.util.AttributeMap getUnknownAttributes()
- Specified by:
getUnknownAttributesin interfaceorg.opensaml.core.xml.AttributeExtensibleXMLObject
-
getSignatureReferenceID
public String getSignatureReferenceID()
- Specified by:
getSignatureReferenceIDin interfaceorg.opensaml.saml.common.SignableSAMLObject
-
getOrderedChildren
public List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildrenin interfaceorg.opensaml.core.xml.XMLObject
-
-