net.handle.hdllib.trust
Class JsonWebSignatureImpl
java.lang.Object
net.handle.hdllib.trust.JsonWebSignatureImpl
- All Implemented Interfaces:
- JsonWebSignature
public class JsonWebSignatureImpl
- extends java.lang.Object
- implements JsonWebSignature
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonWebSignatureImpl
public JsonWebSignatureImpl(java.lang.String payload,
java.security.PrivateKey privateKey)
throws TrustException
- Throws:
TrustException
JsonWebSignatureImpl
public JsonWebSignatureImpl(byte[] payload,
java.security.PrivateKey privateKey)
throws TrustException
- Throws:
TrustException
JsonWebSignatureImpl
public JsonWebSignatureImpl(java.lang.String serialization)
throws TrustException
- Throws:
TrustException
getPayloadAsString
public java.lang.String getPayloadAsString()
- Specified by:
getPayloadAsString
in interface JsonWebSignature
getPayloadAsBytes
public byte[] getPayloadAsBytes()
- Specified by:
getPayloadAsBytes
in interface JsonWebSignature
validates
public boolean validates(java.security.PublicKey publicKey)
throws TrustException
- Specified by:
validates
in interface JsonWebSignature
- Throws:
TrustException
serialize
public java.lang.String serialize()
- Specified by:
serialize
in interface JsonWebSignature
serializeToJson
public java.lang.String serializeToJson()
- Specified by:
serializeToJson
in interface JsonWebSignature