|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.crypto.AbstractKeyPairProviderDecorator
public abstract class AbstractKeyPairProviderDecorator
Simple base class for decorator implementations of KeyPairProviders.
Constructor Summary | |
---|---|
AbstractKeyPairProviderDecorator()
|
|
AbstractKeyPairProviderDecorator(KeyPairProvider delegate)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractKeyPairProviderDecorator()
public AbstractKeyPairProviderDecorator(KeyPairProvider delegate)
Method Detail |
---|
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[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |