Class EcdsaSigner

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.security.PublicKey getPublicKey()
      Return the public key associated with this signer.
      byte[] sign​(byte[] artifact)
      Sign an artifact.
      byte[] signDigest​(byte[] artifactDigest)
      Sign an artifact digest.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPublicKey

        public java.security.PublicKey getPublicKey()
        Description copied from interface: Signer
        Return the public key associated with this signer.
        Specified by:
        getPublicKey in interface Signer
      • sign

        public byte[] sign​(byte[] artifact)
                    throws java.security.NoSuchAlgorithmException,
                           java.security.InvalidKeyException,
                           java.security.SignatureException
        Description copied from interface: Signer
        Sign an artifact. Implementations will hash the artifact with sha256 before signing.
        Specified by:
        sign in interface Signer
        Parameters:
        artifact - the bytes to be signed
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.InvalidKeyException
        java.security.SignatureException
      • signDigest

        public byte[] signDigest​(byte[] artifactDigest)
                          throws java.security.NoSuchAlgorithmException,
                                 java.security.InvalidKeyException,
                                 java.security.SignatureException
        Description copied from interface: Signer
        Sign an artifact digest. Implementations will not further hash the inputs.
        Specified by:
        signDigest in interface Signer
        Parameters:
        artifactDigest - the sha256 digest of the artifact to be signed
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.InvalidKeyException
        java.security.SignatureException