netty-all-4.1.29.Final.jar
登录
|
io.netty:netty-all:4.1.29.Final
io
netty
internal
example
buffer
bootstrap
util
handler
traffic
timeout
stream
flush
flow
proxy
ipfilter
ssl
Conscrypt.java
OpenSslClientContext.java
SslCompletionEvent.java
OpenSslApplicationProtocolNegotiator.java
package-info.java
JdkDefaultApplicationProtocolNegotiator.java
OptionalSslHandler.java
CipherSuiteConverter.java
ApplicationProtocolNegotiator.java
JettyAlpnSslEngine.java
PemX509Certificate.java
ApplicationProtocolNames.java
JdkApplicationProtocolNegotiator.java
CipherSuiteFilter.java
ReferenceCountedOpenSslEngine.java
OpenSslKeyMaterialProvider.java
SslCloseCompletionEvent.java
DefaultOpenSslKeyMaterial.java
AbstractSniHandler.java
OpenSslServerSessionContext.java
SniCompletionEvent.java
JdkSslServerContext.java
JdkBaseApplicationProtocolNegotiator.java
ReferenceCountedOpenSslServerContext.java
SslContextBuilder.java
OpenSslServerContext.java
Java8SslUtils.java
ReferenceCountedOpenSslContext.java
OpenSslX509Certificate.java
OpenSslDefaultApplicationProtocolNegotiator.java
ApplicationProtocolUtil.java
OpenSslKeyMaterialManager.java
util
DelegatingSslContext.java
SniHandler.java
JdkAlpnApplicationProtocolNegotiator.java
OpenSslSessionStats.java
Java9SslUtils.java
OpenSslKeyMaterial.java
OpenSslContext.java
NotSslRecordException.java
SslHandshakeCompletionEvent.java
PemValue.java
JdkSslEngine.java
ApplicationProtocolConfig.java
Java7SslParametersUtils.java
PemEncoded.java
ApplicationProtocolNegotiationHandler.java
SslUtils.java
OpenSslX509KeyManagerFactory.java
OpenSslJavaxX509Certificate.java
SupportedCipherSuiteFilter.java
PemPrivateKey.java
JettyNpnSslEngine.java
JdkSslClientContext.java
OpenSslCachingX509KeyManagerFactory.java
OpenSslSessionTicketKey.java
OpenSslCachingKeyMaterialProvider.java
Java9SslEngine.java
OpenSslSessionContext.java
OpenSslEngineMap.java
ReferenceCountedOpenSslClientContext.java
OpenSsl.java
ClientAuth.java
JdkSslContext.java
OpenSslNpnApplicationProtocolNegotiator.java
ocsp
SslHandler.java
OpenSslEngine.java
ApplicationProtocolAccessor.java
IdentityCipherSuiteFilter.java
ConscryptAlpnSslEngine.java
JdkNpnApplicationProtocolNegotiator.java
PemReader.java
SslProvider.java
OpenSslCertificateException.java
OpenSslPrivateKey.java
SslContext.java
codec
logging
channel
resolver
META-INF
OpenSslPrivateKey.java
清空
类结构
/* * Copyright 2018 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package io.netty.handler.ssl; import io.netty.internal.
tcnative
.
SSL
; import io.netty.util.
AbstractReferenceCounted
; import io.netty.util.
IllegalReferenceCountException
; import javax.security.auth.
Destroyable
; import java.security.
PrivateKey
; final class
OpenSslPrivateKey
extends
AbstractReferenceCounted
implements
PrivateKey
{ private long
privateKeyAddress
;
OpenSslPrivateKey
(long
privateKeyAddress
) { this.
privateKeyAddress
=
privateKeyAddress
; } @
Override
public
String
getAlgorithm
() { return "unkown"; } @
Override
public
String
getFormat
() { // As we do not support encoding we should return null as stated in the javadocs of PrivateKey. return null; } @
Override
public byte[]
getEncoded
() { return null; } /** * Returns the pointer to the {@code EVP_PKEY}. */ long
privateKeyAddress
() { if (
refCnt
() <= 0) { throw new
IllegalReferenceCountException
(); } return
privateKeyAddress
; } @
Override
protected void
deallocate
() {
SSL
.
freePrivateKey
(
privateKeyAddress
);
privateKeyAddress
= 0; } @
Override
public
OpenSslPrivateKey
retain
() { super.retain(); return this; } @
Override
public
OpenSslPrivateKey
retain
(int
increment
) { super.retain(
increment
); return this; } @
Override
public
OpenSslPrivateKey
touch
() { super.touch(); return this; } @
Override
public
OpenSslPrivateKey
touch
(
Object
hint
) { return this; } /** * NOTE: This is a JDK8 interface/method. Due to backwards compatibility * reasons it's not possible to slap the {@code @Override} annotation onto * this method. * * @see Destroyable#destroy() */ public void
destroy
() {
release
(
refCnt
()); } /** * NOTE: This is a JDK8 interface/method. Due to backwards compatibility * reasons it's not possible to slap the {@code @Override} annotation onto * this method. * * @see Destroyable#isDestroyed() */ public boolean
isDestroyed
() { return
refCnt
() == 0; } /** * Convert to a {@link OpenSslKeyMaterial}. Reference count of both is shared. */
OpenSslKeyMaterial
toKeyMaterial
(long
certificateChain
) { return new
OpenSslPrivateKeyMaterial
(
certificateChain
); } private final class
OpenSslPrivateKeyMaterial
implements
OpenSslKeyMaterial
{ private long
certificateChain
;
OpenSslPrivateKeyMaterial
(long
certificateChain
) { this.
certificateChain
=
certificateChain
; } @
Override
public long
certificateChainAddress
() { if (
refCnt
() <= 0) { throw new
IllegalReferenceCountException
(); } return
certificateChain
; } @
Override
public long
privateKeyAddress
() { return
OpenSslPrivateKey
.this.
privateKeyAddress
(); } @
Override
public
OpenSslKeyMaterial
retain
() {
OpenSslPrivateKey
.this.
retain
(); return this; } @
Override
public
OpenSslKeyMaterial
retain
(int
increment
) {
OpenSslPrivateKey
.this.
retain
(
increment
); return this; } @
Override
public
OpenSslKeyMaterial
touch
() {
OpenSslPrivateKey
.this.
touch
(); return this; } @
Override
public
OpenSslKeyMaterial
touch
(
Object
hint
) {
OpenSslPrivateKey
.this.
touch
(
hint
); return this; } @
Override
public boolean
release
() { if (
OpenSslPrivateKey
.this.
release
()) {
releaseChain
(); return true; } return false; } @
Override
public boolean
release
(int
decrement
) { if (
OpenSslPrivateKey
.this.
release
(
decrement
)) {
releaseChain
(); return true; } return false; } private void
releaseChain
() {
SSL
.
freeX509Chain
(
certificateChain
);
certificateChain
= 0; } @
Override
public int
refCnt
() { return
OpenSslPrivateKey
.this.
refCnt
(); } } }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口