public long setUserAuthorizeAndPostAuthorizeRequest(AuthorizeRequest authzRequest, AuthorizeRequestPP postAuthzRequest) { UserAuthAttributes userAuthAttr = new UserAuthAttributes(authzRequest, postAuthzRequest); if (this.clientUserAuths == null ) this.initializeClientUserAuths(); return this.clientUserAuths.putUserAuth(userAuthAttr); } //this is backward compability only, if any race condition happens.
public boolean removeUserId(long userId, boolean keepAlive) { UserAuthAttributes uaa = uniqueIdVsUserAuth.get(userId); if (uaa != null && !(uaa.isDurable() && keepAlive)) { uaa = uniqueIdVsUserAuth.remove(userId); if (uaa != null) { cleanUserAuth(uaa); return true; } } return false; }
uaa.setDurable(); uaa.setDurable();
AuthorizeRequest authReq = userAuth.getAuthzRequest(); try { if (authReq != null) { AuthorizeRequestPP postAuthzReq = userAuth.getPostAuthzRequest(); if (postAuthzReq != null) { postAuthzReq.close();
.getUserAuthAttributes(cqNames[i]).getPostAuthzRequest(); if (logger.isDebugEnabled() && postAuthCallback == null) { logger.debug("CCP clientCq post callback is null"); .getPostAuthzRequest(); if (postAuthCallback == null && logger.isDebugEnabled()) { logger.debug("CCP clientCq post callback is null");
public void removeUserAuthAttributesForCq(String cqName, boolean isDurable) { UserAuthAttributes uaa = this.cqNameVsUserAuth.remove(cqName); if(uaa != null && isDurable) uaa.unsetDurable(); }
"User authorization attributes not found."); AuthorizeRequest authReq = uaa.getAuthzRequest(); if (logger.isDebugEnabled()) { logger.debug("getAuthzRequest() authrequest: {}", ((authReq == null) ? "NULL (only authentication is required)" : "not null"));
AuthorizeRequest authReq = userAuth.getAuthzRequest(); try { if (authReq != null) { AuthorizeRequestPP postAuthzReq = userAuth.getPostAuthzRequest(); if (postAuthzReq != null) { postAuthzReq.close();
AuthorizeRequestPP postAuthReq = uaa.getPostAuthzRequest();
public void removeUserAuthAttributesForCq(String cqName, boolean isDurable) { UserAuthAttributes uaa = this.cqNameVsUserAuth.remove(cqName); if(uaa != null && isDurable) uaa.unsetDurable(); }
"User authorization attributes not found."); AuthorizeRequest authReq = uaa.getAuthzRequest(); if (this.logger.fineEnabled()) { this.logger.fine("getAuthzRequest() authrequest: "
public boolean removeUserId(long userId, boolean keepAlive) { UserAuthAttributes uaa = uniqueIdVsUserAuth.get(userId); if (uaa != null && !(uaa.isDurable() && keepAlive)) { uaa = uniqueIdVsUserAuth.remove(userId); if (uaa != null) { cleanUserAuth(uaa); return true; } } return false; }
AuthorizeRequestPP postAuthReq = uaa.getPostAuthzRequest();
public long setUserAuthorizeAndPostAuthorizeRequest(AuthorizeRequest authzRequest, AuthorizeRequestPP postAuthzRequest) { UserAuthAttributes userAuthAttr = new UserAuthAttributes(authzRequest, postAuthzRequest); if (this.clientUserAuths == null ) this.initializeClientUserAuths(); return this.clientUserAuths.putUserAuth(userAuthAttr); } //this is backward compability only, if any race condition happens.
uaa.setDurable(); uaa.setDurable();
public void cleanup(boolean fromCacheClientProxy) { for (UserAuthAttributes userAuth : this.uniqueIdVsUserAuth.values()) { //isDurable is checked for multiuser in CQ if (!fromCacheClientProxy && !userAuth.isDurable()) {//from serverConnection class cleanUserAuth(userAuth); } else if (fromCacheClientProxy && userAuth.isDurable()) {//from cacheclientProxy class cleanUserAuth(userAuth); } } }
.getUserAuthAttributes(cqNames[i]).getPostAuthzRequest(); if (_logger.fineEnabled() && postAuthCallback == null) { _logger.fine("CCP clientCq post callback is null"); .getPostAuthzRequest(); if (_logger.fineEnabled() && postAuthCallback == null) { _logger.fine("CCP clientCq post callback is null");
public void cleanup(boolean fromCacheClientProxy) { for (UserAuthAttributes userAuth : this.uniqueIdVsUserAuth.values()) { //isDurable is checked for multiuser in CQ if (!fromCacheClientProxy && !userAuth.isDurable()) {//from serverConnection class cleanUserAuth(userAuth); } else if (fromCacheClientProxy && userAuth.isDurable()) {//from cacheclientProxy class cleanUserAuth(userAuth); } } }