Class GhidraPrincipal

java.lang.Object
ghidra.framework.remote.GhidraPrincipal
All Implemented Interfaces:
Serializable, Principal

public class GhidraPrincipal extends Object implements Principal, Serializable
GhidraPrincipal specifies a Ghidra user as a Principal for use with server login/authentication.
See Also:
  • Field Details

  • Constructor Details

    • GhidraPrincipal

      public GhidraPrincipal(String username)
      Constructor.
      Parameters:
      username - user id/name
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Principal
    • getGhidraPrincipal

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