Class 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%
    • 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 class jakarta.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.