/** * Returns the {@code Principal} used to identify during the handshake. * * @return the {@code Principal} used to identify during the handshake. */ public Principal getLocalPrincipal() { return session.getLocalPrincipal(); }
public Principal getLocalPrincipal() { return unwrap().getLocalPrincipal(); }
public Object getUserToken(final HttpContext context) { Principal userPrincipal = null; AuthState targetAuthState = (AuthState) context.getAttribute( ClientContext.TARGET_AUTH_STATE); if (targetAuthState != null) { userPrincipal = getAuthPrincipal(targetAuthState); if (userPrincipal == null) { AuthState proxyAuthState = (AuthState) context.getAttribute( ClientContext.PROXY_AUTH_STATE); userPrincipal = getAuthPrincipal(proxyAuthState); } } if (userPrincipal == null) { ManagedClientConnection conn = (ManagedClientConnection) context.getAttribute( ExecutionContext.HTTP_CONNECTION); if (conn.isOpen()) { SSLSession sslsession = conn.getSSLSession(); if (sslsession != null) { userPrincipal = sslsession.getLocalPrincipal(); } } } return userPrincipal; }
final Principal localPrincipal = sslSession.getLocalPrincipal(); if (localPrincipal != null) { principalRef.set(localPrincipal);
/** * Returns the {@code Principal} used to identify during the handshake. * * @return the {@code Principal} used to identify during the handshake. */ public Principal getLocalPrincipal() { return session.getLocalPrincipal(); }
/** * Returns the {@code Principal} used to identify during the handshake. * * @return the {@code Principal} used to identify during the handshake. */ public Principal getLocalPrincipal() { return session.getLocalPrincipal(); }
/** * Returns the {@code Principal} used to identify during the handshake. * * @return the {@code Principal} used to identify during the handshake. */ public Principal getLocalPrincipal() { return session.getLocalPrincipal(); }
/** * Returns the {@code Principal} used to identify during the handshake. * * @return the {@code Principal} used to identify during the handshake. */ public Principal getLocalPrincipal() { return session.getLocalPrincipal(); }
/** * Returns the {@code Principal} used to identify during the handshake. * * @return the {@code Principal} used to identify during the handshake. */ public Principal getLocalPrincipal() { return session.getLocalPrincipal(); }
/** * Returns the {@code Principal} used to identify during the handshake. * * @return the {@code Principal} used to identify during the handshake. */ public Principal getLocalPrincipal() { return session.getLocalPrincipal(); }
public void setSSLSession(SSLSession sslsession) { session = sslsession; synchronized (sessionLock) { sslState = sslsession.getLocalPrincipal(); sslURL = url; sessionLock.notifyAll(); } }
@Override public Principal getLocalPrincipal() { return delegate().getLocalPrincipal(); }
@Override public Principal getLocalPrincipal() { Principal result = null; if (isSSL()) { SslHandler sslHandler = channel.pipeline().get(SslHandler.class); result = sslHandler.engine().getSession().getLocalPrincipal(); } return result; }
@Override public Principal getLocalPrincipal() { Principal result = null; if (isSecure()) { SslHandler sslHandler = channel.pipeline().get(SslHandler.class); result = sslHandler.engine().getSession().getLocalPrincipal(); } return result; }
@Override public Principal getLocalPrincipal() { Principal result = null; if (isSecure()) { SslHandler sslHandler = channel.pipeline().get(SslHandler.class); result = sslHandler.engine().getSession().getLocalPrincipal(); } return result; }
public static String myName(Socket theSocket) { if (isSSLSocket(theSocket)) { SSLSession ss = ((SSLSocket) theSocket).getSession(); String dn = ss.getLocalPrincipal().getName(); return getRdnByNameFromDn(dn, COMMONNAME); } else { return null; } }
public static String myName(Socket theSocket) { if (isSSLSocket(theSocket)) { SSLSession ss = ((SSLSocket) theSocket).getSession(); String dn = ss.getLocalPrincipal().getName(); return getRdnByNameFromDn(dn, COMMONNAME); } else { return null; } }
@Override public Principal getLocalPrincipal() { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { return cacheResponse.getLocalPrincipal(); } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getLocalPrincipal(); } return null; }
@Override public Principal getLocalPrincipal() { SecureCacheResponse cacheResponse = delegate.getSecureCacheResponse(); if (cacheResponse != null) { return cacheResponse.getLocalPrincipal(); } SSLSocket sslSocket = getSslSocket(); if (sslSocket != null) { return sslSocket.getSession().getLocalPrincipal(); } return null; }
@Override public Principal getLocalPrincipal() { SecureCacheResponse cacheResponse = delegate.getCacheResponse(); if (cacheResponse != null) { return cacheResponse.getLocalPrincipal(); } checkConnected(); return delegate.getSSLSocket().getSession().getLocalPrincipal(); }