Interface JwsSpec<R,​D,​C,​P>

  • Type Parameters:
    R - the return type of data
    D - the type of input data
    C - the type of Certificate key
    P - the type of private key

    @Deprecated
    public interface JwsSpec<R,​D,​C,​P>
    Deprecated.
    (This class is deprecated from version 1.0.5, Please use CryptoCoreSpec.sign(Object, Object) and CryptoCoreSpec.verifySignature(Object, Object, Object) instead of these methods,)
    This interface is specification for Core Cryptographic Operations. The user of this interface will have all JWS basic operations like #jwssign(Object, Object) , #verifySignature(Object, Object), #random().
    Since:
    1.0.0
    Author:
    Rajath
    • Method Detail

      • jwsSign

        R jwsSign​(D payload,
                  P pKey,
                  C cert)
        Deprecated.
        This method is for signing data.
        Parameters:
        payload -
        pKey -
        Returns:
        signed string
      • verifySignature

        boolean verifySignature​(D sign)
        Deprecated.
        This method verifies signature.
        Parameters:
        sign -
        cert -
        Returns:
        boolean