public String getAuthorization(AuthorizationPolicy authPolicy, URI currentURI, Message message, String fullHeader) { if (authPolicy.getAuthorizationType() != null && authPolicy.getAuthorization() != null) { return authPolicy.getAuthorizationType() + " " + authPolicy.getAuthorization(); } return null; }
String contextName = authPolicy.getAuthorization(); if (contextName == null) { contextName = "";
private HttpAuthSupplier createAuthSupplier(AuthorizationPolicy authzPolicy) { String authType = authzPolicy.getAuthorizationType(); if (HttpAuthHeader.AUTH_TYPE_NEGOTIATE.equals(authType)) { return new SpnegoAuthSupplier(); } else if (HttpAuthHeader.AUTH_TYPE_DIGEST.equals(authType)) { return new DigestAuthSupplier(); } else if (authType != null && !HttpAuthHeader.AUTH_TYPE_BASIC.equals(authType) && authzPolicy.getAuthorization() != null) { return new CustomAuthSupplier(); } else { return new DefaultBasicAuthSupplier(); } }
String contextName = authPolicy.getAuthorization(); if (contextName == null) { contextName = "";
public String getAuthorization(AuthorizationPolicy authPolicy, URI currentURI, Message message, String fullHeader) { if (authPolicy.getAuthorizationType() != null && authPolicy.getAuthorization() != null) { return authPolicy.getAuthorizationType() + " " + authPolicy.getAuthorization(); } return null; }
JsonNode node = null; try { node = mapper.readTree(policy.getAuthorization()); } catch (IOException e) { RestServiceUtil.createSecurityQuestionAbortMessage(requestCtx, "{" + USER_CHALLENGE + "}");
private HttpAuthSupplier createAuthSupplier(AuthorizationPolicy authzPolicy) { String authType = authzPolicy.getAuthorizationType(); if (HttpAuthHeader.AUTH_TYPE_NEGOTIATE.equals(authType)) { return new SpnegoAuthSupplier(); } else if (HttpAuthHeader.AUTH_TYPE_DIGEST.equals(authType)) { return new DigestAuthSupplier(); } else if (authType != null && !HttpAuthHeader.AUTH_TYPE_BASIC.equals(authType) && authzPolicy.getAuthorization() != null) { return new CustomAuthSupplier(); } else { return new DefaultBasicAuthSupplier(); } }
String contextName = authPolicy.getAuthorization(); if (contextName == null) { contextName = "";