Class SAML1ArtifactBuilderFactory


  • public class SAML1ArtifactBuilderFactory
    extends Object
    Factory used to construct SAML 1 artifact builders.
    • Constructor Detail

      • SAML1ArtifactBuilderFactory

        public SAML1ArtifactBuilderFactory()
        Constructor.
    • Method Detail

      • getArtifactBuilders

        public Map<String,​SAML1ArtifactBuilder<?>> getArtifactBuilders()
        Gets the currently registered artifact builders.
        Returns:
        currently registered artifact builders
      • getArtifactBuilder

        public SAML1ArtifactBuilder<?> getArtifactBuilder​(byte[] type)
        Gets the artifact builder for the given type.
        Parameters:
        type - type of artifact to be built
        Returns:
        artifact builder for the given type
      • buildArtifact

        public SAML1Artifact buildArtifact​(@Nonnull
                                           String base64Artifact)
                                    throws net.shibboleth.utilities.java.support.codec.DecodingException
        Convenience method for getting an artifact builder and parsing the given Base64 encoded artifact with it.
        Parameters:
        base64Artifact - Base64 encoded artifact to parse
        Returns:
        constructed artifact
        Throws:
        net.shibboleth.utilities.java.support.codec.DecodingException - if the base64Artifact could not be base64-decoded.
      • buildArtifact

        @Nullable
        public SAML1Artifact buildArtifact​(@Nullable
                                           byte[] artifact)
        Convenience method for getting an artifact builder and parsing the given artifact with it.
        Parameters:
        artifact - artifact to parse
        Returns:
        constructed artifact