Class SpkiPinningClientTlsStrategy.ByteArrayKey

  • Enclosing class:
    SpkiPinningClientTlsStrategy

    private static final class SpkiPinningClientTlsStrategy.ByteArrayKey
    extends java.lang.Object
    Byte-array key with constant-time equality for use in sets/maps.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hash  
      (package private) byte[] v  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteArrayKey​(byte[] v)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • v

        final byte[] v
      • hash

        private final int hash
    • Constructor Detail

      • ByteArrayKey

        ByteArrayKey​(byte[] v)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object