Class PrivateKeyCallback
- java.lang.Object
-
- jakarta.security.auth.message.callback.PrivateKeyCallback
-
- com.sun.enterprise.security.jauth.callback.PrivateKeyCallback
-
- All Implemented Interfaces:
Callback
public class PrivateKeyCallback extends jakarta.security.auth.message.callback.PrivateKeyCallback
Callback for private key and corresponding certificate chain.- Version:
- %I%, %G%
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
Constructors Constructor Description PrivateKeyCallback(PrivateKeyCallback.Request request)
Constructs this PrivateKeyCallback with a private key Request object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateKeyCallback.Request
getRequest()
Get the Request object which identifies the private key to be returned.
-
-
-
Constructor Detail
-
PrivateKeyCallback
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.
- Parameters:
request
- identifier for the private key, or null.
-
-
Method Detail
-
getRequest
public PrivateKeyCallback.Request getRequest()
Get the Request object which identifies the private key to be returned.- Overrides:
getRequest
in classjakarta.security.auth.message.callback.PrivateKeyCallback
- Returns:
- the Request object which identifies the private key to be returned, or null. If null, the handler of the callback relies on its own default.
-
-