PrivateKeyImplpublic class PrivateKeyImpl extends Object implements PrivateKey
Fields Summary |
---|
private static final long | serialVersionUID | private String | algorithm | private byte[] | encoding |
Constructors Summary |
---|
public PrivateKeyImpl(String algorithm)
this.algorithm = algorithm;
|
Methods Summary |
---|
public java.lang.String | getAlgorithm()
return algorithm;
| public byte[] | getEncoded()
byte[] toReturn = new byte[encoding.length];
System.arraycopy(encoding, 0, toReturn, 0, encoding.length);
return toReturn;
| public java.lang.String | getFormat()
return "PKCS#8"; //$NON-NLS-1$
| public void | setAlgorithm(java.lang.String algorithm)
this.algorithm = algorithm;
| public void | setEncoding(byte[] encoding)
this.encoding = new byte[encoding.length];
System.arraycopy(encoding, 0, this.encoding, 0, encoding.length);
|
|