class PemValue extends AbstractReferenceCounted implements PemEncoded
| Modifier and Type | Field and Description |
|---|---|
private ByteBuf |
content |
private boolean |
sensitive |
| Constructor and Description |
|---|
PemValue(ByteBuf content,
boolean sensitive) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder. |
PemValue |
copy()
Creates a deep copy of this
ByteBufHolder. |
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
PemValue |
duplicate()
Duplicates this
ByteBufHolder. |
boolean |
isSensitive()
Returns
true if the PEM encoded value is considered
sensitive information such as a private key. |
PemValue |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
PemValue |
retain()
Increases the reference count by
1. |
PemValue |
retain(int increment)
Increases the reference count by the specified
increment. |
PemValue |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
PemValue |
touch()
Records the current access location of this object for debugging purposes.
|
PemValue |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
refCnt, release, release, setRefCntclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrefCnt, release, releaseprivate final ByteBuf content
private final boolean sensitive
public PemValue(ByteBuf content, boolean sensitive)
public boolean isSensitive()
PemEncodedtrue if the PEM encoded value is considered
sensitive information such as a private key.isSensitive in interface PemEncodedpublic ByteBuf content()
ByteBufHolderByteBufHolder.content in interface ByteBufHolderpublic PemValue copy()
ByteBufHolderByteBufHolder.copy in interface ByteBufHoldercopy in interface PemEncodedpublic PemValue duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().duplicate in interface ByteBufHolderduplicate in interface PemEncodedpublic PemValue retainedDuplicate()
ByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().retainedDuplicate in interface ByteBufHolderretainedDuplicate in interface PemEncodedByteBuf.retainedDuplicate()public PemValue replace(ByteBuf content)
ByteBufHolderByteBufHolder which contains the specified content.replace in interface ByteBufHolderreplace in interface PemEncodedpublic PemValue touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface PemEncodedtouch in interface ReferenceCountedtouch in class AbstractReferenceCountedpublic PemValue touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface PemEncodedtouch in interface ReferenceCountedpublic PemValue retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface PemEncodedretain in interface ReferenceCountedretain in class AbstractReferenceCountedpublic PemValue retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface PemEncodedretain in interface ReferenceCountedretain in class AbstractReferenceCountedprotected void deallocate()
AbstractReferenceCountedAbstractReferenceCounted.refCnt() is equals 0.deallocate in class AbstractReferenceCounted