Class SEPublicKeyImpl

java.lang.Object
com.biglybt.pifimpl.local.utils.security.SEPublicKeyImpl
All Implemented Interfaces:
SEPublicKey

public class SEPublicKeyImpl extends Object implements SEPublicKey
  • Field Details

    • type

      private int type
    • instance

      private int instance
    • encoded

      private byte[] encoded
    • hashcode

      private int hashcode
  • Constructor Details

    • SEPublicKeyImpl

      protected SEPublicKeyImpl(int _type, int _instance, byte[] _encoded)
  • Method Details

    • getType

      public int getType()
      Specified by:
      getType in interface SEPublicKey
    • getInstance

      public int getInstance()
      Specified by:
      getInstance in interface SEPublicKey
    • encodePublicKey

      public byte[] encodePublicKey()
      Description copied from interface: SEPublicKey
      Gets a generic encoded form that includes type identification information. So don't treat this as a raw encoding as it can only sensibly be used to later import via SESecurityManager.decodePublicKey
      Specified by:
      encodePublicKey in interface SEPublicKey
      Returns:
    • encodeRawPublicKey

      public byte[] encodeRawPublicKey()
      Description copied from interface: SEPublicKey
      Raw encoding of the specific key type
      Specified by:
      encodeRawPublicKey in interface SEPublicKey
      Returns:
    • equals

      public boolean equals(Object other)
      Description copied from interface: SEPublicKey
      Overridden to perform equality based on public key
      Specified by:
      equals in interface SEPublicKey
      Overrides:
      equals in class Object
      Parameters:
      other -
      Returns:
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface SEPublicKey
      Overrides:
      hashCode in class Object