Class Auditor

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

    public class Auditor
    extends java.lang.Object
    implements com.netscape.certsrv.logging.IAuditor
    Author:
    Endi S. Dewata
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Auditor auditor  
      • Fields inherited from interface com.netscape.certsrv.logging.IAuditor

        SIGNED_AUDIT_EMPTY_NAME_VALUE_PAIR, SIGNED_AUDIT_OPERATION, SIGNED_AUDIT_RESOURCE, SIGNED_AUDIT_SCOPE
    • Constructor Summary

      Constructors 
      Constructor Description
      Auditor()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Auditor getAuditor()  
      java.lang.String getGroups​(java.lang.String subjectID)
      Get signed audit groups This method is called to extract all "groups" associated with the "auditSubjectID()".
      java.lang.String getParamString​(java.lang.StringBuilder parameters, java.util.Map<java.lang.String,​java.lang.String> params)  
      java.lang.String getParamString​(java.lang.String scope, java.lang.String type, java.lang.String id, java.util.Map<java.lang.String,​java.lang.String> params)
      Get signed audit parameters as a string.
      java.lang.String getParamString​(java.util.Map<java.lang.String,​java.lang.String> params)  
      java.lang.String getSubjectID()
      Get signed audit log subject ID This method is called to obtain the "SubjectID" for a signed audit log message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • auditor

        public static final Auditor auditor
    • Constructor Detail

      • Auditor

        public Auditor()
    • Method Detail

      • getAuditor

        public static Auditor getAuditor()
      • getSubjectID

        public java.lang.String getSubjectID()
        Description copied from interface: com.netscape.certsrv.logging.IAuditor
        Get signed audit log subject ID This method is called to obtain the "SubjectID" for a signed audit log message.
        Specified by:
        getSubjectID in interface com.netscape.certsrv.logging.IAuditor
        Returns:
        id string containing the signed audit log message SubjectID
      • getGroups

        public java.lang.String getGroups​(java.lang.String subjectID)
        Description copied from interface: com.netscape.certsrv.logging.IAuditor
        Get signed audit groups This method is called to extract all "groups" associated with the "auditSubjectID()".

        Specified by:
        getGroups in interface com.netscape.certsrv.logging.IAuditor
        Parameters:
        subjectID - string containing the signed audit log message SubjectID
        Returns:
        a delimited string of groups associated with the "auditSubjectID()"
      • getParamString

        public java.lang.String getParamString​(java.lang.String scope,
                                               java.lang.String type,
                                               java.lang.String id,
                                               java.util.Map<java.lang.String,​java.lang.String> params)
        Description copied from interface: com.netscape.certsrv.logging.IAuditor
        Get signed audit parameters as a string. This method is called to convert parameters into a string of name;;value pairs separated by a '+' if more than one name;;value pair exists.
        Specified by:
        getParamString in interface com.netscape.certsrv.logging.IAuditor
        Returns:
        a delimited string of one or more delimited name/value pairs
      • getParamString

        public java.lang.String getParamString​(java.util.Map<java.lang.String,​java.lang.String> params)
        Specified by:
        getParamString in interface com.netscape.certsrv.logging.IAuditor
      • getParamString

        public java.lang.String getParamString​(java.lang.StringBuilder parameters,
                                               java.util.Map<java.lang.String,​java.lang.String> params)
        Specified by:
        getParamString in interface com.netscape.certsrv.logging.IAuditor