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.SerializableGhidraPrincipalspecifies 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 longserialVersionUID 
- 
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 GhidraPrincipalgetGhidraPrincipal(javax.security.auth.Subject subj)Returns the GhidraPrincipal object contained within a Subject, or null if not found.java.lang.StringgetName() 
 - 
 
- 
- 
Field Detail
- 
serialVersionUID
public static final long serialVersionUID
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getName
public java.lang.String getName()
- Specified by:
 getNamein 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
 
 
 - 
 
 -