private static final String ldapPwdLastSetAttribute = "PWDLASTSET";
public OpssBean() {
ADFContext adfCtx = ADFContext.getCurrent();
SecurityContext secCntx = adfCtx.getSecurityContext();
this.username = secCntx.getUserName();
for (String role : secCntx.getUserRoles()) {
this.roles = this.roles + role + ", ";
}
try {
jpsCtx = JpsContextFactory.getContextFactory().getContext();
IdentityStoreService service =
jpsCtx.getServiceInstance(IdentityStoreService.class);
idStore = service.getIdmStore();
User user = idStore.searchUser(secCntx.getUserName());
if (user != null) {
userProfile = user.getUserProfile();
PropertySet propSet = userProfile.getAllUserProperties();
Iterator it = propSet.getAll();