api: add micalg result extra to detached signature api call

This commit is contained in:
Vincent Breitmoser
2015-12-17 01:08:23 +01:00
parent 5344307e22
commit e32c1a9ced
5 changed files with 21 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ public class PgpSignEncryptResult extends InputPendingResult {
byte[] mDetachedSignature;
public long mOperationTime;
// this is the micalg parameter used in PGP/MIME, see RFC3156:
// https://tools.ietf.org/html/rfc3156#section-5
private String mMicAlgDigestName;
public void setDetachedSignature(byte[] detachedSignature) {
mDetachedSignature = detachedSignature;
@@ -74,4 +77,11 @@ public class PgpSignEncryptResult extends InputPendingResult {
}
};
public void setMicAlgDigestName(String micAlgDigestName) {
mMicAlgDigestName = micAlgDigestName;
}
public String getMicAlgDigestName() {
return mMicAlgDigestName;
}
}