Package org.gatein.pc.api.info

Examples of org.gatein.pc.api.info.SecurityInfo


                  }
               }
            }

            // security
            SecurityInfo secInfo = info.getSecurity();
            if (secInfo.containsTransportGuarantee(TransportGuarantee.INTEGRAL)
               || secInfo.containsTransportGuarantee(TransportGuarantee.CONFIDENTIAL))
            {
               desc.setOnlySecure(true);
            }

            // add the portlet description to the appropriate PortletDescriptionInfo
View Full Code Here


   }

   public SecurityInfo getSecurity()
   {
      // todo: get more details on the SecurityInfo contract...
      return new SecurityInfo()
      {
         public boolean containsTransportGuarantee(TransportGuarantee transportGuarantee)
         {
            return TransportGuarantee.NONE.equals(transportGuarantee);
         }
View Full Code Here

   }

   public SecurityInfo getSecurity()
   {
      // todo: get more details on the SecurityInfo contract...
      return new SecurityInfo()
      {
         public boolean containsTransportGuarantee(TransportGuarantee transportGuarantee)
         {
            return TransportGuarantee.NONE.equals(transportGuarantee);
         }
View Full Code Here

                  }
               }
            }

            // security
            SecurityInfo secInfo = info.getSecurity();
            if (secInfo.containsTransportGuarantee(TransportGuarantee.INTEGRAL)
               || secInfo.containsTransportGuarantee(TransportGuarantee.CONFIDENTIAL))
            {
               desc.setOnlySecure(true);
            }

            // add the portlet description to the appropriate PortletDescriptionInfo
View Full Code Here

   public PortletInvocationResponse invoke(PortletInvocation invocation) throws IllegalArgumentException, PortletInvokerException
   {
      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      PortletInfo containerInfo = container.getInfo();
      SecurityInfo securityInfo = containerInfo.getSecurity();
      SecurityContext securityContext = invocation.getSecurityContext();
      boolean invoke = true;
      if (!securityContext.isSecure())
      {
         if (securityInfo.containsTransportGuarantee(TransportGuarantee.CONFIDENTIAL))
         {
            invoke = false;
         }
         else if (securityInfo.containsTransportGuarantee(TransportGuarantee.INTEGRAL))
         {
            invoke = false;
         }
      }
View Full Code Here

TOP

Related Classes of org.gatein.pc.api.info.SecurityInfo

Copyright © 2018 www.massapicom. 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.