Example #1
0
 /** Returns a list of the preferred {@link HashAlgorithm}s of the key. */
 public List<HashAlgorithm> getPreferredHashAlgorithms() {
   return IntegerEquivalents.fromIntArray(
       HashAlgorithm.class, subpackets.getPreferredHashAlgorithms());
 }
Example #2
0
 /** Returns a list of the preferred {@link SymmetricAlgorithm}s of the key. */
 public List<SymmetricAlgorithm> getPreferredSymmetricAlgorithms() {
   return IntegerEquivalents.fromIntArray(
       SymmetricAlgorithm.class, subpackets.getPreferredSymmetricAlgorithms());
 }
Example #3
0
 /** Returns a list of the preferred {@link CompressionAlgorithm}s of the key. */
 public List<CompressionAlgorithm> getPreferredCompressionAlgorithms() {
   return IntegerEquivalents.fromIntArray(
       CompressionAlgorithm.class, subpackets.getPreferredCompressionAlgorithms());
 }
Example #4
0
 /** Returns the {@link KeyFlag}s asserted by the signature. */
 public Set<KeyFlag> getKeyFlags() {
   return IntegerEquivalents.fromBitmask(KeyFlag.class, subpackets.getKeyFlags());
 }