giovedì 4 dicembre 2008

Access Manager: Come prendere i dati di un utente usando le librerie iplanet-idRepo

SSOToken ssoToken = null;
Principal principal = null;
try {
SSOTokenManager ssoTokenMgr = SSOTokenManager.getInstance();
ssoToken = ssoTokenMgr.createSSOToken(request);
principal = ssoToken.getPrincipal();
AMIdentity am = new AMIdentity(ssoToken);
System.out.println("YYYYYYYYYYYY1: " + principal.toString());
System.out.println("YYYYYYYYYYYY2: " + principal.getName());
System.out.println("YYYYYYYYYYYY3: " + am.getName());
System.out.println("YYYYYYYYYYYY4: " + am.getRealm());
} catch (SSOException se) {
throw new SSOException("CommunityManagerImpl.init( failed to create ssoToken.");
}

Nessun commento: