public class EncryptedSecretKeyInfo
extends org.bouncycastle.asn1.ASN1Encodable
| Constructor and Description |
|---|
EncryptedSecretKeyInfo(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId,
String algorithm,
byte[] data)
Create a new EncryptedSecretKeyInfo
|
EncryptedSecretKeyInfo(org.bouncycastle.asn1.ASN1Sequence seq)
Create a new EncryptedSecretKeyInfo
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithmName()
Get the secret key's algorithm name
|
byte[] |
getEncryptedData()
Get the encrypted data
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getEncryptionAlgorithm()
Get the encryption algorithm for the encrypted data
|
org.bouncycastle.asn1.DERObject |
toASN1Object() |
public EncryptedSecretKeyInfo(org.bouncycastle.asn1.ASN1Sequence seq)
seq - Am ASN1 sequence with AlgorithmIdentifier, algorithm as a
OctetString and data as an OctetStringpublic EncryptedSecretKeyInfo(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId,
String algorithm,
byte[] data)
algId - The Information about the cipher for the encoded keyalgorithm - The secret key algorithmdata - The encrypted encoded secret keypublic org.bouncycastle.asn1.x509.AlgorithmIdentifier getEncryptionAlgorithm()
public byte[] getEncryptedData()
public String getAlgorithmName()
public org.bouncycastle.asn1.DERObject toASN1Object()
toASN1Object in class org.bouncycastle.asn1.ASN1EncodableCopyright © 2019 ADDC Infotech GmbH. All rights reserved.