Class SAML2ArtifactBuilderFactory
java.lang.Object
org.opensaml.saml.saml2.binding.artifact.SAML2ArtifactBuilderFactory
Factory used to construct SAML 2 artifact builders.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,
SAML2ArtifactBuilder<?>> Registered artifact builders. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildArtifact
(byte[] artifact) convenience method for getting an artifact builder and parsing the given artifact with it.buildArtifact
(String base64Artifact) Convenience method for getting an artifact builder and parsing the given Base64 encoded artifact with it.getArtifactBuilder
(byte[] type) Gets the artifact builder for the given type.Gets the currently registered artifact builders.
-
Field Details
-
artifactBuilders
Registered artifact builders.
-
-
Constructor Details
-
SAML2ArtifactBuilderFactory
public SAML2ArtifactBuilderFactory()Constructor.
-
-
Method Details
-
getArtifactBuilders
Gets the currently registered artifact builders.- Returns:
- currently registered artifact builders
-
getArtifactBuilder
Gets the artifact builder for the given type.- Parameters:
type
- type of artifact to be built- Returns:
- artifact builder for the given type
-
buildArtifact
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:
DecodingException
- if thebase64Artifact
could not be base64-decoded.
-
buildArtifact
convenience method for getting an artifact builder and parsing the given artifact with it.- Parameters:
artifact
- artifact to parse- Returns:
- constructed artifact
-