public final class PKIUtils extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static boolean |
checkHashPadding(PublicKey key,
byte[] signature) |
static int |
getDigestAlgoLen(String algo) |
static PrivateKey |
getJCEPrivateKey(com.rsa.jsafe.JSAFE_PrivateKey rsaPrivateKey) |
static PublicKey |
getJCEPublicKey(com.rsa.jsafe.JSAFE_PublicKey rsaPublicKey) |
static byte[] |
getOIDBytesFromString(String oidString) |
static byte[] |
getSignature(byte[] derBytes) |
static byte[][] |
lookupPEMTokens(byte[] inBytes,
String type)
Looks up PEM encoded bytes
|
public static byte[][] lookupPEMTokens(byte[] inBytes, String type)
inBytes
- Input bytestype
- Type of PEM (Such as X509Certificate or X509CRL)public static PrivateKey getJCEPrivateKey(com.rsa.jsafe.JSAFE_PrivateKey rsaPrivateKey)
rsaPrivateKey
- public static PublicKey getJCEPublicKey(com.rsa.jsafe.JSAFE_PublicKey rsaPublicKey)
rsaPublicKey
- public static byte[] getOIDBytesFromString(String oidString)
public static byte[] getSignature(byte[] derBytes)
public static boolean checkHashPadding(PublicKey key, byte[] signature)
public static final int getDigestAlgoLen(String algo) throws PKIException
PKIException
Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.