Class SignatureMethodRSAImpl
- java.lang.Object
-
- org.apache.oltu.jose.jws.signature.impl.SignatureMethodRSAImpl
-
- All Implemented Interfaces:
SignatureMethod<PrivateKey,PublicKey>
public class SignatureMethodRSAImpl extends java.lang.Object implements SignatureMethod<PrivateKey,PublicKey>
Class that asymmetrically sign and verify the issued token.
-
-
Constructor Summary
Constructors Constructor Description SignatureMethodRSAImpl(java.lang.String algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
calculate(java.lang.String header, java.lang.String payload, PrivateKey signingKey)
Calculate the signature of given header.payload as for appendix-A.2.1java.lang.String
getAlgorithm()
boolean
verify(java.lang.String signature, java.lang.String header, java.lang.String payload, PublicKey verifyingKey)
Verify the signature of given header.payload as for appendix-A.2.2
-
-
-
Method Detail
-
calculate
public java.lang.String calculate(java.lang.String header, java.lang.String payload, PrivateKey signingKey)
Calculate the signature of given header.payload as for appendix-A.2.1- Specified by:
calculate
in interfaceSignatureMethod<PrivateKey,PublicKey>
-
verify
public boolean verify(java.lang.String signature, java.lang.String header, java.lang.String payload, PublicKey verifyingKey)
Verify the signature of given header.payload as for appendix-A.2.2- Specified by:
verify
in interfaceSignatureMethod<PrivateKey,PublicKey>
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm
in interfaceSignatureMethod<PrivateKey,PublicKey>
-
-