public class PrivateKeyCallback extends Object implements Callback
Modifier and Type | Class and Description |
---|---|
static class |
PrivateKeyCallback.AliasRequest
Request type for private keys that are identified via an alias.
|
static class |
PrivateKeyCallback.DigestRequest
Request type for private keys that are identified using a certificate digest or thumbprint.
|
static class |
PrivateKeyCallback.IssuerSerialNumRequest
Request type for private keys that are identified via an issuer/serial number.
|
static interface |
PrivateKeyCallback.Request
Marker interface for private key request types.
|
static class |
PrivateKeyCallback.SubjectKeyIDRequest
Request type for private keys that are identified via a SubjectKeyID
|
Constructor and Description |
---|
PrivateKeyCallback(PrivateKeyCallback.Request request)
Constructs this PrivateKeyCallback with a private key Request object.
|
Modifier and Type | Method and Description |
---|---|
Certificate[] |
getChain() |
PrivateKey |
getKey()
Get the requested private key.
|
PrivateKeyCallback.Request |
getRequest()
Get the Request object which identifies the private key to be returned.
|
void |
setKey(PrivateKey key,
Certificate[] chain)
Set the requested private key.
|
public PrivateKeyCallback(PrivateKeyCallback.Request request)
Constructs this PrivateKeyCallback with a private key Request object.
The request object identifies the private key to be returned. The corresponding certificate chain for the private key is also returned.
If the request object is null, the handler of the callback relies on its own default.
request
- identifier for the private key, or null.public Certificate[] getChain()
public PrivateKey getKey()
public PrivateKeyCallback.Request getRequest()
public void setKey(PrivateKey key, Certificate[] chain)
Set the requested private key.
If the requested private key or chain could not be found, then both values must be set to null.
key
- the private key, or null.chain
- the corresponding certificate chain, or null.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.