org.opensaml.saml1.binding.artifact
Class SAML1ArtifactBuilderFactory

java.lang.Object
  extended by org.opensaml.saml1.binding.artifact.SAML1ArtifactBuilderFactory

public class SAML1ArtifactBuilderFactory
extends Object

Factory used to construct SAML 1 artifact builders.


Field Summary
private  Map<String,SAML1ArtifactBuilder> artifactBuilders
          Registered artifact builders.
 
Constructor Summary
SAML1ArtifactBuilderFactory()
          Constructor.
 
Method Summary
 AbstractSAML1Artifact buildArtifact(byte[] artifact)
          Convenience method for getting an artifact builder and parsing the given artifact with it.
 AbstractSAML1Artifact buildArtifact(String base64Artifact)
          Convenience method for getting an artifact builder and parsing the given Base64 encoded artifact with it.
 SAML1ArtifactBuilder getArtifactBuilder(byte[] type)
          Gets the artifact builder for the given type.
 Map<String,SAML1ArtifactBuilder> getArtifactBuilders()
          Gets the currently registered artifact builders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

artifactBuilders

private Map<String,SAML1ArtifactBuilder> artifactBuilders
Registered 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 AbstractSAML1Artifact buildArtifact(String base64Artifact)
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

buildArtifact

public AbstractSAML1Artifact buildArtifact(byte[] artifact)
Convenience method for getting an artifact builder and parsing the given artifact with it.

Parameters:
artifact - artifact to parse
Returns:
constructed artifact


Copyright © 1999-2012. All Rights Reserved.