Examples of TrustType


Examples of org.jboss.identity.federation.core.config.TrustType

   protected void isTrusted(String issuer) throws IssuerNotTrustedException
   {
      try
      {
         String issuerDomain = ValveUtil.getDomain(issuer);
         TrustType idpTrust =  idpConfiguration.getTrust();
         if(idpTrust != null)
         {
            String domainsTrusted = idpTrust.getDomains();
            if(domainsTrusted.indexOf(issuerDomain) < 0)
               throw new IssuerNotTrustedException(issuer);
         }
      }
      catch (Exception e)
View Full Code Here

Examples of org.jboss.identity.federation.core.config.TrustType

   protected void isTrusted(String issuer) throws IssuerNotTrustedException
   {
      try
      {
         String issuerDomain = ValveUtil.getDomain(issuer);
         TrustType spTrust =  spConfiguration.getTrust();
         if(spTrust != null)
         {
            String domainsTrusted = spTrust.getDomains();
            if(trace)
               log.trace("Domains that SP trusts="+domainsTrusted + " and issuer domain="+issuerDomain);
            if(domainsTrusted.indexOf(issuerDomain) < 0)
            {
               //Let us do string parts checking
View Full Code Here

Examples of org.jboss.identity.federation.core.config.TrustType

   protected void isTrusted(String issuer) throws IssuerNotTrustedException
   {
      try
      {
         String issuerDomain = ValveUtil.getDomain(issuer);
         TrustType idpTrust =  spConfiguration.getTrust();
         if(idpTrust != null)
         {
            String domainsTrusted = idpTrust.getDomains();
            if(domainsTrusted.indexOf(issuerDomain) < 0)
               throw new IssuerNotTrustedException(issuer);
         }
      }
      catch (Exception e)
View Full Code Here

Examples of org.jboss.identity.federation.web.config.TrustType

   {
      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)
View Full Code Here

Examples of org.jboss.identity.federation.web.config.TrustType

      if(idpConfiguration == null)
         throw new IllegalStateException("IDP Configuration is null");
      try
      {
         String issuerDomain = getDomain(issuer);
         TrustType idpTrust =  idpConfiguration.getTrust();
         if(idpTrust != null)
         {
            String domainsTrusted = idpTrust.getDomains();
            if(trace)
               log.trace("Domains that IDP trusts="+domainsTrusted + " and issuer domain="+issuerDomain);
            if(domainsTrusted.indexOf(issuerDomain) < 0)
            {
               //Let us do string parts checking
View Full Code Here

Examples of org.openxri.resolve.TrustType

        }

        String content = null;
        try
        {
          XRDS xrds = moResolver.resolveAuthToXRDS(oXRI, new TrustType(), true);
          content = xrds.toString();
        }
        catch (Exception e)
        {
          if (e instanceof PartialResolutionException) {
View Full Code Here

Examples of org.openxri.resolve.TrustType

            return;
        }


      // defaults if resolution media type is null
      TrustType trustType = new TrustType();
      boolean refs = true;
      boolean sep = true;

      String tempStr = null;
      if(resMediaType != null) {
        tempStr = resMediaType.getParam(MimeType.PARAM_REFS);
        if(tempStr != null && tempStr.equals("false"))
          refs = false;
       
        tempStr = resMediaType.getParam(MimeType.PARAM_SEP);
        if(tempStr != null && tempStr.equals("false"))
          sep = false;
       
        tempStr = resMediaType.getParam(MimeType.PARAM_TRUST);
        if (tempStr != null) {
          try {
            trustType.setType(tempStr);
          }
          catch (IllegalTrustTypeException e) {
            sendResponse(response, HTTP_ERROR_CONTENT_TYPE, "INVALID_RESOLUTION_MEDAIA_TYPE(code=212): " + resMediaType, null);
            return;
          }
View Full Code Here

Examples of org.openxri.resolve.TrustType

      return;
    }


    // defaults if resolution media type is null
    TrustType trustType = new TrustType();
    boolean refs = true;
    boolean sep = true;

    String tempStr = null;
    if(resMediaType != null) {
      tempStr = resMediaType.getParam(MimeType.PARAM_REFS);
      if(tempStr != null && tempStr.equals("false"))
        refs = false;

      tempStr = resMediaType.getParam(MimeType.PARAM_SEP);
      if(tempStr != null && tempStr.equals("false"))
        sep = false;

      tempStr = resMediaType.getParam(MimeType.PARAM_TRUST);
      if (tempStr != null) {
        try {
          trustType.setType(tempStr);
        }
        catch (IllegalTrustTypeException e) {
          sendResponse(response, HTTP_ERROR_CONTENT_TYPE, "INVALID_RESOLUTION_MEDAIA_TYPE(code=212): " + resMediaType, null);
          return;
        }
View Full Code Here

Examples of org.openxri.resolve.TrustType

        // try to resolve a invalid xri
        //
        try
        {
            String sXRI = "xri!foo";
            oResolver.resolveAuthToXRDS(sXRI, new TrustType(), true);
            assertTrue("Did not get expected PartialResolutionException", false);
        }
        catch (XRIParseException E)
        {
            // ok
View Full Code Here

Examples of org.openxri.resolve.TrustType

        // try to resolve a xri without setting up global authority
        //
        try
        {
            String sXRI = "xri://@foo";
            oResolver.resolveAuthToXRDS(new XRI(sXRI), new TrustType(), true);
            assertTrue(
                "Did not get expected PartialResolutionException", false);
        }
        catch (PartialResolutionException E)
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.