anirudh-hegde commented on PR #6146:
URL: https://github.com/apache/seatunnel/pull/6146#issuecomment-1880727104

   > > > > Hey @Hisoka-X, Why don't we mark sensitive fields as temporary 
private ones?
   > > > 
   > > > 
   > > > Which one? Could you share some detail?
   > > 
   > > 
   > > I'm wondering if it would be able to mark the sensitive fields as 
transient in explicit files related to this JobMode.java file.
   > 
   > Sorry, I don't get it. Could you provide some demo for this? Thanks.
   
       public enum JobMode implements Serializable {
            BATCH,
            STREAMING;
   
         // Private and transient field to store sensitive information
            private transient String sensitiveField = "This is sensitive 
information";
         
         // Public method to access the sensitive field
            public String getSensitiveField() {
                 return sensitiveField;
            }
       }
     
   Above code is just an example to make sensitive field as "transient".
   So similarly, Is it possible to make sensitive field as "transient" in other 
files of this repository which are associated with JobMode.java.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to