public static class SenderIntermediateCertFactory.Builder extends Object
SenderIntermediateCertFactory.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SenderIntermediateCertFactory.Builder |
addSenderSigningKey(ECPrivateKey val)
Adds a signing key of the sender.
|
SenderIntermediateCertFactory.Builder |
addSenderSigningKey(String val)
Adds a signing key of the sender.
|
SenderIntermediateCertFactory |
build() |
SenderIntermediateCertFactory.Builder |
expiration(long millisSinceEpoch)
Sets the expiration in millis since epoch.
|
SenderIntermediateCertFactory.Builder |
protocolVersion(String val)
Sets the protocolVersion.
|
SenderIntermediateCertFactory.Builder |
senderId(String val)
Sets the sender Id.
|
SenderIntermediateCertFactory.Builder |
senderIntermediateSigningKey(String val)
Sets the intermediate signing key being signed.
|
@CanIgnoreReturnValue public SenderIntermediateCertFactory.Builder protocolVersion(String val)
@CanIgnoreReturnValue public SenderIntermediateCertFactory.Builder senderId(String val)
@CanIgnoreReturnValue public SenderIntermediateCertFactory.Builder expiration(long millisSinceEpoch)
@CanIgnoreReturnValue public SenderIntermediateCertFactory.Builder addSenderSigningKey(String val) throws GeneralSecurityException
It must be base64 encoded PKCS8 private key.
GeneralSecurityException@CanIgnoreReturnValue public SenderIntermediateCertFactory.Builder addSenderSigningKey(ECPrivateKey val) throws GeneralSecurityException
It must be base64 encoded PKCS8 private key.
GeneralSecurityException@CanIgnoreReturnValue public SenderIntermediateCertFactory.Builder senderIntermediateSigningKey(String val) throws GeneralSecurityException
The public key specified here is a base64 (no wrapping, padded) version of the key encoded in ASN.1 type SubjectPublicKeyInfo defined in the X.509 standard.
GeneralSecurityExceptionpublic SenderIntermediateCertFactory build() throws GeneralSecurityException
GeneralSecurityException