public JASPICSecurityContext(final HttpServerExchange exchange, final AuthenticationMode mode, final IdentityManager identityManager, final String securityDomain) { super (exchange, mode, identityManager); this.exchange = exchange; this.manager = new JASPIServerAuthenticationManager(securityDomain, new JBossCallbackHandler()); }
char[] password = getPassword(); if (password != null) pc.setPassword(password);
/** Handles SecurityAssociationCallback, ObjectCallback, NameCallback and PasswordCallback types. A NameCallback name property is set to the Prinicpal.getName() value. A PasswordCallback password property is set to the getPassword() value. The preferred SecurityAssociationCallback has its principal and credential properties set to the instance principal and credential. An ObjectCallback has its credential set to the credential value. @see #getPassword() @exception UnsupportedCallbackException - thrown if any callback of type other than SecurityAssociationCallback, ObjectCallback, NameCallback or PasswordCallback are seen. */ public void handle(Callback[] callbacks) throws UnsupportedCallbackException, IOException { for (int i = 0; i < callbacks.length; i++) { Callback callback = callbacks[i]; this.handleCallBack( callback ); } }
char[] password = getPassword(); if (password != null) pc.setPassword(password);
else super.handleCallBack(callback);
private JASPIServerAuthenticationManager createJASPIAuthenticationManager() { return new JASPIServerAuthenticationManager(this.securityDomain, new JBossCallbackHandler()); }
/** Creates a default JaasSecurityManager for with a securityDomain name of 'other'. */ public JaasSecurityManagerBase() { this("other", new JBossCallbackHandler()); } /** Creates a JaasSecurityManager for with a securityDomain
/** Creates a default JaasSecurityManager for with a securityDomain name of 'other'. */ public SynchronizedJaasSecurityManager() { this("other", new JBossCallbackHandler()); }
/** Creates a default JaasSecurityManager for with a securityDomain name of 'other'. */ public JaasSecurityManagerBase() { this(SecurityConstants.DEFAULT_APPLICATION_POLICY, new JBossCallbackHandler()); } /** Creates a JaasSecurityManager for with a securityDomain
public JASPICSecurityContext(final HttpServerExchange exchange, final AuthenticationMode mode, final IdentityManager identityManager, final String securityDomain) { super (exchange, mode, identityManager); this.exchange = exchange; this.manager = new JASPIServerAuthenticationManager(securityDomain, new JBossCallbackHandler()); }
public JASPICSecurityContext(final HttpServerExchange exchange, final AuthenticationMode mode, final IdentityManager identityManager, final String securityDomain) { super (exchange, mode, identityManager); this.exchange = exchange; this.manager = new JASPIServerAuthenticationManager(securityDomain, new JBossCallbackHandler()); }
private JASPIServerAuthenticationManager createJASPIAuthenticationManager() { return new JASPIServerAuthenticationManager(this.securityDomain, new JBossCallbackHandler()); }
private JASPIServerAuthenticationManager createJASPIAuthenticationManager() { return new JASPIServerAuthenticationManager(this.securityDomain, new JBossCallbackHandler()); }
public JaspiSubjectCreatingInitInterceptor(String securityDomain) { super(Phase.PRE_PROTOCOL); this.addBefore("org.jboss.wsf.stack.cxf.security.authentication.JaspiSubjectCreatingInterceptor"); authenticationManger = new JBossAuthenticationManager(securityDomain, new JBossCallbackHandler()); }
public JBossSecurityContext(String securityDomain) { this.securityDomain = securityDomain; if(this.callbackHandler == null) this.callbackHandler = new JBossCallbackHandler(); iSecurityManagement = new DefaultSecurityManagement(this.callbackHandler); util = getUtil(); //Create a null subjectinfo as default util.createSubjectInfo(null, null, null); }
@Override protected boolean validate(Subject clientSubject, MessageInfo messageInfo) throws AuthException { callbackHandler = new JBossCallbackHandler(getUserName(messageInfo), getCredential(messageInfo)); return super.validate(clientSubject, messageInfo); }
@Override protected boolean validate(Subject clientSubject, MessageInfo messageInfo) throws AuthException { callbackHandler = new JBossCallbackHandler(getUserName(messageInfo), getCredential(messageInfo)); return super.validate(clientSubject, messageInfo); }
public JBossSecurityContext(String securityDomain) { this.securityDomain = securityDomain; if(this.callbackHandler == null) this.callbackHandler = new JBossCallbackHandler(); iSecurityManagement = new DefaultSecurityManagement(this.callbackHandler); util = getUtil(); //Create a null subjectinfo as default util.createSubjectInfo(null, null, null); }
securityManagement = new DefaultSecurityManagement(new JBossCallbackHandler());
provider = factory.getConfigProvider(JBossWSAuthConstants.SOAP_LAYER, appId, null); JBossCallbackHandler callbackHandler = new JBossCallbackHandler(); JaspiServerAuthenticator serverAuthenticator = null; try