public ClientAuthConfig getClientAuthConfig()

in geronimo-jaspi/src/main/java/org/apache/geronimo/components/jaspi/impl/ConfigProviderImpl.java [87:109]


    public ClientAuthConfig getClientAuthConfig(String layer, String appContext, CallbackHandler handler) throws AuthException, SecurityException {
        if (layer == null) {
            throw new NullPointerException("messageLayer");
        }
        if (appContext == null) {
            throw new NullPointerException("appContext");
        }
        ClientAuthConfigType ctx = clientConfigTypeMap.get(ConfigProviderType.getRegistrationKey(layer, appContext));
        if (ctx == null) {
            ctx = clientConfigTypeMap.get(ConfigProviderType.getRegistrationKey(null, appContext));
        }
        if (ctx == null) {
            ctx = clientConfigTypeMap.get(ConfigProviderType.getRegistrationKey(layer, null));
        }
        if (ctx == null) {
            ctx = clientConfigTypeMap.get(ConfigProviderType.getRegistrationKey(null, null));
        }
        if (ctx != null) {

            return newClientAuthConfig(ctx, layer, appContext, handler);
        }
        throw new AuthException("No suitable ClientAuthConfig");
    }