Top Description Fields Constructors Methods
io.netty.handler.ssl

pack-priv Class PemValue

extends AbstractReferenceCounted
implements PemEncoded
Class Inheritance
All Implemented Interfaces
io.netty.handler.ssl.PemEncoded, io.netty.buffer.ByteBufHolder, io.netty.util.ReferenceCounted
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, io.netty.util.AbstractReferenceCounted, .IllegalReferenceCountException, io.netty.util.internal.ObjectUtil

A PEM encoded value.
See Also
PemEncoded, PemPrivateKey#toPEM(ByteBufAllocator, boolean, java.security.PrivateKey), PemX509Certificate#toPEM(ByteBufAllocator, boolean, java.security.cert.X509Certificate[])

Field Summary

Modifier and TypeField and Description
private final ByteBuf
private final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
PemValue(ByteBuf content, boolean sensitive)

Method Summary

Modifier and TypeMethod and Description
public ByteBuf
content()

Implements io.netty.buffer.ByteBufHolder.content.

Return the data which is held by this ByteBufHolder.
public PemValue
copy()

Implements io.netty.handler.ssl.PemEncoded.copy.

Creates a deep copy of this ByteBufHolder.
protected void
deallocate()

Implements abstract io.netty.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.
public PemValue
public boolean
isSensitive()

Implements io.netty.handler.ssl.PemEncoded.isSensitive.

Returns true if the PEM encoded value is considered sensitive information such as a private key.
public PemValue
replace(ByteBuf content)

Implements io.netty.handler.ssl.PemEncoded.replace.

Returns a new ByteBufHolder which contains the specified content.
public PemValue
public PemValue
retain(int increment)

Overrides io.netty.util.AbstractReferenceCounted.retain.

Implements io.netty.handler.ssl.PemEncoded.retain, io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.
public PemValue
public PemValue
touch()

Overrides io.netty.util.AbstractReferenceCounted.touch.

Implements io.netty.handler.ssl.PemEncoded.touch, io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes.
public PemValue
touch(Object hint)

Implements io.netty.handler.ssl.PemEncoded.touch, io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes.
Inherited from io.netty.util.AbstractReferenceCounted:
refCntreleasereleasesetRefCnt

Field Detail

contentback to summary
private final ByteBuf content
sensitiveback to summary
private final boolean sensitive

Constructor Detail

PemValueback to summary
pack-priv PemValue(ByteBuf content, boolean sensitive)

Method Detail

contentback to summary
public ByteBuf content()

Implements io.netty.buffer.ByteBufHolder.content.

Doc from io.netty.buffer.ByteBufHolder.content.

Return the data which is held by this ByteBufHolder.

Annotations
@Override
copyback to summary
public PemValue copy()

Implements io.netty.handler.ssl.PemEncoded.copy.

Doc from io.netty.buffer.ByteBufHolder.copy.

Creates a deep copy of this ByteBufHolder.

Annotations
@Override
deallocateback to summary
protected void deallocate()

Implements abstract io.netty.util.AbstractReferenceCounted.deallocate.

Doc from io.netty.util.AbstractReferenceCounted.deallocate.

Called once refCnt() is equals 0.

Annotations
@Override
duplicateback to summary
public PemValue duplicate()

Implements io.netty.handler.ssl.PemEncoded.duplicate.

Doc from io.netty.buffer.ByteBufHolder.duplicate.

Duplicates this ByteBufHolder. Be aware that this will not automatically call retain().

Annotations
@Override
isSensitiveback to summary
public boolean isSensitive()

Implements io.netty.handler.ssl.PemEncoded.isSensitive.

Doc from io.netty.handler.ssl.PemEncoded.isSensitive.

Returns true if the PEM encoded value is considered sensitive information such as a private key.

Annotations
@Override
replaceback to summary
public PemValue replace(ByteBuf content)

Implements io.netty.handler.ssl.PemEncoded.replace.

Doc from io.netty.buffer.ByteBufHolder.replace.

Returns a new ByteBufHolder which contains the specified content.

Annotations
@Override
retainback to summary
public PemValue retain()

Overrides io.netty.util.AbstractReferenceCounted.retain.

Implements io.netty.handler.ssl.PemEncoded.retain, io.netty.util.ReferenceCounted.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by 1.

Annotations
@Override
retainback to summary
public PemValue retain(int increment)

Overrides io.netty.util.AbstractReferenceCounted.retain.

Implements io.netty.handler.ssl.PemEncoded.retain, io.netty.util.ReferenceCounted.retain.

Doc from io.netty.util.ReferenceCounted.retain.

Increases the reference count by the specified increment.

Annotations
@Override
retainedDuplicateback to summary
public PemValue retainedDuplicate()

Implements io.netty.handler.ssl.PemEncoded.retainedDuplicate.

Doc from io.netty.buffer.ByteBufHolder.retainedDuplicate.

Duplicates this ByteBufHolder. This method returns a retained duplicate unlike duplicate().

Annotations
@Override
touchback to summary
public PemValue touch()

Overrides io.netty.util.AbstractReferenceCounted.touch.

Implements io.netty.handler.ssl.PemEncoded.touch, io.netty.util.ReferenceCounted.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector. This method is a shortcut to touch(null).

Annotations
@Override
touchback to summary
public PemValue touch(Object hint)

Implements io.netty.handler.ssl.PemEncoded.touch, io.netty.util.ReferenceCounted.touch.

Doc from io.netty.util.ReferenceCounted.touch.

Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you via ResourceLeakDetector.

Annotations
@Override