Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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. |
Результат |
public GetExtraPublicKeys ( ) : IEnumerable | ||
Результат | IEnumerable |
public GetSecretKey ( long keyId ) : |
||
keyId | long | |
Результат |
public static InsertSecretKey ( |
||
secRing | The secret key ring to be modified. | |
secKey | The secret key to be inserted. | |
Результат |
public PgpSecretKeyRing ( Stream inputStream ) : System | ||
inputStream | Stream | |
Результат | System |
public PgpSecretKeyRing ( byte encoding ) : System | ||
encoding | byte | |
Результат | System |
public static RemoveSecretKey ( |
||
secRing | The secret key ring to be modified. | |
secKey | The secret key to be removed. | |
Результат |
public static ReplacePublicKeys ( |
||
secretRing | Secret ring to be changed. | |
publicRing | Public ring containing the new public key set. | |
Результат |