Examples of principal()


Examples of org.apache.tapestry5.annotations.Parameter.principal()

                // Process the principal annotations on the first pass, handle the others
                // on the second pass.

                boolean process = pass == 0
                                  ? annotation.principal()
                                  : true;

                if (process)
                {
                    convertFieldIntoParameter(fieldName, annotation, transformation, model);
View Full Code Here

Examples of org.apache.tapestry5.annotations.Parameter.principal()

        {
            public boolean accept(TransformField field)
            {
                Parameter annotation = field.getAnnotation(Parameter.class);

                return annotation != null && annotation.principal() == principal;
            }
        };

        return transformation.matchFields(predicate);
    }
View Full Code Here

Examples of org.apache.tapestry5.annotations.Parameter.principal()

                // Process the principal annotations on the first pass, handle the others
                // on the second pass.

                boolean process = pass == 0
                                  ? annotation.principal()
                                  : true;

                if (process)
                {
                    convertFieldIntoParameter(fieldName, annotation, transformation, model);
View Full Code Here

Examples of org.apache.tapestry5.annotations.Parameter.principal()

            public boolean accept(String fieldName, String fieldType)
            {
                Parameter annotation = transformation
                        .getFieldAnnotation(fieldName, Parameter.class);

                return annotation != null && annotation.principal();
            }
        };

        List<String> principleFieldNames = transformation.findFields(filter);
View Full Code Here

Examples of org.apache.tapestry5.annotations.Parameter.principal()

                // Process the principal annotations on the first pass, handle the others
                // on the second pass.

                boolean process = pass == 0
                                  ? annotation.principal()
                                  : true;

                if (process)
                {
                    convertFieldIntoParameter(fieldName, annotation, transformation, model);
View Full Code Here

Examples of org.jboss.resteasy.skeleton.key.representations.SkeletonKeyToken.principal()

   {
      if (skeletonKeyConfig.getResources().size() != 0)
      {
         SkeletonKeyToken token = new SkeletonKeyToken();
         token.id(generateId());
         token.principal(admin);
         token.audience(skeletonKeyConfig.getRealm());
         SkeletonKeyToken.Access realmAccess = new SkeletonKeyToken.Access();
         realmAccess.addRole(skeletonKeyConfig.getAdminRole());
         token.setRealmAccess(realmAccess);
         String tokenString = buildTokenString(realmPrivateKey, token);
View Full Code Here

Examples of org.jboss.resteasy.skeleton.key.representations.SkeletonKeyToken.principal()

   protected SkeletonKeyToken buildToken(GenericPrincipal gp)
   {
      SkeletonKeyToken token = new SkeletonKeyToken();
      token.id(generateId());
      token.principal(gp.getName());
      token.audience(skeletonKeyConfig.getRealm());
      int expiration = skeletonKeyConfig.getAccessCodeLifetime() == 0 ? 3600 : skeletonKeyConfig.getAccessCodeLifetime();
      if (skeletonKeyConfig.getTokenLifetime() > 0)
      {
         token.expiration((System.currentTimeMillis() / 1000) + expiration);
View Full Code Here

Examples of org.jboss.resteasy.skeleton.key.representations.SkeletonKeyToken.principal()

   protected SkeletonKeyToken createAccessToken(User user, Realm realm)
   {
      List<Resource> resources = identityManager.getResources(realm);
      SkeletonKeyToken token = new SkeletonKeyToken();
      token.id(generateId());
      token.principal(user.getUsername());
      token.audience(realm.getName());
      if (realm.getTokenLifespan() > 0)
      {
         token.expiration((System.currentTimeMillis() / 1000) + realm.getTokenLifespan());
      }
View Full Code Here

Examples of org.jboss.resteasy.skeleton.key.representations.SkeletonKeyToken.principal()

      SkeletonKeyToken token = null;
      if (scopeParam != null)
      {
         token = new SkeletonKeyToken();
         token.id(generateId());
         token.principal(user.getUsername());
         token.audience(realm.getName());
         if (realm.getTokenLifespan() > 0)
         {
            token.expiration((System.currentTimeMillis() / 1000) + realm.getTokenLifespan());
         }
View Full Code Here

Examples of org.jfrog.build.api.builder.BuildInfoBuilder.principal()

        if (StringUtils.isNotBlank(vcsUrl)) {
            builder.vcsUrl(vcsUrl);
        }
        String principal = clientConf.info.getPrincipal();
        if (StringUtils.isNotBlank(principal)) {
            builder.principal(principal);
        }
        String parentBuildName = clientConf.info.getParentBuildName();
        if (StringUtils.isNotBlank(parentBuildName)) {
            builder.parentName(parentBuildName);
        }
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.