PublicKeyImplpublic class PublicKeyImpl extends Object implements PublicKey
Fields Summary |
---|
private static final long | serialVersionUID | private byte[] | encoding | private String | algorithm |
Constructors Summary |
---|
public PublicKeyImpl(String algorithm)
this.algorithm = algorithm;
|
Methods Summary |
---|
public java.lang.String | getAlgorithm()
return algorithm;
| public byte[] | getEncoded()
byte[] result = new byte[encoding.length];
System.arraycopy(encoding, 0, result, 0, encoding.length);
return result;
| public java.lang.String | getFormat()
return "X.509"; //$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);
|
|