stripped support: implement has_secret support, in ui and impot of secret keys

Closes #570
This commit is contained in:
Vincent Breitmoser
2014-04-16 17:33:33 +02:00
parent 66b8b86695
commit c7eb40b814
8 changed files with 101 additions and 14 deletions

View File

@@ -278,7 +278,16 @@ public class PGPSecretKey
{
return pub.getUserIDs();
}
/**
* Return the S2K object used to encrypt this secret key.
*
* @return an iterator of Strings.
*/
public S2K getS2K() {
return secret.getS2K();
}
/**
* Return any user attribute vectors associated with the key.
*

View File

@@ -431,7 +431,16 @@ public class PGPSecretKey
{
return pub.getUserIDs();
}
/**
* Return the S2K this secret key is encrypted with.
*
* @return the S2K for this key.
*/
public S2K getS2K() {
return secret.getS2K();
}
/**
* Return any user attribute vectors associated with the key.
*