Class PrivateKeyCallback.AliasRequest

  • All Implemented Interfaces:
    PrivateKeyCallback.Request, jakarta.security.auth.message.callback.PrivateKeyCallback.Request
    Enclosing class:
    PrivateKeyCallback

    public static class PrivateKeyCallback.AliasRequest
    extends jakarta.security.auth.message.callback.PrivateKeyCallback.AliasRequest
    implements PrivateKeyCallback.Request
    Request type for private keys that are identified via an alias.
    • Constructor Detail

      • AliasRequest

        public AliasRequest​(String alias)
        Construct an AliasRequest with an alias.

        The alias is used to directly identify the private key to be returned. The corresponding certificate chain for the private key is also returned.

        If the alias is null, the handler of the callback relies on its own default.

        Parameters:
        alias - name identifier for the private key, or null.