Examples of addPrincipal()


Examples of org.apache.jetspeed.sso.SSOSite.addPrincipal()

    SSOPrincipal principal = this.getPrincipalForSite(ssoSite, fullPath);
   
    if (principal == null )
    {
        principal = getSSOPrincipal(fullPath);
        ssoSite.addPrincipal(principal);
    }
    else
    {
        // Check if the entry the user likes to update exists already
        Collection remoteForSite = ssoSite.getRemotePrincipals();
View Full Code Here

Examples of org.apache.jetspeed.sso.SSOSite.addPrincipal()

    SSOPrincipal principal = this.getPrincipalForSite(ssoSite, fullPath);
   
    if (principal == null )
    {
        principal = getSSOPrincipal(fullPath);
        ssoSite.addPrincipal(principal);
    }
    else
    {
        // Check if the entry the user likes to update exists already
        Collection remoteForSite = ssoSite.getRemotePrincipals();
View Full Code Here

Examples of org.apache.jetspeed.sso.SSOSite.addPrincipal()

    SSOPrincipal principal = this.getPrincipalForSite(ssoSite, fullPath);
   
    if (principal == null )
    {
        principal = getSSOPrincipa(fullPath);
        ssoSite.addPrincipal(principal);
    }
    else
    {
        // Check if the entry the user likes to update exists already
        Collection remoteForSite = ssoSite.getRemotePrincipals();
View Full Code Here

Examples of org.apache.jetspeed.sso.SSOSite.addPrincipal()

    SSOPrincipal principal = this.getPrincipalForSite(ssoSite, fullPath);
   
    if (principal == null )
    {
        principal = getSSOPrincipal(fullPath);
        ssoSite.addPrincipal(principal);
    }
    else
    {
        // Check if the entry the user likes to update exists already
        Collection remoteForSite = ssoSite.getRemotePrincipals();
View Full Code Here

Examples of org.apache.jetspeed.sso.SSOSite.addPrincipal()

    SSOPrincipal principal = this.getPrincipalForSite(ssoSite, fullPath);
   
    if (principal == null )
    {
        principal = getSSOPrincipal(fullPath);
        ssoSite.addPrincipal(principal);
    }
    else
    {
        // Check if the entry the user likes to update exists already
        Collection remoteForSite = ssoSite.getRemotePrincipals();
View Full Code Here

Examples of org.apache.wicket.security.hive.authentication.DefaultSubject.addPrincipal()

  protected Subject getSubject(String username, String password) throws LoginException
  {
    // TODO verify username, password, if user is not authenticated throw a LoginException
    DefaultSubject subject = new DefaultSubject();
    // grant principals to the user based on .....
    subject.addPrincipal(new SimplePrincipal("something"));
    return subject;
  }

}
View Full Code Here

Examples of org.apache.wicket.security.hive.authentication.DefaultSubject.addPrincipal()

    if (username != null && Objects.equal(username, password))
    {
      DefaultSubject subject = new DefaultSubject();
      if ("super".equals(username))
      {
        subject.addPrincipal(new MyPrincipal("super"));
        subject.addPrincipal(new MyPrincipal("basic"));
      }
      else
        subject.addPrincipal(new MyPrincipal("basic"));
      return subject;
View Full Code Here

Examples of org.apache.wicket.security.hive.authentication.DefaultSubject.addPrincipal()

    {
      DefaultSubject subject = new DefaultSubject();
      if ("super".equals(username))
      {
        subject.addPrincipal(new MyPrincipal("super"));
        subject.addPrincipal(new MyPrincipal("basic"));
      }
      else
        subject.addPrincipal(new MyPrincipal("basic"));
      return subject;
    }
View Full Code Here

Examples of org.apache.wicket.security.hive.authentication.DefaultSubject.addPrincipal()

      {
        subject.addPrincipal(new MyPrincipal("super"));
        subject.addPrincipal(new MyPrincipal("basic"));
      }
      else
        subject.addPrincipal(new MyPrincipal("basic"));
      return subject;
    }
    throw new LoginException("Username and password do not match any known user.");
  }
}
View Full Code Here

Examples of org.apache.wicket.security.hive.authentication.DefaultSubject.addPrincipal()

  protected Subject getSubject(String username, String password) throws LoginException
  {
    if (username != null && Objects.equal(username, password))
    {
      DefaultSubject subject = new DefaultSubject();
      subject.addPrincipal(new SimplePrincipal("user"));

      if (username.equalsIgnoreCase("admin"))
      {
        subject.addPrincipal(new SimplePrincipal("admin"));
      }
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.