Examples of JAASTomcatPrincipal


Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

                    log.debug(sm.getString("jaasRealm.rolePrincipalFailure"));
                }
            }
        }

        JAASTomcatPrincipal jaasPrincipal = new JAASTomcatPrincipal(username);
        jaasPrincipal.setSubject(subject);
        jaasPrincipal.setRoles(roles);

        // Return the resulting Principal for our authenticated user
        return jaasPrincipal;
    }
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

        if ((principal == null) || (role == null) ||
            !(principal instanceof JAASTomcatPrincipal))
            return (false);

        JAASTomcatPrincipal jtp = (JAASTomcatPrincipal) principal;
        if (jtp.getRoles().contains(role))
            return true;

        return false;
    }
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

              }
              if (log.isDebugEnabled()) {
                  log.debug(sm.getString("jaasRealm.authenticateSuccess", username));
              }
  */
              JAASTomcatPrincipal jaasPrincipal = new JAASTomcatPrincipal(principalName);
              jaasPrincipal.setSubject(subject);

              return (jaasPrincipal);
            }
            else {
                if (log.isDebugEnabled())
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

                    log.debug(sm.getString("jaasRealm.rolePrincipalFailure"));
                }
            }
        }

        JAASTomcatPrincipal jaasPrincipal = new JAASTomcatPrincipal(username);
        jaasPrincipal.setSubject(subject);
        jaasPrincipal.setRoles(roles);

        // Return the resulting Principal for our authenticated user
        return jaasPrincipal;
    }
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

        if ((principal == null) || (role == null) ||
            !(principal instanceof JAASTomcatPrincipal))
            return (false);

        JAASTomcatPrincipal jtp = (JAASTomcatPrincipal) principal;
        if (jtp.getRoles().contains(role))
            return true;

        return false;
    }
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

                    log.debug(sm.getString("jaasRealm.rolePrincipalFailure"));
                }
            }
        }

        JAASTomcatPrincipal jaasPrincipal = new JAASTomcatPrincipal(username);
        jaasPrincipal.setSubject(subject);
        jaasPrincipal.setRoles(roles);

        // Return the resulting Principal for our authenticated user
        return jaasPrincipal;
    }
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

        if ((principal == null) || (role == null) ||
            !(principal instanceof JAASTomcatPrincipal))
            return (false);

        JAASTomcatPrincipal jtp = (JAASTomcatPrincipal) principal;
        if (jtp.getRoles().contains(role))
            return true;

        return false;
    }
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

              }
              if (log.isDebugEnabled()) {
                  log.debug(sm.getString("jaasRealm.authenticateSuccess", username));
              }
  */
              JAASTomcatPrincipal jaasPrincipal = new JAASTomcatPrincipal(principalName);
              jaasPrincipal.setSubject(subject);

              return (jaasPrincipal);
            }
            else {
                if (log.isDebugEnabled())
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

                    log.debug(sm.getString("jaasRealm.rolePrincipalFailure"));
                }
            }
        }

        JAASTomcatPrincipal jaasPrincipal = new JAASTomcatPrincipal(username);
        jaasPrincipal.setSubject(subject);
        jaasPrincipal.setRoles(roles);

        // Return the resulting Principal for our authenticated user
        return jaasPrincipal;
    }
View Full Code Here

Examples of org.apache.geronimo.tomcat.JAASTomcatPrincipal

        if ((principal == null) || (role == null) ||
            !(principal instanceof JAASTomcatPrincipal))
            return (false);

        JAASTomcatPrincipal jtp = (JAASTomcatPrincipal) principal;
        if (jtp.getRoles().contains(role))
            return true;

        return false;
    }
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.