/** * Check for the validity of the issuer * * @param issuer :who makes the claims inside the Query * @return whether the issuer is valid */ private boolean validateIssuer(Issuer issuer) { boolean isValidated = false; if (issuer.getValue().equals("https://identity.carbon.wso2.org") && issuer.getSPProvidedID().equals("SPPProvierId")) { isValidated = true; } return isValidated; }
/** * Check for the validity of the issuer * * @param issuer :who makes the claims inside the Query * @return whether the issuer is valid */ private boolean validateIssuer(Issuer issuer) { boolean isValidated = false; if (issuer.getValue().equals("https://identity.carbon.wso2.org") && issuer.getSPProvidedID().equals("SPPProvierId")) { isValidated = true; } return isValidated; }
/** * Check for the validity of the issuer * * @param issuer :who makes the claims inside the Query * @return whether the issuer is valid */ private boolean validateIssuer(Issuer issuer) { boolean isValidated = false; if (ISSUER_URL.equals(issuer.getValue()) && "SPPProvider".equals(issuer.getSPProvidedID())) { isValidated = true; } return isValidated; }
/** * Check for the validity of the issuer * * @param issuer :who makes the claims inside the Query * @return whether the issuer is valid */ private boolean validateIssuer(Issuer issuer) { boolean isValidated = false; if (ISSUER_URL.equals(issuer.getValue()) && "SPPProvider".equals(issuer.getSPProvidedID())) { isValidated = true; } return isValidated; }
/** * Check for the validity of the issuer * * @param issuer :who makes the claims inside the Query * @return whether the issuer is valid */ private boolean validateIssuer(Issuer issuer) { boolean isValidated = false; if (issuer.getValue().equals("https://identity.carbon.wso2.org") && issuer.getSPProvidedID().equals("SPPProvierId")) { isValidated = true; } return isValidated; }
if (issuer.getValue() == null && issuer.getSPProvidedID() == null) { validatedItems.add(new ValidatedItemDTO( SAMLValidatorConstants.ValidationType.VAL_ISSUER, throw IdentityException.error(SAMLValidatorConstants.ValidationMessage.EXIT_WITH_ERROR); } else { issuerStr = issuer.getValue() != null ? issuer.getValue() : issuer.getSPProvidedID(); validatedItems.add(new ValidatedItemDTO( SAMLValidatorConstants.ValidationType.VAL_ISSUER,
if (issuer.getValue() == null && issuer.getSPProvidedID() == null) { validatedItems.add(new ValidatedItemDTO( SAMLValidatorConstants.ValidationType.VAL_ISSUER, throw IdentityException.error(SAMLValidatorConstants.ValidationMessage.EXIT_WITH_ERROR); } else { issuerStr = issuer.getValue() != null ? issuer.getValue() : issuer.getSPProvidedID(); validatedItems.add(new ValidatedItemDTO( SAMLValidatorConstants.ValidationType.VAL_ISSUER,
Issuer issuer = authnRequest.getIssuer(); if (issuer == null || (StringUtils.isBlank(issuer.getValue()) && StringUtils.isBlank(issuer.getSPProvidedID()))) { InvalidSPEntityIdException ex = new InvalidSPEntityIdException(StatusCode.REQUESTER_URI, "Cannot find issuer."); if (StringUtils.isNotBlank(issuer.getValue())) { authenticationContext.setServiceProviderId(issuer.getValue()); } else if (StringUtils.isNotBlank(issuer.getSPProvidedID())) { authenticationContext.setServiceProviderId(issuer.getValue());
} else if (StringUtils.isNotBlank(issuer.getSPProvidedID())) { messageContext.setIssuer(issuer.getSPProvidedID()); } else { if (log.isDebugEnabled()) {
} else if (StringUtils.isNotBlank(issuer.getSPProvidedID())) { validationResponse.setIssuer(issuer.getSPProvidedID()); } else { validationResponse.setValid(false);