public class KeyUtil
extends java.lang.Object
Constructor and Description |
---|
KeyUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getEncodedPrivateKeyInfo(AlgorithmIdentifier algId,
ASN1Encodable privKey) |
static byte[] |
getEncodedPrivateKeyInfo(AsymmetricKeyParameter privateKey,
ASN1Set attributes) |
static byte[] |
getEncodedPrivateKeyInfo(PrivateKeyInfo info) |
static byte[] |
getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId,
ASN1Encodable keyData) |
static byte[] |
getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId,
byte[] keyData) |
static byte[] |
getEncodedSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey) |
static byte[] |
getEncodedSubjectPublicKeyInfo(SubjectPublicKeyInfo info) |
public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable keyData)
public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] keyData)
public static byte[] getEncodedSubjectPublicKeyInfo(SubjectPublicKeyInfo info)
public static byte[] getEncodedSubjectPublicKeyInfo(AsymmetricKeyParameter publicKey)
public static byte[] getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey)
public static byte[] getEncodedPrivateKeyInfo(PrivateKeyInfo info)
public static byte[] getEncodedPrivateKeyInfo(AsymmetricKeyParameter privateKey, ASN1Set attributes)