public final class PkiUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getSignedData(PrivateKey privateKey,
X509Certificate certificate,
byte[] dataToSign,
String eContentType) |
static boolean |
validateSignedData(SignedData signedData)
Validates a CMS SignedData using the public key corresponding to the private
key used to sign the structure.
|
public static byte[] getSignedData(PrivateKey privateKey, X509Certificate certificate, byte[] dataToSign, String eContentType) throws PkiException
PkiExceptionpublic static boolean validateSignedData(SignedData signedData) throws PkiException
signedData - The signed DataPkiException - eCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.