Package org.ejbca.core.model.approval

Source Code of org.ejbca.core.model.approval.ApprovedActionAdmin

/*************************************************************************
*                                                                       *
*  EJBCA: The OpenSource Certificate Authority                          *
*                                                                       *
*  This software is free software; you can redistribute it and/or       *
*  modify it under the terms of the GNU Lesser General Public           *
*  License as published by the Free Software Foundation; either         *
*  version 2.1 of the License, or any later version.                    *
*                                                                       *
*  See terms of license at gnu.org.                                     *
*                                                                       *
*************************************************************************/

package org.ejbca.core.model.approval;

import java.security.cert.Certificate;

import org.ejbca.core.model.authorization.AdminEntity;
import org.ejbca.core.model.authorization.AdminInformation;
import org.ejbca.core.model.log.Admin;

/**
*
* Special Admin type that should be used for approved actions.
* Is a mix where the request admin is shown in the log but the
* authorization is done with the internal admin.
*
* @author Philip Vendil 2007 jun 24
*
* @version $Id: ApprovedActionAdmin.java 11526 2011-03-16 12:03:24Z netmackan $
*/
public class ApprovedActionAdmin extends Admin {
 
  public ApprovedActionAdmin(Certificate certificate, String username, String email) {
    super(certificate, username, email);
    this.type = TYPE_CLIENTCERT_USER;
  }

  public AdminInformation getAdminInformation() {   
    return new AdminInformation(AdminEntity.SPECIALADMIN_INTERNALUSER, authToken);
  }
}
TOP

Related Classes of org.ejbca.core.model.approval.ApprovedActionAdmin

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.