99100101102103104105106107108109
return ((IssuerKeyID)p).getKeyID(); } public Date getSignatureCreationTime() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.CREATION_TIME); if (p == null) { return null; }
117118119120121122123124125126127
* * @return seconds a signature is valid for. */ public long getSignatureExpirationTime() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.EXPIRE_TIME); if (p == null) { return 0; }
135136137138139140141142143144145
* * @return seconds a key is valid for. */ public long getKeyExpirationTime() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.KEY_EXPIRE_TIME); if (p == null) { return 0; }
147148149150151152153154155156157
return ((KeyExpirationTime)p).getTime(); } public int[] getPreferredHashAlgorithms() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.PREFERRED_HASH_ALGS); if (p == null) { return null; }
159160161162163164165166167168169
return ((PreferredAlgorithms)p).getPreferences(); } public int[] getPreferredSymmetricAlgorithms() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.PREFERRED_SYM_ALGS); if (p == null) { return null; }
171172173174175176177178179180181
return ((PreferredAlgorithms)p).getPreferences(); } public int[] getPreferredCompressionAlgorithms() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.PREFERRED_COMP_ALGS); if (p == null) { return null; }
183184185186187188189190191192193
return ((PreferredAlgorithms)p).getPreferences(); } public int getKeyFlags() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.KEY_FLAGS); if (p == null) { return 0; }
195196197198199200201202203204205
return ((KeyFlags)p).getFlags(); } public String getSignerUserID() { SignatureSubpacket p = this.getSubpacket(SignatureSubpacketTags.SIGNER_USER_ID); if (p == null) { return null; }