@Override public IssuerNotTrustedException samlIssuerNotTrustedException(Throwable t) { return new IssuerNotTrustedException(t); }
@Override public IssuerNotTrustedException samlIssuerNotTrustedError(String issuer) { return new IssuerNotTrustedException("Issuer not Trusted by the IDP: " + issuer); }
protected void isTrusted(String issuer) throws IssuerNotTrustedException { try { URL url = new URL(issuer); String issuerDomain = url.getHost(); TrustType idpTrust = spConfiguration.getTrust(); if (idpTrust != null) { String domainsTrusted = idpTrust.getDomains(); if (domainsTrusted.indexOf(issuerDomain) < 0) throw new IssuerNotTrustedException(issuer); } } catch (Exception e) { throw new IssuerNotTrustedException(e.getLocalizedMessage(), e); } }
protected void isTrusted(String issuer) throws IssuerNotTrustedException { try { URL url = new URL(issuer); String issuerDomain = url.getHost(); TrustType idpTrust = spConfiguration.getTrust(); if (idpTrust != null) { String domainsTrusted = idpTrust.getDomains(); if (domainsTrusted.indexOf(issuerDomain) < 0) throw new IssuerNotTrustedException(issuer); } } catch (Exception e) { throw new IssuerNotTrustedException(e.getLocalizedMessage(), e); } }
protected void isTrusted(String issuer) throws IssuerNotTrustedException { try { URL url = new URL(issuer); String issuerDomain = url.getHost(); TrustType idpTrust = spConfiguration.getTrust(); if (idpTrust != null) { String domainsTrusted = idpTrust.getDomains(); if (domainsTrusted.indexOf(issuerDomain) < 0) throw new IssuerNotTrustedException(issuer); } } catch (Exception e) { throw new IssuerNotTrustedException(e.getLocalizedMessage(), e); } }
throw new IssuerNotTrustedException(issuer); throw new ProcessingException(new IssuerNotTrustedException(e.getLocalizedMessage(), e));
throw new IssuerNotTrustedException(issuer); throw new ProcessingException(new IssuerNotTrustedException(e.getLocalizedMessage(), e));
throw new IssuerNotTrustedException(issuer); throw new ProcessingException(new IssuerNotTrustedException(e.getLocalizedMessage(), e));
throw new IssuerNotTrustedException(issuer); throw new ProcessingException(new IssuerNotTrustedException(e.getLocalizedMessage(), e));
throw new IssuerNotTrustedException(issuer); throw new IssuerNotTrustedException(e.getLocalizedMessage(), e);
throw new IssuerNotTrustedException(issuer); throw new IssuerNotTrustedException(e.getLocalizedMessage(), e);
throw new IssuerNotTrustedException(ErrorCodes.NULL_VALUE + "IssuerID missing"); issuerURL = new URL(issuerID); } catch (MalformedURLException e1) { throw new IssuerNotTrustedException(e1);
throw new IssuerNotTrustedException(ErrorCodes.NULL_VALUE + "Issue missing"); throw new IssuerNotTrustedException(e1);
throw new IssuerNotTrustedException(ErrorCodes.NULL_VALUE + "Issue missing"); throw new IssuerNotTrustedException(e1);
throw new IssuerNotTrustedException(ErrorCodes.NULL_VALUE + "IssuerID missing"); throw new IssuerNotTrustedException(e1);
throw new IssuerNotTrustedException(ErrorCodes.NULL_VALUE + "IssuerID missing"); throw new IssuerNotTrustedException(e1);