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.");
}

Commenti

Post popolari in questo blog

Solaris 10: How to restart network service without reboot

How to send e-mail using PHP and mail() with Linux Debian