public interface KeyPairProvider
Modifier and Type | Method and Description |
---|---|
KeyPair |
resolveByAlias(String alias,
char[] password)
Resolves a keypair by an alias.
|
KeyPair |
resolveByCertificate(Certificate cert,
char[] password)
Resolves a key pair by a given certificate.
|
KeyPair |
resolveBySerialIssuer(String issuerDN,
BigInteger serial,
char[] password)
Resolves a key pair by a SerialIssuer, this is required to resolve certificates and
it's private keys by the id of the certificate.
|
KeyPair resolveByAlias(String alias, char[] password) throws KeyPairResolvingException
alias
- the alias.password
- a password for the private key, can be null.KeyPairResolvingException
- if keypair can't be resolved.KeyPair resolveBySerialIssuer(String issuerDN, BigInteger serial, char[] password) throws KeyPairResolvingException
issuerDN
- the issuerDN.serial
- the serial.password
- a password for the private key, can be null.KeyPairResolvingException
- if error occurs.KeyPair resolveByCertificate(Certificate cert, char[] password) throws KeyPairResolvingException
cert
- the cert.password
- a password for the private key, can be null.KeyPairResolvingException
- if error occurs.Copyright © 2004–2018 52north.org. All rights reserved.