@Override public void init(Properties config) throws ServletException { super.init(config); // Figure out the HTTP authentication schemes configured. String schemesProperty = Preconditions.checkNotNull(config .getProperty(MultiSchemeAuthenticationHandler.SCHEMES_PROPERTY)); // Figure out the HTTP authentication schemes configured for delegation // tokens. String delegationAuthSchemesProp = Preconditions.checkNotNull(config .getProperty(DELEGATION_TOKEN_SCHEMES_PROPERTY)); Set<String> authSchemes = new HashSet<>(); for (String scheme : STR_SPLITTER.split(schemesProperty)) { authSchemes.add(AuthenticationHandlerUtil.checkAuthScheme(scheme)); } delegationAuthSchemes = new HashSet<>(); for (String scheme : STR_SPLITTER.split(delegationAuthSchemesProp)) { delegationAuthSchemes.add(AuthenticationHandlerUtil .checkAuthScheme(scheme)); } Preconditions.checkArgument(authSchemes.containsAll(delegationAuthSchemes)); }
@Override public void init(Properties config) throws ServletException { super.init(config); // Figure out the HTTP authentication schemes configured. String schemesProperty = Preconditions.checkNotNull(config .getProperty(MultiSchemeAuthenticationHandler.SCHEMES_PROPERTY)); // Figure out the HTTP authentication schemes configured for delegation // tokens. String delegationAuthSchemesProp = Preconditions.checkNotNull(config .getProperty(DELEGATION_TOKEN_SCHEMES_PROPERTY)); Set<String> authSchemes = new HashSet<>(); for (String scheme : STR_SPLITTER.split(schemesProperty)) { authSchemes.add(AuthenticationHandlerUtil.checkAuthScheme(scheme)); } delegationAuthSchemes = new HashSet<>(); for (String scheme : STR_SPLITTER.split(delegationAuthSchemesProp)) { delegationAuthSchemes.add(AuthenticationHandlerUtil .checkAuthScheme(scheme)); } Preconditions.checkArgument(authSchemes.containsAll(delegationAuthSchemes)); }
"%s system property is not specified.", SCHEMES_PROPERTY); for (String scheme : STR_SPLITTER.split(schemesProperty)) { scheme = AuthenticationHandlerUtil.checkAuthScheme(scheme); if (schemeToAuthHandlerMapping.containsKey(scheme)) { throw new IllegalArgumentException("Handler is already specified for "
"%s system property is not specified.", SCHEMES_PROPERTY); for (String scheme : STR_SPLITTER.split(schemesProperty)) { scheme = AuthenticationHandlerUtil.checkAuthScheme(scheme); if (schemeToAuthHandlerMapping.containsKey(scheme)) { throw new IllegalArgumentException("Handler is already specified for "
"%s system property is not specified.", SCHEMES_PROPERTY); for (String scheme : STR_SPLITTER.split(schemesProperty)) { scheme = AuthenticationHandlerUtil.checkAuthScheme(scheme); if (schemeToAuthHandlerMapping.containsKey(scheme)) { throw new IllegalArgumentException("Handler is already specified for "