public ServerAuthContext getServerAuthContext(MessageInfo info, Subject s) throws AuthException { ServerAuthConfig c = (ServerAuthConfig)getAuthConfig(true); if (c != null) { return c.getAuthContext(c.getAuthContextID(info),s,map); } return null; }
@Override public void refresh() { ServerAuthConfig serverAuthConfig = this.serverAuthConfig; if (serverAuthConfig != null) { serverAuthConfig.refresh(); } } }
ServerAuthContext sctx = serverConfig.getAuthContext(contextID, new Subject(), new HashMap()); if(clientSubject == null)
serverContextProperties.put(javax.xml.ws.Endpoint.class, endpointImpl); String authContextID = endpointImpl.getBeanName(); ServerAuthContext sctx = serverConfig.getAuthContext(authContextID, null, serverContextProperties); serverAuthenticator = new JaspiServerAuthenticator(sctx); endpointImpl.getInInterceptors().add(new JaspiSeverInInterceptor(serverAuthenticator));
public ServerAuthContext getServerAuthContext(MessageInfo info, Subject s) throws AuthException { ServerAuthConfig c = (ServerAuthConfig)getAuthConfig(true); if (c != null) { return c.getAuthContext(c.getAuthContextID(info),s,map); } return null; }
serverContextProperties.put(Bus.class, bus); String authContextID = dep.getSimpleName(); ServerAuthContext sctx = serverConfig.getAuthContext(authContextID, null, serverContextProperties); JaspiServerAuthenticator serverAuthenticator = new JaspiServerAuthenticator(sctx); bus.getInInterceptors().add(new JaspiSeverInInterceptor(serverAuthenticator));
@Override public void refresh() { ServerAuthConfig serverAuthConfig = this.serverAuthConfig; if (serverAuthConfig != null) { serverAuthConfig.refresh(); } } }
public boolean secureResponse(JaspiMessageInfo messageInfo, Authentication validatedUser) throws ServerAuthException { try { String authContextId = _authConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = _authConfig.getAuthContext(authContextId, _serviceSubject, _authProperties); // TODO // authContext.cleanSubject(messageInfo,validatedUser.getUserIdentity().getSubject()); AuthStatus status = authContext.secureResponse(messageInfo, _serviceSubject); return (AuthStatus.SEND_SUCCESS.equals(status)); } catch (AuthException e) { throw new ServerAuthException(e); } }
public boolean secureResponse(JaspiMessageInfo messageInfo, Authentication validatedUser) throws ServerAuthException { try { String authContextId = _authConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = _authConfig.getAuthContext(authContextId, _serviceSubject, _authProperties); // TODO // authContext.cleanSubject(messageInfo,validatedUser.getUserIdentity().getSubject()); AuthStatus status = authContext.secureResponse(messageInfo, _serviceSubject); return (AuthStatus.SEND_SUCCESS.equals(status)); } catch (AuthException e) { throw new ServerAuthException(e); } }
public boolean secureResponse(JaspiMessageInfo messageInfo, Authentication validatedUser) throws ServerAuthException { try { String authContextId = _authConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = _authConfig.getAuthContext(authContextId, _serviceSubject, _authProperties); // TODO // authContext.cleanSubject(messageInfo,validatedUser.getUserIdentity().getSubject()); AuthStatus status = authContext.secureResponse(messageInfo, _serviceSubject); return (AuthStatus.SEND_SUCCESS.equals(status)); } catch (AuthException e) { throw new ServerAuthException(e); } }
public boolean secureResponse(Request request, Response response, AuthResult authResult) throws ServerAuthException { JaspicMessageInfo messageInfo = (JaspicMessageInfo)request.getNote(MESSAGE_INFO_KEY); if (messageInfo==null) throw new NullPointerException("MeesageInfo from request missing: " + request); try { String authContextId = serverAuthConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = serverAuthConfig.getAuthContext(authContextId,serviceSubject,authProperties); // TODO authContext.cleanSubject(messageInfo,validatedUser.getUserIdentity().getSubject()); AuthStatus status = authContext.secureResponse(messageInfo,serviceSubject); return (AuthStatus.SEND_SUCCESS.equals(status)); } catch (AuthException e) { throw new ServerAuthException(e); } }
String authContextId = _authConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = _authConfig.getAuthContext(authContextId, _serviceSubject, _authProperties); Subject clientSubject = new Subject();
String authContextId = _authConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = _authConfig.getAuthContext(authContextId, _serviceSubject, _authProperties); Subject clientSubject = new Subject();
String authContextId = _authConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = _authConfig.getAuthContext(authContextId, _serviceSubject, _authProperties); Subject clientSubject = new Subject();
return false; String authContextId = serverConfig.getAuthContextID(messageInfo); Properties properties = new Properties(); properties.setProperty("security-domain", super.getSecurityDomain()); try sctx = serverConfig.getAuthContext(authContextId, new Subject(), properties);
private JaspicState getJaspicState(AuthConfigProvider jaspicProvider, Request request, Response response, boolean authMandatory) throws IOException { JaspicState jaspicState = new JaspicState(); jaspicState.messageInfo = new MessageInfoImpl(request.getRequest(), response.getResponse(), authMandatory); try { CallbackHandler callbackHandler = createCallbackHandler(); ServerAuthConfig serverAuthConfig = jaspicProvider.getServerAuthConfig( "HttpServlet", jaspicAppContextID, callbackHandler); String authContextID = serverAuthConfig.getAuthContextID(jaspicState.messageInfo); jaspicState.serverAuthContext = serverAuthConfig.getAuthContext(authContextID, null, null); } catch (AuthException e) { log.warn(sm.getString("authenticator.jaspicServerAuthContextFail"), e); response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); return null; } return jaspicState; }
String authContextId = serverConfig.getAuthContextID(messageInfo); Properties properties = new Properties(); properties.setProperty("security-domain", super.getSecurityDomain()); try sctx = serverConfig.getAuthContext(authContextId, serviceSubject, properties);
MessageInfo messageInfo = new JaspicMessageInfo(request, response, isAuthMandatory); request.setNote(MESSAGE_INFO_KEY, messageInfo); String authContextId = serverAuthConfig.getAuthContextID(messageInfo); ServerAuthContext authContext = serverAuthConfig.getAuthContext(authContextId, serviceSubject, authProperties); Subject clientSubject = new Subject();
String authContextId = serverConfig.getAuthContextID(messageInfo); Properties properties = new Properties(); properties.setProperty("security-domain", super.getSecurityDomain()); try sctx = serverConfig.getAuthContext(authContextId, serviceSubject, properties);
private JaspicState getJaspicState(AuthConfigProvider jaspicProvider, Request request, Response response, boolean authMandatory) throws IOException { JaspicState jaspicState = new JaspicState(); jaspicState.messageInfo = new MessageInfoImpl(request.getRequest(), response.getResponse(), authMandatory); try { CallbackHandler callbackHandler = createCallbackHandler(); ServerAuthConfig serverAuthConfig = jaspicProvider.getServerAuthConfig( "HttpServlet", jaspicAppContextID, callbackHandler); String authContextID = serverAuthConfig.getAuthContextID(jaspicState.messageInfo); jaspicState.serverAuthContext = serverAuthConfig.getAuthContext(authContextID, null, null); } catch (AuthException e) { log.warn(sm.getString("authenticator.jaspicServerAuthContextFail"), e); response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); return null; } return jaspicState; }