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, 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 retainedDuplicate()
ByteBufHolder
ByteBufHolder
. This method returns a retained duplicate unlike ByteBufHolder.duplicate()
.retainedDuplicate
in interface ByteBufHolder
retainedDuplicate
in interface PemEncoded
ByteBuf.retainedDuplicate()
public PemValue replace(ByteBuf content)
ByteBufHolder
ByteBufHolder
which contains the specified content
.replace
in interface ByteBufHolder
replace
in interface PemEncoded
public PemValue touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface PemEncoded
touch
in interface ReferenceCounted
touch
in class AbstractReferenceCounted
public PemValue touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface PemEncoded
touch
in interface ReferenceCounted
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