Class SHA256withECDSASignatureVerification

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkSignature​(java.security.cert.X509Certificate certificate, byte[] signedBytes, byte[] signature)  
      boolean checkSignature​(java.security.PublicKey publicKey, byte[] signedBytes, byte[] signature)  
      java.security.PublicKey decodePublicKey​(byte[] encodedPublicKey)  
      byte[] hash​(byte[] bytes)  
      byte[] hash​(java.lang.String str)  
      • Methods inherited from class java.lang.Object

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

      • SHA256withECDSASignatureVerification

        public SHA256withECDSASignatureVerification()
    • Method Detail

      • checkSignature

        public boolean checkSignature​(java.security.cert.X509Certificate certificate,
                                      byte[] signedBytes,
                                      byte[] signature)
                               throws io.jans.as.model.exception.SignatureException
        Specified by:
        checkSignature in interface SignatureVerification
        Throws:
        io.jans.as.model.exception.SignatureException
      • checkSignature

        public boolean checkSignature​(java.security.PublicKey publicKey,
                                      byte[] signedBytes,
                                      byte[] signature)
                               throws io.jans.as.model.exception.SignatureException
        Specified by:
        checkSignature in interface SignatureVerification
        Throws:
        io.jans.as.model.exception.SignatureException
      • decodePublicKey

        public java.security.PublicKey decodePublicKey​(byte[] encodedPublicKey)
                                                throws io.jans.as.model.exception.SignatureException
        Specified by:
        decodePublicKey in interface SignatureVerification
        Throws:
        io.jans.as.model.exception.SignatureException