Class SignatureRSA

    • Constructor Summary

      Constructors 
      Constructor Description
      SignatureRSA​(java.lang.String keyTypeName)  
    • Method Summary

      Modifier and Type Method Description
      byte[] encode​(byte[] signature)
      Encode the signature as blog
      void initVerify​(java.security.PublicKey publicKey)
      Initialize this signature with the given public key for signature verification.
      boolean verify​(byte[] sig)
      Verify against the given signature.
      • Methods inherited from class java.lang.Object

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

      • SignatureRSA

        public SignatureRSA​(java.lang.String keyTypeName)
    • Method Detail

      • encode

        public byte[] encode​(byte[] signature)
        Description copied from interface: Signature
        Encode the signature as blog
        Parameters:
        signature - the signature to encode
        Returns:
        Encoded signature
      • verify

        public boolean verify​(byte[] sig)
        Description copied from interface: Signature
        Verify against the given signature.
        Parameters:
        sig - the signature to verify against
        Returns:
        true on successful verification, false on failure