My question
Do you have to send all detail ie, user, application and position, or can you leave position blank.
publicStandardPrincipalIdentity createStandardIdentity(String userName, String appName, String position) {
finalStandardPrincipalIdentity identity =newStandardPrincipalIdentity();
identity.setAppName(appName);
identity.setName(userName);
if(position !=null) {
identity.setPosition(position);
}else{
// if no explicit position has been specified, make sure we set a blank position and not 127.0.0.1/default// this is required so DACS authentication works correctlyidentity.setPosition("");
}returnidentity;
}
packagecom.reuters.rfa.common;
importcom.reuters.rfa.common.PrincipalIdentity;importcom.reuters.rfa.common.PrincipalIdentity.PrincipalIdentityType;
public final classStandardPrincipalIdentityextendsPrincipalIdentity {
String _userName ="";
String _appName ="";
String _position ="";
publicStandardPrincipalIdentity() {
}