org.opensaml.xml.security.keyinfo
Interface KeyInfoGeneratorFactory

All Known Implementing Classes:
BasicKeyInfoGeneratorFactory, X509KeyInfoGeneratorFactory

public interface KeyInfoGeneratorFactory

Interface for factories which produce KeyInfoGenerator instances.


Method Summary
 Class<? extends Credential> getCredentialType()
          Get the type (interface) of the specific type of credential handled by generators produced by this factory.
 boolean handles(Credential credential)
          Check whether the generators produced by this factory can handle the specified credential.
 KeyInfoGenerator newInstance()
          Get a new instance of the generator type produced by the factory.
 

Method Detail

newInstance

KeyInfoGenerator newInstance()
Get a new instance of the generator type produced by the factory.

Returns:
a new KeyInfoGenerator instance

handles

boolean handles(Credential credential)
Check whether the generators produced by this factory can handle the specified credential.

Parameters:
credential - the credential to evaluate
Returns:
true if the generators produced by this factory can handle the type of the specified credential, false otherwise

getCredentialType

Class<? extends Credential> getCredentialType()
Get the type (interface) of the specific type of credential handled by generators produced by this factory. Primarily used as an index by manager implementions such as KeyInfoGeneratorManager.

Returns:
the specifc type of credential handled by the generators produced by this factory


Copyright © 1999-2013. All Rights Reserved.