private long setUserAuthorizeAndPostAuthorizeRequest(AuthorizeRequest authzRequest, AuthorizeRequestPP postAuthzRequest) throws IOException { UserAuthAttributes userAuthAttr = new UserAuthAttributes(authzRequest, postAuthzRequest); if (this.clientUserAuths == null) { this.initializeClientUserAuths(); } try { return this.clientUserAuths.putUserAuth(userAuthAttr); } catch (NullPointerException exception) { if (this.isTerminated()) { // Bug #52023. throw new IOException("Server connection is terminated."); } throw exception; } }
uaa = this.clientUserAuths.getUserAuthAttributes(uniqueId); } catch (NullPointerException npe) { if (this.isTerminated()) {
public AuthorizeRequestPP getPostAuthzRequest() throws AuthenticationRequiredException, IOException { if (!AcceptorImpl.isAuthenticationRequired()) { return null; } if (securityService.isIntegratedSecurity()) { return null; } // look client version and return authzrequest // for backward client it will be store in member variable userAuthId // for other look "requestMessage" here and get unique-id from this to get the authzrequest long uniqueId = getUniqueId(); UserAuthAttributes uaa = null; try { uaa = this.clientUserAuths.getUserAuthAttributes(uniqueId); } catch (NullPointerException npe) { if (this.isTerminated()) { // Bug #52023. throw new IOException("Server connection is terminated."); } else { logger.debug("Unexpected exception {}", npe); } } if (uaa == null) { throw new AuthenticationRequiredException("User authorization attributes not found."); } return uaa.getPostAuthzRequest(); }
if (isTerminated() || !result) { return false;
try { this.stats.decThreadQueueSize(); if (!isTerminated()) { getAcceptor().setTLCommBuffer(); doOneMessage();