Interface SignatureVerification

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean checkSignature​(java.security.cert.X509Certificate attestationCertificate, 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)  
    • Method Detail

      • checkSignature

        boolean checkSignature​(java.security.cert.X509Certificate attestationCertificate,
                               byte[] signedBytes,
                               byte[] signature)
                        throws io.jans.as.model.exception.SignatureException
        Throws:
        io.jans.as.model.exception.SignatureException
      • checkSignature

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

        java.security.PublicKey decodePublicKey​(byte[] encodedPublicKey)
                                         throws io.jans.as.model.exception.SignatureException
        Throws:
        io.jans.as.model.exception.SignatureException
      • hash

        byte[] hash​(byte[] bytes)
      • hash

        byte[] hash​(java.lang.String str)