Package org.ejbca.core.model.authorization

Examples of org.ejbca.core.model.authorization.AdminInformation


    // Method that takes the internal data and returns a AdminInformation object required by the Authorization module.
    public AdminInformation getAdminInformation() {
      if (adminInformation==null) {
            if (type == TYPE_CLIENTCERT_USER) {
              adminInformation = new AdminInformation(certificate, authToken);
            } else {
              adminInformation = new AdminInformation(ADMINTYPETOADMINENTITY[type], authToken);
            }
      }
        return adminInformation;
    }
View Full Code Here


    super(certificate, username, email);
    this.type = TYPE_CLIENTCERT_USER;
  }

  public AdminInformation getAdminInformation() {   
    return new AdminInformation(AdminEntity.SPECIALADMIN_INTERNALUSER, authToken);
  }
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.authorization.AdminInformation

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.