|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VistaKernelPrincipal
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 |
---|
static final java.lang.String KEY_NAME_NEWPERSON01
static final java.lang.String KEY_NAME_DISPLAY
static final java.lang.String KEY_NAME_PREFIX
static final java.lang.String KEY_NAME_SUFFIX
static final java.lang.String KEY_NAME_GIVENFIRST
static final java.lang.String KEY_NAME_MIDDLE
static final java.lang.String KEY_NAME_FAMILYLAST
static final java.lang.String KEY_NAME_DEGREE
static final java.lang.String KEY_DUZ
static final java.lang.String KEY_TITLE
static final java.lang.String KEY_SERVICE_SECTION
static final java.lang.String KEY_LANGUAGE
static final java.lang.String KEY_DIVISION_IEN
static final java.lang.String KEY_DIVISION_STATION_NAME
static final java.lang.String KEY_DIVISION_STATION_NUMBER
static final java.lang.String KEY_DTIME
static final java.lang.String KEY_VPID
static final java.lang.String KEY_DOMAIN_NAME
Method Detail |
---|
java.lang.String getName()
getName
in interface java.security.Principal
Principal.getName()
java.lang.String getUserDemographicValue(java.lang.String key)
key
- The key under which the demographic value is stored
java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
Principal.toString()
boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in class java.lang.Object
Principal.equals(Object)
|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |