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, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refCnt, release, release
private final ByteBuf content
private final boolean sensitive
public PemValue(ByteBuf content, boolean sensitive)
public boolean isSensitive()
PemEncoded
true
if the PEM encoded value is considered
sensitive information such as a private key.isSensitive
in interface PemEncoded
public ByteBuf content()
ByteBufHolder
ByteBufHolder
.content
in interface ByteBufHolder
public PemValue copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in interface PemEncoded
public PemValue duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in interface PemEncoded
public PemValue retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface PemEncoded
retain
in interface ReferenceCounted
retain
in class AbstractReferenceCounted
public PemValue retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface PemEncoded
retain
in interface ReferenceCounted
retain
in class AbstractReferenceCounted
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()
is equals 0.deallocate
in class AbstractReferenceCounted