org.gudy.azureus2.pluginsimpl.local.utils.security
Class SEPublicKeyImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.utils.security.SEPublicKeyImpl
All Implemented Interfaces:
SEPublicKey

public class SEPublicKeyImpl
extends Object
implements SEPublicKey


Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.utils.security.SEPublicKey
KEY_TYPE_ECC_192
 
Constructor Summary
protected SEPublicKeyImpl(int _type, byte[] _encoded)
           
 
Method Summary
static SEPublicKey decode(byte[] encoded)
           
 byte[] encodePublicKey()
          Gets a generic encoded form that includes type identification information.
 byte[] encodeRawPublicKey()
          Raw encoding of the specific key type
 boolean equals(Object other)
          Overridden to perform equality based on public key
 int getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SEPublicKeyImpl

protected SEPublicKeyImpl(int _type,
                          byte[] _encoded)
Method Detail

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