|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.security.auth.message.callback.PrivateKeyCallback
public class PrivateKeyCallback
Callback for private key and corresponding certificate chain.
Nested Class Summary | |
---|---|
static class |
PrivateKeyCallback.AliasRequest
Request type for private keys that are identified via an alias. |
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 Summary | |
---|---|
PrivateKeyCallback(PrivateKeyCallback.Request request)
Constructs this PrivateKeyCallback with a private key Request object. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |