Package io.netty.handler.ssl
Class PemValue
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- io.netty.handler.ssl.PemValue
-
- All Implemented Interfaces:
ByteBufHolder,PemEncoded,ReferenceCounted
class PemValue extends AbstractReferenceCounted implements PemEncoded
A PEM encoded value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBufcontent()Return the data which is held by thisByteBufHolder.PemValuecopy()Creates a deep copy of thisByteBufHolder.protected voiddeallocate()Called onceAbstractReferenceCounted.refCnt()is equals 0.PemValueduplicate()Duplicates thisByteBufHolder.booleanisSensitive()Returnstrueif the PEM encoded value is considered sensitive information such as a private key.PemValuereplace(ByteBuf content)Returns a newByteBufHolderwhich contains the specifiedcontent.PemValueretain()Increases the reference count by1.PemValueretain(int increment)Increases the reference count by the specifiedincrement.PemValueretainedDuplicate()Duplicates thisByteBufHolder.PemValuetouch()Records the current access location of this object for debugging purposes.PemValuetouch(java.lang.Object hint)Records the current access location of this object with an additional arbitrary information for debugging purposes.-
Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, setRefCnt
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.util.ReferenceCounted
refCnt, release, release
-
-
-
-
Field Detail
-
content
private final ByteBuf content
-
sensitive
private final boolean sensitive
-
-
Constructor Detail
-
PemValue
PemValue(ByteBuf content, boolean sensitive)
-
-
Method Detail
-
isSensitive
public boolean isSensitive()
Description copied from interface:PemEncodedReturnstrueif the PEM encoded value is considered sensitive information such as a private key.- Specified by:
isSensitivein interfacePemEncoded
-
content
public ByteBuf content()
Description copied from interface:ByteBufHolderReturn the data which is held by thisByteBufHolder.- Specified by:
contentin interfaceByteBufHolder
-
copy
public PemValue copy()
Description copied from interface:ByteBufHolderCreates a deep copy of thisByteBufHolder.- Specified by:
copyin interfaceByteBufHolder- Specified by:
copyin interfacePemEncoded
-
duplicate
public PemValue duplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. Be aware that this will not automatically callByteBufHolder.retain().- Specified by:
duplicatein interfaceByteBufHolder- Specified by:
duplicatein interfacePemEncoded
-
retainedDuplicate
public PemValue retainedDuplicate()
Description copied from interface:ByteBufHolderDuplicates thisByteBufHolder. This method returns a retained duplicate unlikeByteBufHolder.duplicate().- Specified by:
retainedDuplicatein interfaceByteBufHolder- Specified by:
retainedDuplicatein interfacePemEncoded- See Also:
ByteBuf.retainedDuplicate()
-
replace
public PemValue replace(ByteBuf content)
Description copied from interface:ByteBufHolderReturns a newByteBufHolderwhich contains the specifiedcontent.- Specified by:
replacein interfaceByteBufHolder- Specified by:
replacein interfacePemEncoded
-
touch
public PemValue touch()
Description copied from interface:ReferenceCountedRecords 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 viaResourceLeakDetector. This method is a shortcut totouch(null).- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfacePemEncoded- Specified by:
touchin interfaceReferenceCounted- Overrides:
touchin classAbstractReferenceCounted
-
touch
public PemValue touch(java.lang.Object hint)
Description copied from interface:ReferenceCountedRecords 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 viaResourceLeakDetector.- Specified by:
touchin interfaceByteBufHolder- Specified by:
touchin interfacePemEncoded- Specified by:
touchin interfaceReferenceCounted
-
retain
public PemValue retain()
Description copied from interface:ReferenceCountedIncreases the reference count by1.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfacePemEncoded- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
retain
public PemValue retain(int increment)
Description copied from interface:ReferenceCountedIncreases the reference count by the specifiedincrement.- Specified by:
retainin interfaceByteBufHolder- Specified by:
retainin interfacePemEncoded- Specified by:
retainin interfaceReferenceCounted- Overrides:
retainin classAbstractReferenceCounted
-
deallocate
protected void deallocate()
Description copied from class:AbstractReferenceCountedCalled onceAbstractReferenceCounted.refCnt()is equals 0.- Specified by:
deallocatein classAbstractReferenceCounted
-
-