Package ghidra.framework.remote

# 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:
  - Serialized Form

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final long`
  `serialVersionUID`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GhidraPrincipal(String username)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static GhidraPrincipal`
  `getGhidraPrincipal(Subject subj)`
  Returns the GhidraPrincipal object contained within a Subject, or null if not found.
  `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`

- ## Field Details

  - ### serialVersionUID

    public static final long serialVersionUID
    See Also:
      - Constant Field Values

- ## 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