|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A CredentialNameTokenizer converts usernames into userids and subscriber names.
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.
Method Summary | |
void |
dispose()
Called by the iFS service to dispose this CredentialNameTokenizer. |
java.lang.String |
getSubscriberName(java.lang.String userName)
Gets the subscriber name for the specified username. |
java.lang.String |
getUserid(java.lang.String userName)
Gets the userid for the specified username. |
java.lang.String |
getUserName(java.lang.String userid,
java.lang.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. |
Method Detail |
public 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 failspublic void dispose() throws IfsException
IfsException
- (IFS-12702) if the operation failspublic java.lang.String getUserName(java.lang.String userid, java.lang.String subscriberName) throws IfsException
userid
- the userid of the usersubscriberName
- the subscriber of the userIfsException
- (IFS-12710) if the operation failspublic java.lang.String getUserid(java.lang.String userName) throws IfsException
userName
- the username of the userIfsException
- (IFS-12711) if the operation failspublic java.lang.String getSubscriberName(java.lang.String userName) throws IfsException
userName
- the username of the userIfsException
- (IFS-12712) if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |