This key is generated by either a sun.
or sun.. Its getAlgorithm method
returns the algorithm family name, while its getParams() method returns
the parameter set name as a NamedParameterSpec object. The algorithm
identifier in the X.509 encoding of the key is always a single OID derived
from the parameter set name.
sun.security.provider.NamedKeyPairGenerator
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final transient NamedParameterSpec | |
| private final byte[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | NamedX509Key(String fname, String pname, byte[] rawBytes)
Ctor from family name, parameter set name, raw key bytes. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Overrides sun. Implements java. Returns the algorithm to be used with this key. |
| public NamedParameterSpec | getParams()
Overrides default java. Returns the parameters associated with this key. |
| public byte[] | |
| private void | readObject(ObjectInputStream stream)
Hides sun. Serialization read ... |
| public String | toString()
Overrides sun. Returns a string representation of the object. |
| private Object |
| fname | back to summary |
|---|---|
| private final String fname | |
| paramSpec | back to summary |
|---|---|
| private final transient NamedParameterSpec paramSpec | |
| rawBytes | back to summary |
|---|---|
| private final byte[] rawBytes | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides sun. | |
| NamedX509Key | back to summary |
|---|---|
| public NamedX509Key(String fname, String pname, byte[] rawBytes) Ctor from family name, parameter set name, raw key bytes. Key bytes won't be cloned, caller must relinquish ownership | |
| NamedX509Key | back to summary |
|---|---|
| public NamedX509Key(String fname, byte[] encoded) throws InvalidKeyException Ctor from family name, and X.509 bytes. Input byte array is copied. Caller can modify it after the method call. | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Overrides sun. Implements java. Doc from sun. Returns the algorithm to be used with this key.
| |
| getParams | back to summary |
|---|---|
| public NamedParameterSpec getParams() Overrides default java. Doc from java. Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.
| |
| getRawBytes | back to summary |
|---|---|
| public byte[] getRawBytes() Returns the reference to the internal key. Caller must not modify the content or keep a reference. | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException Hides sun. Doc from sun. Serialization read ... X.509 keys serialize as themselves, and they're parsed when they get read back.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides sun. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeReplace | back to summary |
|---|---|
private Object writeReplace() throws ObjectStreamException
| |