Class AuditService

  • All Implemented Interfaces:
    com.netscape.certsrv.logging.AuditResource

    public class AuditService
    extends SubsystemService
    implements com.netscape.certsrv.logging.AuditResource
    Author:
    Endi S. Dewata
    • Field Detail

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • AuditService

        public AuditService()
    • Method Detail

      • createAuditConfig

        public com.netscape.certsrv.logging.AuditConfig createAuditConfig()
                                                                   throws java.io.UnsupportedEncodingException,
                                                                          EBaseException
        Throws:
        java.io.UnsupportedEncodingException
        EBaseException
      • createAuditConfig

        public com.netscape.certsrv.logging.AuditConfig createAuditConfig​(java.util.Map<java.lang.String,​java.lang.String> auditParams)
                                                                   throws java.io.UnsupportedEncodingException,
                                                                          EBaseException
        Throws:
        java.io.UnsupportedEncodingException
        EBaseException
      • getAuditConfig

        public javax.ws.rs.core.Response getAuditConfig()
        Specified by:
        getAuditConfig in interface com.netscape.certsrv.logging.AuditResource
      • updateAuditConfig

        public javax.ws.rs.core.Response updateAuditConfig​(com.netscape.certsrv.logging.AuditConfig auditConfig)
        Specified by:
        updateAuditConfig in interface com.netscape.certsrv.logging.AuditResource
      • changeAuditStatus

        public javax.ws.rs.core.Response changeAuditStatus​(java.lang.String action)
        Specified by:
        changeAuditStatus in interface com.netscape.certsrv.logging.AuditResource
      • getCurrentLogFile

        public java.io.File getCurrentLogFile()
      • getLogDirectory

        public java.io.File getLogDirectory()
      • getLogFiles

        public java.util.List<java.io.File> getLogFiles()
      • findAuditFiles

        public javax.ws.rs.core.Response findAuditFiles()
        Specified by:
        findAuditFiles in interface com.netscape.certsrv.logging.AuditResource
      • getAuditFile

        public javax.ws.rs.core.Response getAuditFile​(java.lang.String filename)
        Specified by:
        getAuditFile in interface com.netscape.certsrv.logging.AuditResource
      • auditTPSConfigSignedAudit

        public void auditTPSConfigSignedAudit​(java.lang.String status,
                                              java.util.Map<java.lang.String,​java.lang.String> params)