|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.security.credential.BasicKeyInfoGeneratorFactory
public class BasicKeyInfoGeneratorFactory
A factory implementation which produces instances of BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator capable of
handling the information contained within a Credential.
All boolean options default to false.
| Nested Class Summary | |
|---|---|
class |
BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
An implementation of KeyInfoGenerator capable of handling the information
contained within a Credential. |
protected class |
BasicKeyInfoGeneratorFactory.BasicOptions
Options to be used in the production of a KeyInfo from a Credential. |
| Constructor Summary | |
|---|---|
BasicKeyInfoGeneratorFactory()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
emitEntityIDAsKeyName()
Get the option to emit the entity ID value in a Credential as a KeyName element. |
boolean |
emitKeyNames()
Get the option to emit key names found in a Credential as KeyName elements. |
boolean |
emitPublicKeyValue()
Get the option to emit the value of Credential.getPublicKey() as a KeyValue element. |
Class<? extends Credential> |
getCredentialType()
Get the type (interface) of the specific type of credential handled by generators produced by this factory. |
protected BasicKeyInfoGeneratorFactory.BasicOptions |
getOptions()
Get the options of this instance. |
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. |
protected BasicKeyInfoGeneratorFactory.BasicOptions |
newOptions()
Get a new instance to hold options. |
void |
setEmitEntityIDAsKeyName(boolean newValue)
Set the option to emit the entity ID value in a Credential as a KeyName element. |
void |
setEmitKeyNames(boolean newValue)
Set the option to emit key names found in a Credential as KeyName elements. |
void |
setEmitPublicKeyValue(boolean newValue)
Set the option to emit the value of Credential.getPublicKey() as a KeyValue element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicKeyInfoGeneratorFactory()
| Method Detail |
|---|
public Class<? extends Credential> getCredentialType()
KeyInfoGeneratorManager.
getCredentialType in interface KeyInfoGeneratorFactorypublic boolean handles(Credential credential)
handles in interface KeyInfoGeneratorFactorycredential - the credential to evaluate
public KeyInfoGenerator newInstance()
newInstance in interface KeyInfoGeneratorFactorypublic boolean emitEntityIDAsKeyName()
public void setEmitEntityIDAsKeyName(boolean newValue)
newValue - the new option value to setpublic boolean emitKeyNames()
public void setEmitKeyNames(boolean newValue)
newValue - the new option value to setpublic boolean emitPublicKeyValue()
Credential.getPublicKey() as a KeyValue element.
public void setEmitPublicKeyValue(boolean newValue)
Credential.getPublicKey() as a KeyValue element.
newValue - the new option value to setprotected BasicKeyInfoGeneratorFactory.BasicOptions newOptions()
BasicKeyInfoGeneratorFactory.BasicOptions.
protected BasicKeyInfoGeneratorFactory.BasicOptions getOptions()
newOptions().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||