Class GhidraPrincipal

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Principal

    public class GhidraPrincipal
    extends java.lang.Object
    implements java.security.Principal, java.io.Serializable
    GhidraPrincipal specifies a Ghidra user as a Principal for use with server login/authentication.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      GhidraPrincipal​(java.lang.String username)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static GhidraPrincipal getGhidraPrincipal​(javax.security.auth.Subject subj)
      Returns the GhidraPrincipal object contained within a Subject, or null if not found.
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.security.Principal

        equals, hashCode, implies, toString
    • Constructor Detail

      • GhidraPrincipal

        public GhidraPrincipal​(java.lang.String username)
        Constructor.
        Parameters:
        username - user id/name
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface java.security.Principal
      • getGhidraPrincipal

        public static GhidraPrincipal getGhidraPrincipal​(javax.security.auth.Subject subj)
        Returns the GhidraPrincipal object contained within a Subject, or null if not found.
        Parameters:
        subj - user subject
        Returns:
        GhidraPrincipal or null