public class KeyAgreementKeyInfoGeneratorFactory.KeyAgreementKeyInfoGenerator extends X509KeyInfoGeneratorFactory.X509KeyInfoGenerator
KeyInfoGenerator capable of handling the information contained within a
KeyAgreementCredential.| Modifier | Constructor and Description |
|---|---|
protected |
KeyAgreementKeyInfoGenerator(X509KeyInfoGeneratorFactory.X509Options options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected RecipientKeyInfo |
cloneToRecipientKeyInfo(KeyInfo keyInfo)
Clones a
ds:KeyInfo element into an xenc:RecipientKeyInfo element. |
KeyInfo |
generate(Credential credential) |
protected void |
processPublicKey(KeyInfo keyInfo,
Credential credential)
Extends
BasicKeyInfoGenerator#processPublicKey(KeyInfo, Credential) with support for EC keys. |
protected void |
processSenderPublicKey(OriginatorKeyInfo keyInfo,
KeyAgreementCredential credential)
Adds the sender generated public key to the OriginatorKeyInfo element.
|
getIssuerName, getSubjectName, processCertKeyNameOptions, processCertX509DataOptions, processCertX509Digest, processCertX509IssuerSerial, processCertX509SKI, processCertX509SubjectName, processCRLs, processEntityCertificate, processEntityCertificateChain, processSubjectAltNameKeyNames, processSubjectCNKeyName, processSubjectDNKeyNameprocessEntityID, processKeyNamesprotected KeyAgreementKeyInfoGenerator(X509KeyInfoGeneratorFactory.X509Options options)
options - the options to be used by the generator@Nullable public KeyInfo generate(@Nullable Credential credential) throws SecurityException
generate in interface KeyInfoGeneratorgenerate in class X509KeyInfoGeneratorFactory.X509KeyInfoGeneratorSecurityExceptionprotected RecipientKeyInfo cloneToRecipientKeyInfo(KeyInfo keyInfo)
ds:KeyInfo element into an xenc:RecipientKeyInfo element.keyInfo - the object to cloneRecipientKeyInfo objectprotected void processPublicKey(KeyInfo keyInfo, Credential credential) throws SecurityException
BasicKeyInfoGenerator#processPublicKey(KeyInfo, Credential) with support for EC keys.processPublicKey in class BasicKeyInfoGeneratorFactory.BasicKeyInfoGeneratorSecurityExceptionprotected void processSenderPublicKey(OriginatorKeyInfo keyInfo, KeyAgreementCredential credential) throws SecurityException
keyInfo - the key info to updatecredential - the credential holding the sender generated public keySecurityException - for algorithm errorsCopyright © 2020 Sweden Connect. All rights reserved.