|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyPairProvider
Interface KeyPairProvider encapsulates typical resolving methods of cryptographic keys.
Method Summary | |
---|---|
KeyPair |
resolveByAlias(java.lang.String alias,
char[] password)
Method resolves a keypair by an alias. |
KeyPair |
resolveByCertificate(java.security.cert.Certificate cert,
char[] password)
Method resolves a key pair by a given certificate. |
KeyPair |
resolveBySerialIssuer(java.lang.String issuerDN,
java.math.BigInteger serial,
char[] password)
Method resolves a key pair by a SerialIssuer, this is required to resolve certificates and it's private keys by the id of the certificate. |
Method Detail |
---|
KeyPair resolveByAlias(java.lang.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(java.lang.String issuerDN, java.math.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(java.security.cert.Certificate cert, char[] password) throws KeyPairResolvingException
cert
- the cert.password
- a password for the private key, can be null.
KeyPairResolvingException
- if error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |