com.clouway.oauth2.jws.Signature Maven / Gradle / Ivy
package com.clouway.oauth2.jws;
/**
* Signature is representing a single JWS signature that is applied over received messages.
*
*
* @author Miroslav Genov ([email protected])
*/
public interface Signature {
/**
* Verify is verifying Signature using the provided privateKey as PEM file.
*
*
* @param content the content to be verified
* @param privateKeyPem the private key used for verifying
* @return true if signature is
*/
boolean verify(byte[] content, String privateKeyPem);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy