public class BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator extends Object implements KeyInfoGenerator
KeyInfoGenerator capable of handling the information
contained within a Credential.| Modifier and Type | Field and Description |
|---|---|
private KeyInfoBuilder |
keyInfoBuilder
Builder for KeyInfo objects.
|
private BasicKeyInfoGeneratorFactory.BasicOptions |
options
The set of options to be used by the generator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator(BasicKeyInfoGeneratorFactory.BasicOptions newOptions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
KeyInfo |
generate(org.opensaml.security.credential.Credential credential) |
protected void |
processEntityID(KeyInfo keyInfo,
org.opensaml.security.credential.Credential credential)
Process the value of
Credential.getEntityId(). |
protected void |
processKeyNames(KeyInfo keyInfo,
org.opensaml.security.credential.Credential credential)
Process the values of
Credential.getKeyNames(). |
protected void |
processPublicKey(KeyInfo keyInfo,
org.opensaml.security.credential.Credential credential)
Process the value of
Credential.getPublicKey(). |
private final BasicKeyInfoGeneratorFactory.BasicOptions options
private final KeyInfoBuilder keyInfoBuilder
protected BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator(@Nonnull BasicKeyInfoGeneratorFactory.BasicOptions newOptions)
newOptions - the options to be used by the generator@Nullable public KeyInfo generate(@Nullable org.opensaml.security.credential.Credential credential) throws org.opensaml.security.SecurityException
generate in interface KeyInfoGeneratororg.opensaml.security.SecurityExceptionprotected void processKeyNames(@Nonnull KeyInfo keyInfo, @Nonnull org.opensaml.security.credential.Credential credential)
Credential.getKeyNames().keyInfo - the KeyInfo that is being builtcredential - the Credential that is geing processedprotected void processEntityID(@Nonnull KeyInfo keyInfo, @Nonnull org.opensaml.security.credential.Credential credential)
Credential.getEntityId().keyInfo - the KeyInfo that is being builtcredential - the Credential that is geing processedprotected void processPublicKey(@Nonnull KeyInfo keyInfo, @Nonnull org.opensaml.security.credential.Credential credential) throws org.opensaml.security.SecurityException
Credential.getPublicKey().keyInfo - the KeyInfo that is being builtcredential - the Credential that is being processedorg.opensaml.security.SecurityException - if the public key can't be encoded properlyCopyright © 1999–2015. All rights reserved.