Top Description Constructors Methods
org.bouncycastle.jcajce.spec

public Class RawEncodedKeySpec

extends EncodedKeySpec
Class Inheritance
Imports
java.security.spec.EncodedKeySpec

An encoded key spec that just wraps the minimal data for a public/private key representation.

Constructor Summary

AccessConstructor and Description
public
RawEncodedKeySpec(byte[]
the public/private key data.
bytes
)

Base constructor - just the minimal data.

Method Summary

Modifier and TypeMethod and Description
public String
getFormat()

Implements abstract java.security.spec.EncodedKeySpec.getFormat.

Returns the name of the encoding format associated with this key specification.

Inherited from java.security.spec.EncodedKeySpec:
getAlgorithmgetEncoded

Constructor Detail

RawEncodedKeySpecback to summary
public RawEncodedKeySpec(byte[] bytes)

Base constructor - just the minimal data.

Parameters
bytes:byte[]

the public/private key data.

Method Detail

getFormatback to summary
public String getFormat()

Implements abstract java.security.spec.EncodedKeySpec.getFormat.

Doc from java.security.spec.EncodedKeySpec.getFormat.

Returns the name of the encoding format associated with this key specification.

If the opaque representation of a key (see Key) can be transformed (see KeyFactory) into this key specification (or a subclass of it), getFormat called on the opaque key returns the same value as the getFormat method of this key specification.

Returns:String

a string representation of the encoding format.