public interface CredentialNameTokenizer extends Serializable
iFS users are uniquely identified by DIRECTORYUSER Name. However, there is no requirement for CredentialManagers to use an equivalent flat namespace. In a hosted model, a CredentialManager manages multiple user sets, or "subscribers". Userids are unique across a subscriber, but not necessarily unique across all subscribers. Consequently, to identify a user to the CredentialManager, both the userid and subscriber name are required.
CredentialNameTokenizers provide a consistent mechanism to convert between usernames and userids and subscriber names, for use by both applications and CredentialManager implementations.
Each iFS service constructs a CredentialNameTokenizer implementation,
whose classname is specified by the service configuration property
IFS.SERVICE.CREDENTIALMANAGER.CredentialNameTokenizer.
CredentialManagers can obtain a reference to this CredentialNameTokenizer
by calling S_LibraryService.getCredentialNameTokenizer.
Applications can call LibraryService.getCredentialNameTokenizer.
CredentialNameTokenizer implementations must provide a zero-argument constructor.
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Called by the iFS service to dispose this CredentialNameTokenizer.
|
String |
getSubscriberName(String userName)
Gets the subscriber name for the specified username.
|
String |
getUserid(String userName)
Gets the userid for the specified username.
|
String |
getUserName(String userid,
String subscriberName)
Gets the username for the specified userid and subscriber name.
|
void |
initialize(S_LibraryService service)
Called by the iFS service to initialize this CredentialNameTokenizer.
|
void initialize(S_LibraryService service) throws IfsException
If the CredentialNameTokenizer holds service in a member
variable, that member variable must be declared transient.
service - the iFS service to which this
CredentialNameTokenizer belongsIfsException - (IFS-12701) if the operation failsvoid dispose()
throws IfsException
IfsException - (IFS-12702) if the operation failsString getUserName(String userid, String subscriberName) throws IfsException
userid - the userid of the usersubscriberName - the subscriber of the userIfsException - (IFS-12710) if the operation failsString getUserid(String userName) throws IfsException
userName - the username of the userIfsException - (IFS-12711) if the operation failsString getSubscriberName(String userName) throws IfsException
userName - the username of the userIfsException - (IFS-12712) if the operation failsCopyright © 2025. All rights reserved.