public final class SignedObject extends Object implements Serializable
Constructor and Description |
---|
SignedObject(Serializable object,
PrivateKey pkey,
Signature sign) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
Object |
getObject() |
byte[] |
getSignature() |
boolean |
verify(PublicKey pkey,
Signature sign) |
public SignedObject(Serializable object, PrivateKey pkey, Signature sign) throws IOException, InvalidKeyException, SignatureException
public String getAlgorithm()
public Object getObject() throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public byte[] getSignature()
public boolean verify(PublicKey pkey, Signature sign) throws InvalidKeyException, SignatureException