加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090222005724/http://developer.android.com:80/reference/java/security/Key.html
public interface

Key

implements Serializable
java.security.Key
Known Indirect Subclasses

Class Overview

Defines the basic properties of all key objects.

See Also

Summary

Constants
long serialVersionUID
Public Methods
abstract String getAlgorithm()
Returns the name of the algorithm that this key will work with.
abstract byte[] getEncoded()
Returns the encoded form of the receiver.
abstract String getFormat()
Returns the name of the format used to encode the key, or null if it can not be encoded.

Constants

public static final long serialVersionUID

Constant Value: 6603384152749567654 (0x5ba3eee69414eea6)

Public Methods

public abstract String getAlgorithm ()

Returns the name of the algorithm that this key will work with. If the algorithm is unknown, it returns null.

Returns
  • String the receiver's algorithm

public abstract byte[] getEncoded ()

Returns the encoded form of the receiver.

Returns
  • byte[] the encoded form of the receiver

public abstract String getFormat ()

Returns the name of the format used to encode the key, or null if it can not be encoded.

Returns
  • String the receiver's encoding format