public abstract class AbstractKeyPairProviderDecorator extends Object implements KeyPairProvider
Constructor and Description |
---|
AbstractKeyPairProviderDecorator() |
AbstractKeyPairProviderDecorator(KeyPairProvider delegate) |
Modifier and Type | Method and Description |
---|---|
KeyPairProvider |
getDelegate() |
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.
|
void |
setDelegate(KeyPairProvider delegate) |
public AbstractKeyPairProviderDecorator()
public AbstractKeyPairProviderDecorator(KeyPairProvider delegate)
public KeyPairProvider getDelegate()
public void setDelegate(KeyPairProvider delegate)
public KeyPair resolveByAlias(String alias, char[] password) throws KeyPairResolvingException
KeyPairProvider
resolveByAlias
in interface KeyPairProvider
alias
- the alias.password
- a password for the private key, can be null.KeyPairResolvingException
- if keypair can't be resolved.KeyPairProvider.resolveByAlias(java.lang.String, char[])
public KeyPair resolveByCertificate(Certificate cert, char[] password) throws KeyPairResolvingException
KeyPairProvider
resolveByCertificate
in interface KeyPairProvider
cert
- the cert.password
- a password for the private key, can be null.KeyPairResolvingException
- if error occurs.KeyPairProvider.resolveByCertificate(java.security.cert.Certificate, char[])
public KeyPair resolveBySerialIssuer(String issuerDN, BigInteger serial, char[] password) throws KeyPairResolvingException
KeyPairProvider
resolveBySerialIssuer
in interface KeyPairProvider
issuerDN
- the issuerDN.serial
- the serial.password
- a password for the private key, can be null.KeyPairResolvingException
- if error occurs.KeyPairProvider.resolveBySerialIssuer(java.lang.String, java.math.BigInteger,
char[])
Copyright © 2004–2017 52north.org. All rights reserved.