Class JWSObjectJSON.Signature

    • Method Detail

      • getHeader

        public JWSHeader getHeader()
        Returns the JWS protected header.
        Returns:
        The JWS protected, null if none.
      • toJWSObject

        public JWSObject toJWSObject()
        Returns the compact JWS object representation of this individual signature.
        Returns:
        The JWS object serialisable to compact encoding.
      • verify

        public boolean verify​(JWSVerifier verifier)
                       throws JOSEException
        Checks the signature with the specified verifier.
        Parameters:
        verifier - The JWS verifier. Must not be null.
        Returns:
        true if the signature was successfully verified, else false.
        Throws:
        JOSEException - If the signature verification failed.