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