|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides an interface to marks a principal that represents a logged on Kernel user on an M system. Upon a successful
JAAS login, one or more principals may be contained in the JAAS subject that is returned from a successful JAAS login
(only one *Kernel* principal should be returned, however. The situation in which multiple principals could be
returned is if some kind of compound logon has been set up that requires several logons to complete, for example one
to Kernel, and one to a separate health data repository). The VistaKernelPrincipal interface is a marker you can use
to identify a "VistaKernelPrincipal" as one of those principals. However, an easier approach is to use the helper
method 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
Field Summary | |
static java.lang.String |
KEY_DIVISION_IEN
map key to store/retrieve division station IEN from userDemographicsHashTable |
static java.lang.String |
KEY_DIVISION_STATION_NAME
map key to store/retrieve division station name from userDemographicsHashTable |
static java.lang.String |
KEY_DIVISION_STATION_NUMBER
map key to store/retrieve division station number from userDemographicsHashTable |
static java.lang.String |
KEY_DOMAIN_NAME
map key to store/retrieve domain name from userDemographicHashTable |
static java.lang.String |
KEY_DTIME
map key to store/retrieve user timeout value from userDemographicsHashTable |
static java.lang.String |
KEY_DUZ
map key to store/retrieve DUZ from userDemographicsHashTable |
static java.lang.String |
KEY_LANGUAGE
map key to store/retrieve user language from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_DEGREE
map key to store/retrieve degree from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_DISPLAY
map key to store/retrieve the display name from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_FAMILYLAST
map key to store/retrieve name component family-last from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_GIVENFIRST
map key to store/retrieve name component given-first from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_MIDDLE
map key to store/retrieve name component middle from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_NEWPERSON01
map key to store/retrieve New Person .01 Field name from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_PREFIX
map key to store/retrieve name component prefix from userDemographicsHashTable |
static java.lang.String |
KEY_NAME_SUFFIX
map key to store/retrieve name component suffix from userDemographicsHashTable |
static java.lang.String |
KEY_SERVICE_SECTION
map key to store/retrieve user service/section from userDemographicsHashTable |
static java.lang.String |
KEY_TITLE
map key to store/retrieve user title from userDemographicsHashTable |
static java.lang.String |
KEY_VPID
map key to store/retrieve user VPID from userDemographicHashTable |
Method Summary | |
boolean |
equals(java.lang.Object o)
Returns whether some object equals this one. |
java.lang.String |
getName()
returns the name given to the principal when it was created. |
java.lang.String |
getUserDemographicValue(java.lang.String key)
returns a given user demographic value. |
java.lang.String |
toString()
A string representation of the principal |
Methods inherited from interface java.security.Principal |
hashCode |
Field Detail |
public static final java.lang.String KEY_NAME_NEWPERSON01
public static final java.lang.String KEY_NAME_DISPLAY
public static final java.lang.String KEY_NAME_PREFIX
public static final java.lang.String KEY_NAME_SUFFIX
public static final java.lang.String KEY_NAME_GIVENFIRST
public static final java.lang.String KEY_NAME_MIDDLE
public static final java.lang.String KEY_NAME_FAMILYLAST
public static final java.lang.String KEY_NAME_DEGREE
public static final java.lang.String KEY_DUZ
public static final java.lang.String KEY_TITLE
public static final java.lang.String KEY_SERVICE_SECTION
public static final java.lang.String KEY_LANGUAGE
public static final java.lang.String KEY_DIVISION_IEN
public static final java.lang.String KEY_DIVISION_STATION_NAME
public static final java.lang.String KEY_DIVISION_STATION_NUMBER
public static final java.lang.String KEY_DTIME
public static final java.lang.String KEY_VPID
public static final java.lang.String KEY_DOMAIN_NAME
Method Detail |
public java.lang.String getName()
getName
in interface java.security.Principal
Principal.getName()
public java.lang.String getUserDemographicValue(java.lang.String key)
key
- The key under which the demographic value is stored
public java.lang.String toString()
toString
in interface java.security.Principal
Principal.toString()
public boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
Principal.equals(Object)
|
VistALink v1.5.0.026 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |