Package org.opensaml.xmlsec.keyinfo.impl
Class BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
- java.lang.Object
-
- org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
-
- All Implemented Interfaces:
org.opensaml.xmlsec.keyinfo.KeyInfoGenerator
- Direct Known Subclasses:
X509KeyInfoGeneratorFactory.X509KeyInfoGenerator
- Enclosing class:
- BasicKeyInfoGeneratorFactory
public class BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator extends Object implements org.opensaml.xmlsec.keyinfo.KeyInfoGenerator
An implementation ofKeyInfoGeneratorcapable of handling the information contained within aCredential.
-
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.core.xml.XMLObjectBuilder<org.opensaml.xmlsec.signature.KeyInfo>keyInfoBuilderBuilder for KeyInfo objects.private BasicKeyInfoGeneratorFactory.BasicOptionsoptionsThe set of options to be used by the generator.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicKeyInfoGenerator(BasicKeyInfoGeneratorFactory.BasicOptions newOptions)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opensaml.xmlsec.signature.KeyInfogenerate(org.opensaml.security.credential.Credential credential)protected voidprocessEntityID(org.opensaml.xmlsec.signature.KeyInfo keyInfo, org.opensaml.security.credential.Credential credential)Process the value ofCredential.getEntityId().protected voidprocessKeyNames(org.opensaml.xmlsec.signature.KeyInfo keyInfo, org.opensaml.security.credential.Credential credential)Process the values ofCredential.getKeyNames().protected voidprocessPublicKey(org.opensaml.xmlsec.signature.KeyInfo keyInfo, org.opensaml.security.credential.Credential credential)Process the value ofCredential.getPublicKey().
-
-
-
Field Detail
-
options
private final BasicKeyInfoGeneratorFactory.BasicOptions options
The set of options to be used by the generator.
-
keyInfoBuilder
private final org.opensaml.core.xml.XMLObjectBuilder<org.opensaml.xmlsec.signature.KeyInfo> keyInfoBuilder
Builder for KeyInfo objects.
-
-
Constructor Detail
-
BasicKeyInfoGenerator
protected BasicKeyInfoGenerator(@Nonnull BasicKeyInfoGeneratorFactory.BasicOptions newOptions)Constructor.- Parameters:
newOptions- the options to be used by the generator
-
-
Method Detail
-
generate
@Nullable public org.opensaml.xmlsec.signature.KeyInfo generate(@Nullable org.opensaml.security.credential.Credential credential) throws org.opensaml.security.SecurityException- Specified by:
generatein interfaceorg.opensaml.xmlsec.keyinfo.KeyInfoGenerator- Throws:
org.opensaml.security.SecurityException
-
processKeyNames
protected void processKeyNames(@Nonnull org.opensaml.xmlsec.signature.KeyInfo keyInfo, @Nonnull org.opensaml.security.credential.Credential credential)Process the values ofCredential.getKeyNames().- Parameters:
keyInfo- the KeyInfo that is being builtcredential- the Credential that is geing processed
-
processEntityID
protected void processEntityID(@Nonnull org.opensaml.xmlsec.signature.KeyInfo keyInfo, @Nonnull org.opensaml.security.credential.Credential credential)Process the value ofCredential.getEntityId().- Parameters:
keyInfo- the KeyInfo that is being builtcredential- the Credential that is geing processed
-
processPublicKey
protected void processPublicKey(@Nonnull org.opensaml.xmlsec.signature.KeyInfo keyInfo, @Nonnull org.opensaml.security.credential.Credential credential) throws org.opensaml.security.SecurityExceptionProcess the value ofCredential.getPublicKey().- Parameters:
keyInfo- the KeyInfo that is being builtcredential- the Credential that is being processed- Throws:
org.opensaml.security.SecurityException- if the public key can't be encoded properly
-
-