Top Description Constructors Methods
io.netty5.handler.ssl

pack-priv Class PemValue

extends BufferHolder<PemValue>
implements PemEncoded
Class Inheritance
All Implemented Interfaces
io.netty5.handler.ssl.PemEncoded, java.lang.AutoCloseable
Imports
io.netty5.buffer.Buffer, .BufferAllocator, .BufferHolder, java.security.cert.X509Certificate

A PEM encoded value.
See Also
PemEncoded, toPEM(java.security.PrivateKey), PemX509Certificate#toPEM(BufferAllocator, X509Certificate...)

Constructor Summary

AccessConstructor and Description
pack-priv
PemValue(Buffer content)

Method Summary

Modifier and TypeMethod and Description
public Buffer
content()

Implements io.netty5.handler.ssl.PemEncoded.content.

Returns the Buffer with the PEM encoded contents of this value.
public PemValue
copy()

Implements io.netty5.handler.ssl.PemEncoded.copy.

Return a copy of this PEM encoded value.
protected PemValue
receive(Buffer
The Buffer that is received by the recipient, and needs to be wrapped in a new BufferHolder instance.
buf
)

Implements abstract io.netty5.buffer.BufferHolder.receive.

Called when a sent BufferHolder is received by the recipient.
Inherited from io.netty5.buffer.BufferHolder:
closeequalsgetBuffergetBufferVolatilehashCodeisAccessiblereplaceBufferreplaceBufferVolatilesendtouch

Constructor Detail

PemValueback to summary
pack-priv PemValue(Buffer content)

Method Detail

contentback to summary
public Buffer content()

Implements io.netty5.handler.ssl.PemEncoded.content.

Doc from io.netty5.handler.ssl.PemEncoded.content.

Returns the Buffer with the PEM encoded contents of this value.

Note

The returned buffer should not be closed directly. Instead, close() should be called on this PEM encoded value instead.

Returns:Buffer

The underlying Buffer with the contents of this PEM encoded value.

Annotations
@Override
copyback to summary
public PemValue copy()

Implements io.netty5.handler.ssl.PemEncoded.copy.

Doc from io.netty5.handler.ssl.PemEncoded.copy.

Return a copy of this PEM encoded value.

Returns:PemValue

A new identical copy of this PEM encoded value.

Annotations
@Override
receiveback to summary
protected PemValue receive(Buffer buf)

Implements abstract io.netty5.buffer.BufferHolder.receive.

Doc from io.netty5.buffer.BufferHolder.receive.

Called when a sent BufferHolder is received by the recipient. The BufferHolder should return a new concrete instance, that wraps the given Buffer object.

Parameters
buf:Buffer

The Buffer that is received by the recipient, and needs to be wrapped in a new BufferHolder instance.

Returns:PemValue

A new buffer holder instance, containing the given buffer.

Annotations
@Override