Class SPSSODescriptorImpl
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
org.opensaml.saml.saml2.metadata.impl.SSODescriptorImpl
org.opensaml.saml.saml2.metadata.impl.SPSSODescriptorImpl
- All Implemented Interfaces:
AttributeExtensibleXMLObject
,XMLObject
,SAMLObject
,SignableSAMLObject
,CacheableSAMLObject
,TimeBoundSAMLObject
,RoleDescriptor
,SPSSODescriptor
,SSODescriptor
,SignableXMLObject
Concrete implementation of
SPSSODescriptor
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XMLObjectChildrenList<AssertionConsumerService>
AssertionConsumerService children.private XSBooleanValue
value for the want assertion signed attribute.private final XMLObjectChildrenList<AttributeConsumingService>
AttributeConsumingService children.private XSBooleanValue
value for isAuthnRequestSigned 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.metadata.SPSSODescriptor
AUTH_REQUESTS_SIGNED_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME, WANT_ASSERTIONS_SIGNED_ATTRIB_NAME
Fields inherited from interface org.opensaml.saml.saml2.metadata.SSODescriptor
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_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
ConstructorsModifierConstructorDescriptionprotected
SPSSODescriptorImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets an list of assertion consumer serviceEndpoint
s for this service.Gets an list of attribute consuming service descriptors for this service.Gets the default assertion consumer service.Gets the default attribute consuming service.Gets a read-only list of endpoints for this role.getEndpoints
(QName type) Gets a read-only list of endpoints for this role for the given type.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets whether this service wants assertions signed.Gets whether this service wants assertions signed.Gets whether this service signs AuthN requests.Gets whether this service signs AuthN requests.void
setAuthnRequestsSigned
(Boolean newIsSigned) Sets whether this service signs AuthN requests.void
setAuthnRequestsSigned
(XSBooleanValue isSigned) Sets whether this service signs AuthN requests.void
setWantAssertionsSigned
(Boolean wantAssestionSigned) Sets whether this service wants assertions signed.void
setWantAssertionsSigned
(XSBooleanValue wantAssestionSigned) Sets whether this service wants assertions signed.Methods inherited from class org.opensaml.saml.saml2.metadata.impl.SSODescriptorImpl
getArtifactResolutionServices, getDefaultArtifactResolutionService, getManageNameIDServices, getNameIDFormats, getSingleLogoutServices
Methods inherited from class org.opensaml.saml.saml2.metadata.impl.RoleDescriptorImpl
addSupportedProtocol, getCacheDuration, getContactPersons, getErrorURL, getExtensions, getID, getKeyDescriptors, getOrganization, getSignatureReferenceID, getSupportedProtocols, getUnknownAttributes, getValidUntil, isSupportedProtocol, isValid, removeAllSupportedProtocols, removeSupportedProtocol, removeSupportedProtocols, setCacheDuration, setErrorURL, setExtensions, setID, setOrganization, setValidUntil
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.core.xml.AttributeExtensibleXMLObject
getUnknownAttributes
Methods inherited from interface org.opensaml.saml.saml2.common.CacheableSAMLObject
getCacheDuration, setCacheDuration
Methods inherited from interface org.opensaml.saml.saml2.metadata.RoleDescriptor
addSupportedProtocol, getContactPersons, getErrorURL, getExtensions, getID, getKeyDescriptors, getOrganization, getSupportedProtocols, isSupportedProtocol, removeAllSupportedProtocols, removeSupportedProtocol, removeSupportedProtocols, setErrorURL, setExtensions, setID, setOrganization
Methods inherited from interface org.opensaml.saml.common.SignableSAMLObject
getSignatureReferenceID
Methods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignature
Methods inherited from interface org.opensaml.saml.saml2.metadata.SSODescriptor
getArtifactResolutionServices, getDefaultArtifactResolutionService, getManageNameIDServices, getNameIDFormats, getSingleLogoutServices
Methods inherited from interface org.opensaml.saml.saml2.common.TimeBoundSAMLObject
getValidUntil, isValid, setValidUntil
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 Details
-
authnRequestSigned
value for isAuthnRequestSigned attribute. -
assertionSigned
value for the want assertion signed attribute. -
assertionConsumerServices
AssertionConsumerService children. -
attributeConsumingServices
AttributeConsumingService children.
-
-
Constructor Details
-
SPSSODescriptorImpl
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
-
isAuthnRequestsSigned
Gets whether this service signs AuthN requests.- Specified by:
isAuthnRequestsSigned
in interfaceSPSSODescriptor
- Returns:
- true of this service signs requests, false if not
-
isAuthnRequestsSignedXSBoolean
Gets whether this service signs AuthN requests.- Specified by:
isAuthnRequestsSignedXSBoolean
in interfaceSPSSODescriptor
- Returns:
- true of this service signs requests, false if not
-
setAuthnRequestsSigned
Sets whether this service signs AuthN requests. Boolean values will be marshalled to either "true" or "false".- Specified by:
setAuthnRequestsSigned
in interfaceSPSSODescriptor
- Parameters:
newIsSigned
- true of this service signs requests, false if not
-
setAuthnRequestsSigned
Sets whether this service signs AuthN requests.- Specified by:
setAuthnRequestsSigned
in interfaceSPSSODescriptor
- Parameters:
isSigned
- true of this service signs requests, false if not
-
getWantAssertionsSigned
Gets whether this service wants assertions signed.- Specified by:
getWantAssertionsSigned
in interfaceSPSSODescriptor
- Returns:
- true if this service wants assertions signed, false if not
-
getWantAssertionsSignedXSBoolean
Gets whether this service wants assertions signed.- Specified by:
getWantAssertionsSignedXSBoolean
in interfaceSPSSODescriptor
- Returns:
- true if this service wants assertions signed, false if not
-
setWantAssertionsSigned
Sets whether this service wants assertions signed. Boolean values will be marshalled to either "true" or "false".- Specified by:
setWantAssertionsSigned
in interfaceSPSSODescriptor
- Parameters:
wantAssestionSigned
- true if this service wants assertions signed, false if not
-
setWantAssertionsSigned
Sets whether this service wants assertions signed.- Specified by:
setWantAssertionsSigned
in interfaceSPSSODescriptor
- Parameters:
wantAssestionSigned
- true if this service wants assertions signed, false if not
-
getAssertionConsumerServices
Gets an list of assertion consumer serviceEndpoint
s for this service.- Specified by:
getAssertionConsumerServices
in interfaceSPSSODescriptor
- Returns:
- list of assertion consumer service
Endpoint
s for this service
-
getDefaultAssertionConsumerService
Gets the default assertion consumer service.The selection algorithm used is:
- Select the first service with an explicit
isDefault=true
- Select the first service with no explicit
isDefault
- Select the first service
- Specified by:
getDefaultAssertionConsumerService
in interfaceSPSSODescriptor
- Returns:
- default assertion consumer service (or null if there are no assertion consumer services defined)
- Select the first service with an explicit
-
getAttributeConsumingServices
Gets an list of attribute consuming service descriptors for this service.- Specified by:
getAttributeConsumingServices
in interfaceSPSSODescriptor
- Returns:
- list of attribute consuming service descriptors for this service
-
getDefaultAttributeConsumingService
Gets the default attribute consuming service.The selection algorithm used is:
- Select the first service with an explicit
isDefault=true
- Select the first service with no explicit
isDefault
- Select the first service
- Specified by:
getDefaultAttributeConsumingService
in interfaceSPSSODescriptor
- Returns:
- default attribute consuming service (or null if there are no attribute consuming services defined)
- Select the first service with an explicit
-
getEndpoints
Gets a read-only list of endpoints for this role.- Specified by:
getEndpoints
in interfaceRoleDescriptor
- Overrides:
getEndpoints
in classSSODescriptorImpl
- Returns:
- immutable list of endpoints for this role
-
getEndpoints
Gets a read-only list of endpoints for this role for the given type.- Specified by:
getEndpoints
in interfaceRoleDescriptor
- Overrides:
getEndpoints
in classSSODescriptorImpl
- Parameters:
type
- the type of endpoints to retrieve- Returns:
- immutable list of endpoints for this role
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Overrides:
getOrderedChildren
in classSSODescriptorImpl
- Returns:
- ordered list of child elements
-