Package ghidra.framework.remote
Class GhidraPrincipal
- java.lang.Object
-
- ghidra.framework.remote.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()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacejava.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
-
-