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 of
RoleDescriptor.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DurationcacheDurection attribute.private final XMLObjectChildrenList<ContactPerson>Contact persons for this role.private StringError URL.private ExtensionsExtensions child.private StringID attribute.private final XMLObjectChildrenList<KeyDescriptor>Key descriptors for this role.private OrganizationOrganization administering this role.Set of supported protocols.private final AttributeMap"anyAttribute" attributes.private InstantvalidUntil attribute.Fields inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
CACHE_DURATION_ATTRIB_NAME, CACHE_DURATION_ATTRIB_QNAMEFields 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_NAMEFields inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
VALID_UNTIL_ATTRIB_NAME, VALID_UNTIL_ATTRIB_QNAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRoleDescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSupportedProtocol(String protocol) getID()booleanisSupportedProtocol(String protocol) booleanisValid()voidvoidremoveSupportedProtocol(String protocol) voidremoveSupportedProtocols(Collection<String> protocols) voidsetCacheDuration(Duration duration) voidsetErrorURL(String url) voidsetExtensions(Extensions ext) voidvoidvoidsetValidUntil(Instant dt) Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignatureMethods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSignedMethods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, 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, setSchemaTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.saml.saml2.metadata.RoleDescriptor
getEndpoints, getEndpointsMethods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignatureMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, 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 Details
-
id
ID attribute. -
validUntil
validUntil attribute. -
cacheDuration
cacheDurection attribute. -
supportedProtocols
Set of supported protocols. -
errorURL
Error URL. -
extensions
Extensions child. -
organization
Organization administering this role. -
unknownAttributes
"anyAttribute" attributes. -
contactPersons
Contact persons for this role. -
keyDescriptors
Key descriptors for this role.
-
-
Constructor Details
-
RoleDescriptorImpl
protected RoleDescriptorImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable 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 Details
-
getID
- Specified by:
getIDin interfaceRoleDescriptor
-
setID
- Specified by:
setIDin interfaceRoleDescriptor
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceTimeBoundSAMLObject
-
getValidUntil
- Specified by:
getValidUntilin interfaceTimeBoundSAMLObject
-
setValidUntil
- Specified by:
setValidUntilin interfaceTimeBoundSAMLObject
-
getCacheDuration
- Specified by:
getCacheDurationin interfaceCacheableSAMLObject
-
setCacheDuration
- Specified by:
setCacheDurationin interfaceCacheableSAMLObject
-
getSupportedProtocols
- Specified by:
getSupportedProtocolsin interfaceRoleDescriptor
-
isSupportedProtocol
- Specified by:
isSupportedProtocolin interfaceRoleDescriptor
-
addSupportedProtocol
- Specified by:
addSupportedProtocolin interfaceRoleDescriptor
-
removeSupportedProtocol
- Specified by:
removeSupportedProtocolin interfaceRoleDescriptor
-
removeSupportedProtocols
- Specified by:
removeSupportedProtocolsin interfaceRoleDescriptor
-
removeAllSupportedProtocols
public void removeAllSupportedProtocols()- Specified by:
removeAllSupportedProtocolsin interfaceRoleDescriptor
-
getErrorURL
- Specified by:
getErrorURLin interfaceRoleDescriptor
-
setErrorURL
- Specified by:
setErrorURLin interfaceRoleDescriptor
-
getExtensions
- Specified by:
getExtensionsin interfaceRoleDescriptor
-
setExtensions
- Specified by:
setExtensionsin interfaceRoleDescriptor
-
getOrganization
- Specified by:
getOrganizationin interfaceRoleDescriptor
-
setOrganization
- Specified by:
setOrganizationin interfaceRoleDescriptor
-
getContactPersons
- Specified by:
getContactPersonsin interfaceRoleDescriptor
-
getKeyDescriptors
- Specified by:
getKeyDescriptorsin interfaceRoleDescriptor
-
getUnknownAttributes
- Specified by:
getUnknownAttributesin interfaceAttributeExtensibleXMLObject
-
getSignatureReferenceID
- Specified by:
getSignatureReferenceIDin interfaceSignableSAMLObject
-
getOrderedChildren
- Specified by:
getOrderedChildrenin interfaceXMLObject
-