Class SPSSODescriptorImpl

All Implemented Interfaces:
AttributeExtensibleXMLObject, XMLObject, SAMLObject, SignableSAMLObject, CacheableSAMLObject, TimeBoundSAMLObject, RoleDescriptor, SPSSODescriptor, SSODescriptor, SignableXMLObject

public class SPSSODescriptorImpl extends SSODescriptorImpl implements SPSSODescriptor
Concrete implementation of SPSSODescriptor.
  • Field Details

  • Constructor Details

    • SPSSODescriptorImpl

      protected SPSSODescriptorImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - the namespace the element is in
      elementLocalName - the local name of the XML element this Object represents
      namespacePrefix - the prefix for the given namespace
  • Method Details

    • isAuthnRequestsSigned

      public Boolean isAuthnRequestsSigned()
      Gets whether this service signs AuthN requests.
      Specified by:
      isAuthnRequestsSigned in interface SPSSODescriptor
      Returns:
      true of this service signs requests, false if not
    • isAuthnRequestsSignedXSBoolean

      public XSBooleanValue isAuthnRequestsSignedXSBoolean()
      Gets whether this service signs AuthN requests.
      Specified by:
      isAuthnRequestsSignedXSBoolean in interface SPSSODescriptor
      Returns:
      true of this service signs requests, false if not
    • setAuthnRequestsSigned

      public void setAuthnRequestsSigned(Boolean newIsSigned)
      Sets whether this service signs AuthN requests. Boolean values will be marshalled to either "true" or "false".
      Specified by:
      setAuthnRequestsSigned in interface SPSSODescriptor
      Parameters:
      newIsSigned - true of this service signs requests, false if not
    • setAuthnRequestsSigned

      public void setAuthnRequestsSigned(XSBooleanValue isSigned)
      Sets whether this service signs AuthN requests.
      Specified by:
      setAuthnRequestsSigned in interface SPSSODescriptor
      Parameters:
      isSigned - true of this service signs requests, false if not
    • getWantAssertionsSigned

      public Boolean getWantAssertionsSigned()
      Gets whether this service wants assertions signed.
      Specified by:
      getWantAssertionsSigned in interface SPSSODescriptor
      Returns:
      true if this service wants assertions signed, false if not
    • getWantAssertionsSignedXSBoolean

      public XSBooleanValue getWantAssertionsSignedXSBoolean()
      Gets whether this service wants assertions signed.
      Specified by:
      getWantAssertionsSignedXSBoolean in interface SPSSODescriptor
      Returns:
      true if this service wants assertions signed, false if not
    • setWantAssertionsSigned

      public void setWantAssertionsSigned(Boolean wantAssestionSigned)
      Sets whether this service wants assertions signed. Boolean values will be marshalled to either "true" or "false".
      Specified by:
      setWantAssertionsSigned in interface SPSSODescriptor
      Parameters:
      wantAssestionSigned - true if this service wants assertions signed, false if not
    • setWantAssertionsSigned

      public void setWantAssertionsSigned(XSBooleanValue wantAssestionSigned)
      Sets whether this service wants assertions signed.
      Specified by:
      setWantAssertionsSigned in interface SPSSODescriptor
      Parameters:
      wantAssestionSigned - true if this service wants assertions signed, false if not
    • getAssertionConsumerServices

      public List<AssertionConsumerService> getAssertionConsumerServices()
      Gets an list of assertion consumer service Endpoints for this service.
      Specified by:
      getAssertionConsumerServices in interface SPSSODescriptor
      Returns:
      list of assertion consumer service Endpoints for this service
    • getDefaultAssertionConsumerService

      public AssertionConsumerService getDefaultAssertionConsumerService()
      Gets the default assertion consumer service.

      The selection algorithm used is:

      1. Select the first service with an explicit isDefault=true
      2. Select the first service with no explicit isDefault
      3. Select the first service
      Specified by:
      getDefaultAssertionConsumerService in interface SPSSODescriptor
      Returns:
      default assertion consumer service (or null if there are no assertion consumer services defined)
    • getAttributeConsumingServices

      public List<AttributeConsumingService> getAttributeConsumingServices()
      Gets an list of attribute consuming service descriptors for this service.
      Specified by:
      getAttributeConsumingServices in interface SPSSODescriptor
      Returns:
      list of attribute consuming service descriptors for this service
    • getDefaultAttributeConsumingService

      public AttributeConsumingService getDefaultAttributeConsumingService()
      Gets the default attribute consuming service.

      The selection algorithm used is:

      1. Select the first service with an explicit isDefault=true
      2. Select the first service with no explicit isDefault
      3. Select the first service
      Specified by:
      getDefaultAttributeConsumingService in interface SPSSODescriptor
      Returns:
      default attribute consuming service (or null if there are no attribute consuming services defined)
    • getEndpoints

      public List<Endpoint> getEndpoints()
      Gets a read-only list of endpoints for this role.
      Specified by:
      getEndpoints in interface RoleDescriptor
      Overrides:
      getEndpoints in class SSODescriptorImpl
      Returns:
      immutable list of endpoints for this role
    • getEndpoints

      public List<Endpoint> getEndpoints(QName type)
      Gets a read-only list of endpoints for this role for the given type.
      Specified by:
      getEndpoints in interface RoleDescriptor
      Overrides:
      getEndpoints in class SSODescriptorImpl
      Parameters:
      type - the type of endpoints to retrieve
      Returns:
      immutable list of endpoints for this role
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Overrides:
      getOrderedChildren in class SSODescriptorImpl
      Returns:
      ordered list of child elements