Package io.mosip.kernel.crypto.jce.util
Class JWSValidation
- java.lang.Object
-
- io.mosip.kernel.crypto.jce.util.JWSValidation
-
- All Implemented Interfaces:
JwsSpec<String,String,X509Certificate,PrivateKey>
@Deprecated @Component public class JWSValidation extends Object implements JwsSpec<String,String,X509Certificate,PrivateKey>
Deprecated.(This class is deprecated from version 1.0.5, Please useCryptoCoreSpec.sign(Object, Object)andCryptoCoreSpec.verifySignature(Object, Object, Object)instead of these methods)- Author:
- M1037717 This class will verify and sign the JWT
-
-
Constructor Summary
Constructors Constructor Description JWSValidation()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringjwsSign(String payload, PrivateKey pKey, X509Certificate certificate)Deprecated.booleanverifySignature(String sign)Deprecated.
-
-
-
Field Detail
-
publicKey
protected PublicKey publicKey
Deprecated.The public key.
-
-
Method Detail
-
jwsSign
public String jwsSign(String payload, PrivateKey pKey, X509Certificate certificate)
Deprecated.- Specified by:
jwsSignin interfaceJwsSpec<String,String,X509Certificate,PrivateKey>- Parameters:
pKey-certificate-payload-- Returns:
- signature
- Throws:
org.jose4j.lang.JoseException
-
verifySignature
public boolean verifySignature(String sign)
Deprecated.- Specified by:
verifySignaturein interfaceJwsSpec<String,String,X509Certificate,PrivateKey>- Parameters:
sign-- Returns:
- boolean
-
-