public interface VistaKernelPrincipal extends Principal
getKernelPrincipal in VistaKernelPrincipalImpl to directly retrieve the single
VistaKernelPrincipal. You can use the KEY* field strings to retrieve user demographics values via the
private VistaKernelPrincipalImpl userPrincipal;
// left out: perform a login... then the subject in the logincontext is populated
// get the Kernel principal after successful login
// get user demographicsgetUserDemographicValue method. For example:
userPrincipal = VistaKernelPrincipalImpl.getKernelPrincipal(loginContext.getSubject());
String duz = this.userPrincipal.getUserDemographicValue(VistaKernelPrincipalImpl.KEY_DUZ);
String name = userPrincipal.getUserDemographicValue(VistaKernelPrincipalImpl.KEY_NAME_DISPLAY);
VistaKernelPrincipalImpl| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DIVISION_IEN
map key to store/retrieve division station IEN from userDemographicsHashTable
|
static String |
KEY_DIVISION_STATION_NAME
map key to store/retrieve division station name from userDemographicsHashTable
|
static String |
KEY_DIVISION_STATION_NUMBER
map key to store/retrieve division station number from userDemographicsHashTable
|
static String |
KEY_DOMAIN_NAME
map key to store/retrieve domain name from userDemographicHashTable
|
static String |
KEY_DTIME
map key to store/retrieve user timeout value from userDemographicsHashTable
|
static String |
KEY_DUZ
map key to store/retrieve DUZ from userDemographicsHashTable
|
static String |
KEY_LANGUAGE
map key to store/retrieve user language from userDemographicsHashTable
|
static String |
KEY_NAME_DEGREE
map key to store/retrieve degree from userDemographicsHashTable
|
static String |
KEY_NAME_DISPLAY
map key to store/retrieve the display name from userDemographicsHashTable
|
static String |
KEY_NAME_FAMILYLAST
map key to store/retrieve name component family-last from userDemographicsHashTable
|
static String |
KEY_NAME_GIVENFIRST
map key to store/retrieve name component given-first from userDemographicsHashTable
|
static String |
KEY_NAME_MIDDLE
map key to store/retrieve name component middle from userDemographicsHashTable
|
static String |
KEY_NAME_NEWPERSON01
map key to store/retrieve New Person .01 Field name from userDemographicsHashTable
|
static String |
KEY_NAME_PREFIX
map key to store/retrieve name component prefix from userDemographicsHashTable
|
static String |
KEY_NAME_SUFFIX
map key to store/retrieve name component suffix from userDemographicsHashTable
|
static String |
KEY_SERVICE_SECTION
map key to store/retrieve user service/section from userDemographicsHashTable
|
static String |
KEY_TITLE
map key to store/retrieve user title from userDemographicsHashTable
|
static String |
KEY_VPID
map key to store/retrieve user VPID from userDemographicHashTable
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Returns whether some object equals this one.
|
String |
getName()
returns the name given to the principal when it was created.
|
String |
getUserDemographicValue(String key)
returns a given user demographic value.
|
String |
toString()
A string representation of the principal
|
static final String KEY_NAME_NEWPERSON01
static final String KEY_NAME_DISPLAY
static final String KEY_NAME_PREFIX
static final String KEY_NAME_SUFFIX
static final String KEY_NAME_GIVENFIRST
static final String KEY_NAME_MIDDLE
static final String KEY_NAME_FAMILYLAST
static final String KEY_NAME_DEGREE
static final String KEY_DUZ
static final String KEY_TITLE
static final String KEY_SERVICE_SECTION
static final String KEY_LANGUAGE
static final String KEY_DIVISION_IEN
static final String KEY_DIVISION_STATION_NAME
static final String KEY_DIVISION_STATION_NUMBER
static final String KEY_DTIME
static final String KEY_VPID
static final String KEY_DOMAIN_NAME
String getName()
getName in interface PrincipalPrincipal.getName()String getUserDemographicValue(String key)
key - The key under which the demographic value is storedString toString()
toString in interface PrincipaltoString in class ObjectPrincipal.toString()boolean equals(Object o)
equals in interface Principalequals in class ObjectPrincipal.equals(Object)Copyright © 2026. All rights reserved.