Class PemPrivateKey

  • All Implemented Interfaces:
    ByteBufHolder, ReferenceCounted, java.io.Serializable, java.security.Key, java.security.PrivateKey, javax.security.auth.Destroyable

    public final class PemPrivateKey
    extends AbstractReferenceCounted
    implements java.security.PrivateKey
    This is a special purpose implementation of a PrivateKey which allows the user to pass PEM/PKCS#8 encoded key material straight into OpenSslContext without having to parse and re-encode bytes in Java land. All methods other than what's implemented in PemEncoded and Destroyable throw UnsupportedOperationExceptions.
    See Also:
    PemEncoded, OpenSslContext, valueOf(byte[]), valueOf(ByteBuf), Serialized Form