public final class PemPrivateKey extends AbstractReferenceCounted implements java.security.PrivateKey
PrivateKey一个特殊目的实现,它允许用户直接将PEM / PKCS#8编码密钥材料传递到OpenSslContext,而无需解析和重新编码Java领域中的字节。
除了PemEncoded和Destroyable实现的方法之外的所有方法Destroyable抛出UnsupportedOperationException s。
PemEncoded , OpenSslContext , valueOf(byte[]) , valueOf(ByteBuf) , Serialized Form
| Modifier and Type | Method and Description |
|---|---|
ByteBuf |
content()
返回这个 ByteBufHolder持有的数据。
|
PemPrivateKey |
copy()
创建此 ByteBufHolder的深层副本。
|
protected void |
deallocate()
一次调用
AbstractReferenceCounted.refCnt()等于0。
|
void |
destroy()
注意:这是一个JDK8接口/方法。
|
PemPrivateKey |
duplicate()
重复此 ByteBufHolder 。
|
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
boolean |
isDestroyed()
注意:这是一个JDK8接口/方法。
|
boolean |
isSensitive()
如果PEM编码值被认为是敏感信息(如
true则返回
true 。
|
PemPrivateKey |
replace(ByteBuf content)
返回一个新 ByteBufHolder包含指定content 。
|
PemPrivateKey |
retain()
将参考计数增加
1 。
|
PemPrivateKey |
retain(int increment)
按指定的
increment增加参考计数。
|
PemPrivateKey |
retainedDuplicate()
重复此 ByteBufHolder 。
|
PemPrivateKey |
touch()
记录此对象的当前访问位置以进行调试。
|
PemPrivateKey |
touch(java.lang.Object hint)
记录此对象的当前访问位置,并附加一些用于调试的任意信息。
|
static PemPrivateKey |
valueOf(byte[] key)
创建一个 PemPrivateKey从原材料byte[] 。
|
static PemPrivateKey |
valueOf(ByteBuf key)
创建一个 PemPrivateKey从原材料ByteBuf 。
|
refCnt, release, release, setRefCntclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrefCnt, release, releasepublic static PemPrivateKey valueOf(byte[] key)
public static PemPrivateKey valueOf(ByteBuf key)
public boolean isSensitive()
true则返回
true 。
public ByteBuf content()
ByteBufHolder复制的描述
ByteBufHolder所持有的数据。
public PemPrivateKey copy()
ByteBufHolder复制的描述
ByteBufHolder的深层副本。
public PemPrivateKey duplicate()
ByteBufHolder
ByteBufHolder 。
请注意,这不会自动调用ByteBufHolder.retain() 。
public PemPrivateKey retainedDuplicate()
ByteBufHolder
ByteBufHolder 。
与ByteBufHolder.duplicate()不同,此方法返回保留的副本。
public PemPrivateKey replace(ByteBuf content)
ByteBufHolder
ByteBufHolder包含指定content 。
public PemPrivateKey touch()
ReferenceCounted复制的描述
touch在界面
ReferenceCounted
touch在课堂上
AbstractReferenceCounted
public PemPrivateKey touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector提供给您。
touch在界面
ReferenceCounted
public PemPrivateKey retain()
ReferenceCounted
1 。
retain在界面
ReferenceCounted
retain在课堂上
AbstractReferenceCounted
public PemPrivateKey retain(int increment)
ReferenceCounted复制的描述
increment增加引用计数。
retain在界面
ReferenceCounted
retain在课堂上
AbstractReferenceCounted
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()等于0。
deallocate在课堂上
AbstractReferenceCounted
public byte[] getEncoded()
getEncoded在界面
java.security.Key
public java.lang.String getAlgorithm()
getAlgorithm在界面
java.security.Key
public java.lang.String getFormat()
getFormat在界面
java.security.Key
public void destroy()
@Override注释记录到此方法上。
destroy在界面
javax.security.auth.Destroyable
Destroyable.destroy()
public boolean isDestroyed()
@Override注释记录到此方法上。
isDestroyed在界面
javax.security.auth.Destroyable
Destroyable.isDestroyed()
Copyright © 2008–2018 The Netty Project. All rights reserved.