|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.pkcs.pkcs12.Attributes | +--iaik.pkcs.pkcs12.SafeBag | +--iaik.pkcs.pkcs12.KeyBag | +--iaik.pkcs.pkcs12.PKCS8ShroudedKeyBag
This class contains an encrypted private key and any associated attributes.
SafeBag
,
Attributes
Constructor Summary | |
protected |
PKCS8ShroudedKeyBag()
The default constructor. |
protected |
PKCS8ShroudedKeyBag(KeyBag keyBag)
Creates a new PKCS8ShroudedKeyBag from a KeyBag. |
Method Summary | |
void |
decode(ASN1Object obj)
Decodes the PKCS8ShroudedKeyBag given as ASN1Object. |
void |
decrypt(char[] password)
Decrypts this KeyBag using the given password. |
void |
encrypt(char[] password,
AlgorithmID algorithm,
int iterationCount)
Encrypts this KeyBag using the given password. |
ASN1Object |
toASN1Object()
Returns this PKCS8ShroudedKeyBag as ASN1Object. |
String |
toString()
Returns a String representation of this PKCS8ShroudedKeyBag. |
Methods inherited from class iaik.pkcs.pkcs12.KeyBag |
getPrivateKey |
Methods inherited from class iaik.pkcs.pkcs12.SafeBag |
create, encodeSafeContents, encodeSafeContentsAsASN1Object, getBagType, parseSafeContents, parseSafeContents, register |
Methods inherited from class iaik.pkcs.pkcs12.Attributes |
getAttributes, getFriendlyName, getLocalKeyID, setAttributes, setFriendlyName, setLocalKeyID |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected PKCS8ShroudedKeyBag()
protected PKCS8ShroudedKeyBag(KeyBag keyBag)
Method Detail |
public void decode(ASN1Object obj) throws CodingException
decode
in class KeyBag
obj
- the PKCS8ShroudedKeyBag as ASN1ObjectCodingException
- if the PKCS8ShroudedKeyBag cannot be decodedpublic ASN1Object toASN1Object() throws CodingException
toASN1Object
in class KeyBag
public void decrypt(char[] password) throws NoSuchAlgorithmException, GeneralSecurityException
public void encrypt(char[] password, AlgorithmID algorithm, int iterationCount) throws NoSuchAlgorithmException
public String toString()
toString
in class KeyBag
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |