Class EntityDescriptorContainer

java.lang.Object
se.swedenconnect.opensaml.saml2.metadata.AbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntityDescriptor>
se.swedenconnect.opensaml.saml2.metadata.EntityDescriptorContainer
All Implemented Interfaces:
MetadataContainer<org.opensaml.saml.saml2.metadata.EntityDescriptor>

public class EntityDescriptorContainer extends AbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntityDescriptor>
A MetadataContainer for EntityDescriptor elements. This class is useful for an entity wishing to publicize its metadata.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • EntityDescriptorContainer

      public EntityDescriptorContainer(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor, org.opensaml.security.x509.X509Credential signatureCredentials)
      Constructor assigning the encapsulated descriptor element.
      Parameters:
      descriptor - the descriptor object
      signatureCredentials - the signature credentials for signing the descriptor. May be null, but then no signing will be possible
  • Method Details

    • getID

      protected String getID(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor)
      Returns the ID attribute of the supplied descriptor.
      Specified by:
      getID in class AbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntityDescriptor>
      Parameters:
      descriptor - the descriptor
      Returns:
      the ID attribute
    • assignID

      protected void assignID(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor, String id)
      Assigns the supplied id to the ID attribute of the descriptor.
      Specified by:
      assignID in class AbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntityDescriptor>
      Parameters:
      descriptor - the descriptor
      id - the ID attribute value
    • getLogString

      protected String getLogString(org.opensaml.saml.saml2.metadata.EntityDescriptor descriptor)
      Returns the entityID attribute.
      Specified by:
      getLogString in class AbstractMetadataContainer<org.opensaml.saml.saml2.metadata.EntityDescriptor>
      Parameters:
      descriptor - the descriptor
      Returns:
      the log string