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()
Create a deep copy of this
ByteBufHolder. |
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
PemValue |
duplicate()
Duplicate the
ByteBufHolder. |
boolean |
isSensitive()
Returns
true if the PEM encoded value is considered
sensitive information such as a private key. |
PemValue |
retain()
Increases the reference count by
1. |
PemValue |
retain(int increment)
Increases the reference count by the specified
increment. |
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 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