javax.security.auth.message.config.ClientAuthConfig Java Examples

The following examples show how to use javax.security.auth.message.config.ClientAuthConfig. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JBossAuthConfigProvider.java    From lams with GNU General Public License v2.0 6 votes vote down vote up
/**
 * @see AuthConfigProvider#getClientAuthConfig(String, String, CallbackHandler)
 */
public ClientAuthConfig getClientAuthConfig(String layer, String appContext, 
      CallbackHandler handler) throws AuthException
{ 
   //TODO: Throw SecurityException if user has no perms
   if(handler == null)
   {
      try
      {
          handler = this.instantiateCallbackHandler();  
      } 
      catch(Exception e)
      {
         throw new AuthException(e.getLocalizedMessage());
      }
   }
   
      
   return new JBossClientAuthConfig(layer,appContext, handler, contextProperties);
}
 
Example #2
Source File: AuthenticatorBase.java    From Tomcat8-Source-Read with MIT License 4 votes vote down vote up
@Override
public ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler handler)
        throws AuthException {
    return null;
}
 
Example #3
Source File: CustomAuthConfigProvider.java    From eplmp with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler callbackHandler) throws AuthException {
    return null;
}
 
Example #4
Source File: TomEESecurityAuthConfigProvider.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
public ClientAuthConfig getClientAuthConfig(final String layer, final String appContext,
                                            final CallbackHandler handler)
        throws AuthException, SecurityException {
    return null;
}
 
Example #5
Source File: TheAuthConfigProvider.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
public ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler handler) throws AuthException, SecurityException {
    return null;
}
 
Example #6
Source File: SimpleAuthConfigProvider.java    From Tomcat8-Source-Read with MIT License 2 votes vote down vote up
/**
 * {@inheritDoc}
 * <p>
 * This implementation does not support client-side authentication and
 * therefore always returns {@code null}.
 */
@Override
public ClientAuthConfig getClientAuthConfig(String layer, String appContext,
        CallbackHandler handler) throws AuthException {
    return null;
}