Class Auditor

  • All Implemented Interfaces:
    IAuditor

    public class Auditor
    extends java.lang.Object
    implements IAuditor
    Author:
    Endi S. Dewata
    • 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: 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 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: IAuditor
        Get signed audit groups This method is called to extract all "groups" associated with the "auditSubjectID()".

        Specified by:
        getGroups in interface 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: 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 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 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 IAuditor