public class BasicKeyInfoGeneratorFactory extends Object implements KeyInfoGeneratorFactory
KeyInfoGenerator capable of
handling the information contained within a Credential.
All boolean options default to false.| Modifier and Type | Class and Description |
|---|---|
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. |
| Modifier and Type | Field and Description |
|---|---|
private BasicKeyInfoGeneratorFactory.BasicOptions |
options
The set of options configured for the factory.
|
| Constructor and Description |
|---|
BasicKeyInfoGeneratorFactory()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
emitPublicDEREncodedKeyValue()
Get the option to emit the value of
Credential.getPublicKey() as a DEREncodedKeyValue element. |
boolean |
emitPublicKeyValue()
Get the option to emit the value of
Credential.getPublicKey() as a KeyValue element. |
Class<? extends org.opensaml.security.credential.Credential> |
getCredentialType() |
protected BasicKeyInfoGeneratorFactory.BasicOptions |
getOptions()
Get the options of this instance.
|
boolean |
handles(org.opensaml.security.credential.Credential credential) |
KeyInfoGenerator |
newInstance() |
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 |
setEmitPublicDEREncodedKeyValue(boolean newValue)
Set the option to emit the value of
Credential.getPublicKey() as a DEREncodedKeyValue element. |
void |
setEmitPublicKeyValue(boolean newValue)
Set the option to emit the value of
Credential.getPublicKey() as a KeyValue element. |
private final BasicKeyInfoGeneratorFactory.BasicOptions options
public BasicKeyInfoGeneratorFactory()
@Nonnull public Class<? extends org.opensaml.security.credential.Credential> getCredentialType()
getCredentialType in interface KeyInfoGeneratorFactorypublic boolean handles(@Nonnull org.opensaml.security.credential.Credential credential)
handles in interface KeyInfoGeneratorFactory@Nonnull 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 setpublic boolean emitPublicDEREncodedKeyValue()
Credential.getPublicKey() as a DEREncodedKeyValue element.public void setEmitPublicDEREncodedKeyValue(boolean newValue)
Credential.getPublicKey() as a DEREncodedKeyValue element.newValue - the new option value to set@Nonnull protected BasicKeyInfoGeneratorFactory.BasicOptions newOptions()
BasicKeyInfoGeneratorFactory.BasicOptions.@Nonnull protected BasicKeyInfoGeneratorFactory.BasicOptions getOptions()
newOptions().Copyright © 1999–2015. All rights reserved.