public class KeyAgreementKeyInfoGeneratorFactory extends X509KeyInfoGeneratorFactory
Note that either emitOriginatorKeyInfoPublicKeyValue or emitOriginatorKeyInfoPublicDEREncodedKeyValue
must be set. Otherwise, and empty OriginatorKeyInfo element will be created.
| Modifier and Type | Class and Description |
|---|---|
protected class |
KeyAgreementKeyInfoGeneratorFactory.ExtendedX509Options
Since the visibility of the
X509Options class prevents us from cloning it, we have to come up with a
workaround. |
class |
KeyAgreementKeyInfoGeneratorFactory.KeyAgreementKeyInfoGenerator
An implementation of
KeyInfoGenerator capable of handling the information contained within a
KeyAgreementCredential. |
X509KeyInfoGeneratorFactory.X509KeyInfoGenerator, X509KeyInfoGeneratorFactory.X509OptionsBasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator, BasicKeyInfoGeneratorFactory.BasicOptions| Constructor and Description |
|---|
KeyAgreementKeyInfoGeneratorFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
emitOriginatorKeyInfoPublicDEREncodedKeyValue()
Get the option to emit the value of
KeyAgreementCredential.getSenderGeneratedPublicKey() as a
DEREncodedKeyValue element in the OriginatorKeyInfo element. |
boolean |
emitOriginatorKeyInfoPublicKeyValue()
Get the option to emit the value of
KeyAgreementCredential.getSenderGeneratedPublicKey() as a KeyValue
element in the OriginatorKeyInfo element. |
Class<? extends Credential> |
getCredentialType() |
boolean |
handles(Credential credential) |
KeyInfoGenerator |
newInstance() |
protected X509KeyInfoGeneratorFactory.X509Options |
newOptions() |
void |
setEmitOriginatorKeyInfoPublicDEREncodedKeyValue(boolean value)
Set the option to emit the value of
KeyAgreementCredential.getSenderGeneratedPublicKey() as a
DEREncodedKeyValue element in the OriginatorKeyInfo element. |
void |
setEmitOriginatorKeyInfoPublicKeyValue(boolean value)
Set the option to emit the value of
KeyAgreementCredential.getSenderGeneratedPublicKey() as a KeyValue
element in the OriginatorKeyInfo element. |
emitCRLs, emitEntityCertificate, emitEntityCertificateChain, emitSubjectAltNamesAsKeyNames, emitSubjectCNAsKeyName, emitSubjectDNAsKeyName, emitX509Digest, emitX509IssuerSerial, emitX509SKI, emitX509SubjectName, getOptions, getSubjectAltNames, getX500DNHandler, getX500IssuerDNFormat, getX500SubjectDNFormat, getX509DigestAlgorithmURI, setEmitCRLs, setEmitEntityCertificate, setEmitEntityCertificateChain, setEmitSubjectAltNamesAsKeyNames, setEmitSubjectCNAsKeyName, setEmitSubjectDNAsKeyName, setEmitX509Digest, setEmitX509IssuerSerial, setEmitX509SKI, setEmitX509SubjectName, setX500DNHandler, setX500IssuerDNFormat, setX500SubjectDNFormat, setX509DigestAlgorithmURIemitEntityIDAsKeyName, emitKeyNames, emitPublicDEREncodedKeyValue, emitPublicKeyValue, setEmitEntityIDAsKeyName, setEmitKeyNames, setEmitPublicDEREncodedKeyValue, setEmitPublicKeyValuepublic boolean handles(@Nonnull Credential credential)
handles in interface KeyInfoGeneratorFactoryhandles in class X509KeyInfoGeneratorFactorypublic Class<? extends Credential> getCredentialType()
getCredentialType in interface KeyInfoGeneratorFactorygetCredentialType in class X509KeyInfoGeneratorFactory@Nonnull public KeyInfoGenerator newInstance()
newInstance in interface KeyInfoGeneratorFactorynewInstance in class X509KeyInfoGeneratorFactorypublic boolean emitOriginatorKeyInfoPublicKeyValue()
KeyAgreementCredential.getSenderGeneratedPublicKey() as a KeyValue
element in the OriginatorKeyInfo element.public void setEmitOriginatorKeyInfoPublicKeyValue(boolean value)
KeyAgreementCredential.getSenderGeneratedPublicKey() as a KeyValue
element in the OriginatorKeyInfo element.value - the new option value to setpublic boolean emitOriginatorKeyInfoPublicDEREncodedKeyValue()
KeyAgreementCredential.getSenderGeneratedPublicKey() as a
DEREncodedKeyValue element in the OriginatorKeyInfo element.public void setEmitOriginatorKeyInfoPublicDEREncodedKeyValue(boolean value)
KeyAgreementCredential.getSenderGeneratedPublicKey() as a
DEREncodedKeyValue element in the OriginatorKeyInfo element.value - the new option value to setprotected X509KeyInfoGeneratorFactory.X509Options newOptions()
newOptions in class X509KeyInfoGeneratorFactoryCopyright © 2020 Sweden Connect. All rights reserved.