org.gudy.azureus2.plugins.utils.security
Interface SEPublicKey

All Known Implementing Classes:
SEPublicKeyImpl

public interface SEPublicKey


Field Summary
static int KEY_TYPE_ECC_192
           
 
Method Summary
 byte[] encodePublicKey()
          Gets a generic encoded form that includes type identification information.
 byte[] encodeRawPublicKey()
          Raw encoding of the specific key type
 boolean equals(java.lang.Object other)
          Overridden to perform equality based on public key
 int getType()
           
 int hashCode()
           
 

Field Detail

KEY_TYPE_ECC_192

static final int KEY_TYPE_ECC_192
See Also:
Constant Field Values
Method Detail

getType

int getType()

encodePublicKey

byte[] encodePublicKey()
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

Returns:

encodeRawPublicKey

byte[] encodeRawPublicKey()
Raw encoding of the specific key type

Returns:

equals

boolean equals(java.lang.Object other)
Overridden to perform equality based on public key

Overrides:
equals in class java.lang.Object
Parameters:
other -
Returns:

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object