Class StorageServiceSAMLArtifactMapEntryFactory

  • All Implemented Interfaces:
    net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent, org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntryFactory, org.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>

    public class StorageServiceSAMLArtifactMapEntryFactory
    extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
    implements org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntryFactory, org.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>
    A factory and StorageSerializer for instances of BasicSAMLArtifactMapEntry.

    This implements serialization of an entry by wrapping the XML-based message in a parent element that tracks the additional associated data.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Logger log
      Class logger.
      private net.shibboleth.utilities.java.support.xml.ParserPool parserPool
      XML parsing component.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry deserialize​(long version, String context, String key, String value, Long expiration)
      net.shibboleth.utilities.java.support.xml.ParserPool getParserPool()
      Gets the parser pool used to parse serialized data.
      org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry newEntry​(String artifact, String issuerId, String relyingPartyId, org.opensaml.saml.common.SAMLObject samlMessage)
      String serialize​(org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry instance)
      void setParserPool​(net.shibboleth.utilities.java.support.xml.ParserPool pool)
      Sets the parser pool used to parse serialized data.
      • Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent

        destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
      • Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent

        initialize, isInitialized
    • Field Detail

      • log

        @Nonnull
        private final Logger log
        Class logger.
      • parserPool

        @Nonnull
        private net.shibboleth.utilities.java.support.xml.ParserPool parserPool
        XML parsing component.
    • Constructor Detail

      • StorageServiceSAMLArtifactMapEntryFactory

        public StorageServiceSAMLArtifactMapEntryFactory()
        Constructor.
    • Method Detail

      • getParserPool

        @Nonnull
        public net.shibboleth.utilities.java.support.xml.ParserPool getParserPool()
        Gets the parser pool used to parse serialized data.
        Returns:
        parser pool used to parse serialized data
      • setParserPool

        public void setParserPool​(@Nonnull
                                  net.shibboleth.utilities.java.support.xml.ParserPool pool)
        Sets the parser pool used to parse serialized data.
        Parameters:
        pool - parser pool used to parse serialized data
      • newEntry

        @Nonnull
        public org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry newEntry​(@Nonnull @NotEmpty
                                                                                                       String artifact,
                                                                                                       @Nonnull @NotEmpty
                                                                                                       String issuerId,
                                                                                                       @Nonnull @NotEmpty
                                                                                                       String relyingPartyId,
                                                                                                       @Nonnull
                                                                                                       org.opensaml.saml.common.SAMLObject samlMessage)
        Specified by:
        newEntry in interface org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntryFactory
      • serialize

        @Nonnull
        public String serialize​(@Nonnull
                                org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry instance)
                         throws IOException
        Specified by:
        serialize in interface org.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>
        Throws:
        IOException
      • deserialize

        @Nonnull
        public org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry deserialize​(long version,
                                                                                                          @Nonnull @NotEmpty
                                                                                                          String context,
                                                                                                          @Nonnull @NotEmpty
                                                                                                          String key,
                                                                                                          @Nonnull @NotEmpty
                                                                                                          String value,
                                                                                                          @Nullable
                                                                                                          Long expiration)
                                                                                                   throws IOException
        Specified by:
        deserialize in interface org.opensaml.storage.StorageSerializer<org.opensaml.saml.common.binding.artifact.SAMLArtifactMap.SAMLArtifactMapEntry>
        Throws:
        IOException