Interface UniversalIdFactory
public interface UniversalIdFactory
Factory for creating
UniversalId instances from various inputs such as Dn, SSOToken, or
usernames with their associated IdType and Realm.-
Method Summary
Modifier and TypeMethodDescriptionuniversalId(SSOToken token) Creates aUniversalIdfrom a single sign-on token.universalId(String name, IdType type, Realm realm) Creates aUniversalIdfrom a username, its type, and the associated realm.universalId(String name, IdType type, Dn realmDn) Creates aUniversalIdfrom a username, its type, and the associated realm's distinguished name (DN).universalId(Dn dn) Creates aUniversalIdfrom a distinguished name (DN).
-
Method Details
-
universalId
Creates aUniversalIdfrom a distinguished name (DN).- Parameters:
dn- the distinguished name- Returns:
- the corresponding UniversalId
- Throws:
IdRepoException- if an error occurs while creating the UniversalId
-
universalId
Creates aUniversalIdfrom a single sign-on token.- Parameters:
token- the single sign-on token- Returns:
- the corresponding UniversalId
- Throws:
IdRepoException- if an error occurs while creating the UniversalIdSSOException- if an error occurs with the SSO token
-
universalId
Creates aUniversalIdfrom a username, its type, and the associated realm.- Parameters:
name- the usernametype- the type of the identifier (e.g., user, group)realm- the realm associated with the identifier- Returns:
- the corresponding UniversalId
- Throws:
IdRepoException- if an error occurs while creating the UniversalId
-
universalId
Creates aUniversalIdfrom a username, its type, and the associated realm's distinguished name (DN).- Parameters:
name- the usernametype- the type of the identifier (e.g., user, group)realmDn- the distinguished name of the realm associated with the identifier- Returns:
- the corresponding UniversalId
- Throws:
IdRepoException- if an error occurs while creating the UniversalId
-