Class SignatureKeyCallback

  • All Implemented Interfaces:
    Callback

    public class SignatureKeyCallback
    extends Object
    implements Callback
    Callback for Signing Key.
    Version:
    1.8, 03/03/04
    • Constructor Detail

      • SignatureKeyCallback

        public SignatureKeyCallback​(X500Principal authority)
        Constructs this SignatureKeyCallback with an authority.

        Both a PrivateKey and corresponding certificate chain will be returned. The authority input parameter specifies the X500Principal name of the root CA certificate returned in the chain. An authority does not have to be specified.

        Parameters:
        authority - the X500Principal name of the root CA certificate returned in the requested chain, or null
    • Method Detail

      • getAuthority

        public X500Principal getAuthority()
        Get the authority.
        Returns:
        the authority, or null
      • setKey

        public void setKey​(PrivateKey key,
                           Certificate[] chain)
        Set the requested signing key.
        Parameters:
        key - the signing key
        chain - the corresponding certificate chain
      • getKey

        public PrivateKey getKey()
        Get the requested signing key.
        Returns:
        the signing key
      • getChain

        public Certificate[] getChain()
        Get the certificate chain.
        Returns:
        the certificate chain