Method | Description | |
---|---|---|
CopyWithNewPassword ( |
Return a copy of the passed in secret key ring, with the master key and sub keys encrypted using a new password and the passed in algorithm.
|
|
Encode ( Stream outStr ) : void | ||
GetEncoded ( ) : byte[] | ||
GetExtraPublicKeys ( ) : IEnumerable |
Return an iterator of the public keys in the secret key ring that have no matching private key. At the moment only personal certificate data appears in this fashion.
|
|
GetPublicKey ( ) : |
Return the public key for the master key.
|
|
GetSecretKey ( ) : |
Return the master private key.
|
|
GetSecretKey ( long keyId ) : |
||
GetSecretKeys ( ) : IEnumerable |
Allows enumeration of the secret keys.
|
|
InsertSecretKey ( |
Returns a new key ring with the secret key passed in either added or replacing an existing one with the same key ID.
|
|
PgpSecretKeyRing ( Stream inputStream ) : System | ||
PgpSecretKeyRing ( byte encoding ) : System | ||
RemoveSecretKey ( |
Returns a new key ring with the secret key passed in removed from the key ring.
|
|
ReplacePublicKeys ( |
Replace the public key set on the secret ring with the corresponding key off the public ring.
|
Method | Description | |
---|---|---|
PgpSecretKeyRing ( IList keys ) : System | ||
PgpSecretKeyRing ( IList keys, IList extraPubKeys ) : System |
public static CopyWithNewPassword ( |
||
ring | The |
|
oldPassPhrase | char | The current password for key. |
newPassPhrase | char | The new password for the key. |
newEncAlgorithm | SymmetricKeyAlgorithmTag | The algorithm to be used for the encryption. |
rand | SecureRandom | Source of randomness. |
return |
public GetSecretKey ( long keyId ) : |
||
keyId | long | |
return |
public static InsertSecretKey ( |
||
secRing | The secret key ring to be modified. | |
secKey | The secret key to be inserted. | |
return |
public PgpSecretKeyRing ( Stream inputStream ) : System | ||
inputStream | Stream | |
return | System |
public PgpSecretKeyRing ( byte encoding ) : System | ||
encoding | byte | |
return | System |
public static RemoveSecretKey ( |
||
secRing | The secret key ring to be modified. | |
secKey | The secret key to be removed. | |
return |
public static ReplacePublicKeys ( |
||
secretRing | Secret ring to be changed. | |
publicRing | Public ring containing the new public key set. | |
return |