Package org.ejbca.core.model.log

Examples of org.ejbca.core.model.log.Admin


   * @see org.ejbca.core.protocol.ws.common.IEjbcaWS#getAvailableCAs()
   */
  public NameAndId[] getAvailableCAs() throws EjbcaException, AuthorizationDeniedException {
    TreeMap<String,Integer> ret = new TreeMap<String,Integer>();
    EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
    Admin admin = ejbhelper.getAdmin(true);
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
        logAdminName(admin,logger);
    try {
      Collection<Integer> caids = caSession.getAvailableCAs(admin);
      HashMap<Integer, String> map = caAdminSession.getCAIdToNameMap(admin);
View Full Code Here


   * @see org.ejbca.core.protocol.ws.common.IEjbcaWS#getAuthorizedEndEntityProfiles()
   */
  public NameAndId[] getAuthorizedEndEntityProfiles()
      throws AuthorizationDeniedException, EjbcaException {
    EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
    Admin admin = ejbhelper.getAdmin();
    TreeMap<String,Integer> ret = new TreeMap<String,Integer>();
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
        logAdminName(admin,logger);
    try {
      Collection<Integer> ids = endEntityProfileSession.getAuthorizedEndEntityProfileIds(admin);
View Full Code Here

    /**
   * @see org.ejbca.core.protocol.ws.common.IEjbcaWS#getAvailableCertificateProfiles()
   */
  public NameAndId[] getAvailableCertificateProfiles(int entityProfileId) throws AuthorizationDeniedException, EjbcaException {
    EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
    Admin admin = ejbhelper.getAdmin();
    TreeMap<String,Integer> ret = new TreeMap<String,Integer>();
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
        logAdminName(admin,logger);
    try {
      EndEntityProfile profile = endEntityProfileSession.getEndEntityProfile(admin, entityProfileId);
View Full Code Here

  /**
   * @see org.ejbca.core.protocol.ws.common.IEjbcaWS#getAvailableCAsInProfile()
   */
  public NameAndId[] getAvailableCAsInProfile(int entityProfileId) throws AuthorizationDeniedException, EjbcaException {
    EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
    Admin admin = ejbhelper.getAdmin();
    TreeMap<String,Integer> ret = new TreeMap<String,Integer>();
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
        logAdminName(admin,logger);
    try {
      EndEntityProfile profile = endEntityProfileSession.getEndEntityProfile(admin, entityProfileId);
View Full Code Here

   */
  public void createCRL(String caname) throws CADoesntExistsException, ApprovalException, EjbcaException, ApprovalRequestExpiredException{
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
    try {
      EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
      Admin admin = ejbhelper.getAdmin(true);
            logAdminName(admin,logger);
      CA ca = caSession.getCA(admin, caname);
      crlStoreSession.run(admin, ca);
    } catch (AuthorizationDeniedException e) {
            throw EjbcaWSHelper.getEjbcaException(e, logger, ErrorCode.NOT_AUTHORIZED, Level.ERROR);
View Full Code Here

     */
    public int getPublisherQueueLength(String name) throws EjbcaException{
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
        try {
            final EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
            final Admin admin = ejbhelper.getAdmin(true);
            logAdminName(admin,logger);
            final int id = publisherSession.getPublisherId(admin, name);
            if ( id==0 ) {
                return -4;// no publisher with this name
            }
View Full Code Here

        if (log.isDebugEnabled()) {
          log.debug("CertReq for user '" + userdata.getUsername() + "'.");
        }
          setUserDataVOWS (userdata);
        final EjbcaWSHelper ejbcawshelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
        final Admin admin = ejbcawshelper.getAdmin(false);
        logAdminName(admin,logger);
          final UserDataVO userdatavo = ejbcawshelper.convertUserDataVOWS(admin, userdata);
          int responseTypeInt = SecConst.CERT_RES_TYPE_CERTIFICATE;
          if (!responseType.equalsIgnoreCase(CertificateHelper.RESPONSETYPE_CERTIFICATE)) {
            if (responseType.equalsIgnoreCase(CertificateHelper.RESPONSETYPE_PKCS7)) {
View Full Code Here

      try {
          log.debug("Soft token req for user '" + userdata.getUsername() + "'.");
          userdata.setStatus(UserDataVOWS.STATUS_NEW);
          userdata.setClearPwd(true);
        final EjbcaWSHelper ejbcawshelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
        final Admin admin = ejbcawshelper.getAdmin(false);
        logAdminName(admin,logger);
          final UserDataVO userdatavo = ejbcawshelper.convertUserDataVOWS(admin, userdata);
          final boolean createJKS = userdata.getTokenType().equals(UserDataVOWS.TOKEN_TYPE_JKS);
          final byte[] encodedKeyStore = certificateRequestSession.processSoftTokenReq(admin, userdatavo, hardTokenSN, keyspec, keyalg, createJKS);
          // Convert encoded KeyStore to the proper return type
View Full Code Here

    if (log.isTraceEnabled()) {
      log.trace(">getLastCAChain: "+caname);
    }
    final List<Certificate> retval = new ArrayList<Certificate>();
    EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
    Admin admin = ejbhelper.getAdmin();
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
        logAdminName(admin,logger);
    try {
      CAInfo info = caAdminSession.getCAInfoOrThrowException(admin, caname);
      if (info.getStatus() == SecConst.CA_WAITING_CERTIFICATE_RESPONSE){
View Full Code Here

    private String command;
    private String invalidOption;
    private String commandFailsafe;

    public void setUp() {
        admin = new Admin(Admin.TYPE_INTERNALUSER);
        gpcPublisher = new GeneralPurposeCustomPublisher();

        // Make sure an external command exists for testing purposes
        command = null;
        commandFailsafe = null;
View Full Code Here

TOP

Related Classes of org.ejbca.core.model.log.Admin

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.