public abstract byte[] getEncoded ()

Returns the key in its primary encoding format, or null if this key does not support encoding.

Returns:  the encoded key, or null if the key does not support encoding.