org.gudy.azureus2.pluginsimpl.local.utils.security
Class SEPublicKeyImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.utils.security.SEPublicKeyImpl
- All Implemented Interfaces:
- SEPublicKey
public class SEPublicKeyImpl
- extends Object
- implements SEPublicKey
SEPublicKeyImpl
protected SEPublicKeyImpl(int _type,
byte[] _encoded)
decode
public static SEPublicKey decode(byte[] encoded)
getType
public int getType()
- Specified by:
getType
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
hashCode
public int hashCode()
- Specified by:
hashCode
in interface SEPublicKey
- Overrides:
hashCode
in class Object