Class SEPublicKeyImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.utils.security.SEPublicKeyImpl
-
- All Implemented Interfaces:
SEPublicKey
public class SEPublicKeyImpl extends java.lang.Object implements SEPublicKey
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
encoded
private int
hashcode
private int
instance
private int
type
-
Fields inherited from interface com.biglybt.pif.utils.security.SEPublicKey
KEY_TYPE_ECC_192
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SEPublicKeyImpl(int _type, int _instance, byte[] _encoded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
encodePublicKey()
Gets a generic encoded form that includes type identification information.byte[]
encodeRawPublicKey()
Raw encoding of the specific key typeboolean
equals(java.lang.Object other)
Overridden to perform equality based on public keyint
getInstance()
int
getType()
int
hashCode()
-
-
-
Method Detail
-
getType
public int getType()
- Specified by:
getType
in interfaceSEPublicKey
-
getInstance
public int getInstance()
- Specified by:
getInstance
in interfaceSEPublicKey
-
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 interfaceSEPublicKey
- Returns:
-
encodeRawPublicKey
public byte[] encodeRawPublicKey()
Description copied from interface:SEPublicKey
Raw encoding of the specific key type- Specified by:
encodeRawPublicKey
in interfaceSEPublicKey
- Returns:
-
equals
public boolean equals(java.lang.Object other)
Description copied from interface:SEPublicKey
Overridden to perform equality based on public key- Specified by:
equals
in interfaceSEPublicKey
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceSEPublicKey
- Overrides:
hashCode
in classjava.lang.Object
-
-