Class SEPublicKeyImpl
java.lang.Object
com.biglybt.pifimpl.local.utils.security.SEPublicKeyImpl
- All Implemented Interfaces:
SEPublicKey
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]private intprivate intprivate intFields inherited from interface SEPublicKey
KEY_TYPE_ECC_192 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSEPublicKeyImpl(int _type, int _instance, byte[] _encoded) -
Method Summary
-
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:
getTypein interfaceSEPublicKey
-
getInstance
public int getInstance()- Specified by:
getInstancein interfaceSEPublicKey
-
encodePublicKey
public byte[] encodePublicKey()Description copied from interface:SEPublicKeyGets 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:
encodePublicKeyin interfaceSEPublicKey- Returns:
-
encodeRawPublicKey
public byte[] encodeRawPublicKey()Description copied from interface:SEPublicKeyRaw encoding of the specific key type- Specified by:
encodeRawPublicKeyin interfaceSEPublicKey- Returns:
-
equals
Description copied from interface:SEPublicKeyOverridden to perform equality based on public key- Specified by:
equalsin interfaceSEPublicKey- Overrides:
equalsin classObject- Parameters:
other-- Returns:
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceSEPublicKey- Overrides:
hashCodein classObject
-