Package org.apache.harmony.security
Class PublicKeyImpl
java.lang.Object
org.apache.harmony.security.PublicKeyImpl
- All Implemented Interfaces:
Serializable,Key,PublicKey
- Direct Known Subclasses:
DSAPublicKeyImpl
public class PublicKeyImpl extends Object implements PublicKey
PublicKeyImpl
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description PublicKeyImpl(String algorithm) -
Method Summary
Modifier and Type Method Description StringgetAlgorithm()Returns the name of the algorithm of this key.byte[]getEncoded()Returns the encoded form of this key, ornullif encoding is not supported by this key.StringgetFormat()Returns the name of the format used to encode this key, ornullif it can not be encoded.voidsetAlgorithm(String algorithm)voidsetEncoding(byte[] encoding)
-
Constructor Details
-
PublicKeyImpl
-
-
Method Details
-
getAlgorithm
Description copied from interface:KeyReturns the name of the algorithm of this key. If the algorithm is unknown,nullis returned.- Specified by:
getAlgorithmin interfaceKey- Returns:
- the name of the algorithm of this key or
nullif the algorithm is unknown.
-
getFormat
Description copied from interface:KeyReturns the name of the format used to encode this key, ornullif it can not be encoded. -
getEncoded
public byte[] getEncoded()Description copied from interface:KeyReturns the encoded form of this key, ornullif encoding is not supported by this key.- Specified by:
getEncodedin interfaceKey- Returns:
- the encoded form of this key, or
nullif encoding is not supported by this key.
-
setAlgorithm
-
setEncoding
public void setEncoding(byte[] encoding)
-