List of usage examples for org.bouncycastle.bcpg BCPGKey getEncoded
public byte[] getEncoded();
From source file:google.registry.keyring.api.ComparatorKeyring.java
License:Open Source License
@VisibleForTesting static boolean compare(BCPGKey a, BCPGKey b) { if (a == null || b == null) { return a == null && b == null; }//from w w w . j a v a 2 s .com return Objects.equals(a.getFormat(), b.getFormat()) && Arrays.equals(a.getEncoded(), b.getEncoded()); }