Package org.conscrypt
Class OpenSslXwingPrivateKey
- java.lang.Object
-
- org.conscrypt.OpenSslXwingPrivateKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PrivateKey,javax.security.auth.Destroyable
public class OpenSslXwingPrivateKey extends java.lang.Object implements java.security.PrivateKeyAn X-Wing private key.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]pkcs8Preamble(package private) static intPRIVATE_KEY_SIZE_BYTESprivate byte[]rawprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description OpenSslXwingPrivateKey(byte[] raw)OpenSslXwingPrivateKey(java.security.spec.EncodedKeySpec keySpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()booleanequals(java.lang.Object o)java.lang.StringgetAlgorithm()byte[]getEncoded()java.lang.StringgetFormat()(package private) byte[]getRaw()inthashCode()booleanisDestroyed()private voidreadObject(java.io.ObjectInputStream in)private voidwriteObject(java.io.ObjectOutputStream out)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
PRIVATE_KEY_SIZE_BYTES
static final int PRIVATE_KEY_SIZE_BYTES
- See Also:
- Constant Field Values
-
pkcs8Preamble
private static final byte[] pkcs8Preamble
-
raw
private byte[] raw
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithmin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
- Specified by:
getFormatin interfacejava.security.Key
-
getEncoded
public byte[] getEncoded()
- Specified by:
getEncodedin interfacejava.security.Key
-
getRaw
byte[] getRaw()
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.security.auth.Destroyable
-
isDestroyed
public boolean isDestroyed()
- Specified by:
isDestroyedin interfacejavax.security.auth.Destroyable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
readObject
private void readObject(java.io.ObjectInputStream in)
-
writeObject
private void writeObject(java.io.ObjectOutputStream out)
-
-