public class CertificateX509Key
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
CertificateX509Key(com.tencent.kona.sun.security.util.DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
CertificateX509Key(java.io.InputStream in)
Create the object, decoding the values from the passed stream.
|
CertificateX509Key(java.security.PublicKey key)
Default constructor for the certificate attribute.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Encode the key in DER form to the stream.
|
java.security.PublicKey |
getKey()
Get the PublicKey value.
|
java.lang.String |
toString()
Return the key as printable string.
|
public static final java.lang.String NAME
public CertificateX509Key(java.security.PublicKey key)
key - the X509Keypublic CertificateX509Key(com.tencent.kona.sun.security.util.DerInputStream in)
throws java.io.IOException
in - the DerInputStream to read the X509Key from.java.io.IOException - on decoding errors.public CertificateX509Key(java.io.InputStream in)
throws java.io.IOException
in - the InputStream to read the X509Key from.java.io.IOException - on decoding errors.public java.lang.String toString()
toString in class java.lang.Objectpublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the DerOutputStream to marshal the contents to.public java.security.PublicKey getKey()