Class DefaultHexResourceIDMapper
- java.lang.Object
-
- com.sun.identity.liberty.ws.disco.plugins.DefaultHexResourceIDMapper
-
- All Implemented Interfaces:
ResourceIDMapper
public class DefaultHexResourceIDMapper extends Object implements ResourceIDMapper
The classDefaultHexResourceIDMapperprovide a default implementation of theResourceIDMapperinterface.The implementation assumes the format of ResourceID is: providerID + "/" + the hex string of userID.
-
-
Constructor Summary
Constructors Constructor Description DefaultHexResourceIDMapper()Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetResourceID(String providerID, String userID)Returns the resource ID that is associated with the user in a provider.StringgetUserID(String providerID, String resourceID)Returns the ID of the user who has the resource ID in a provider.StringgetUserID(String providerID, String resourceID, Message message)Returns the ID of the user who has the resource ID in a provider.
-
-
-
Method Detail
-
getResourceID
public String getResourceID(String providerID, String userID)
Returns the resource ID that is associated with the user in a provider.- Specified by:
getResourceIDin interfaceResourceIDMapper- Parameters:
providerID- ID of the provider.userID- ID of the user.- Returns:
- resource ID. Return null if the resource ID cannot be found.
-
getUserID
public String getUserID(String providerID, String resourceID)
Returns the ID of the user who has the resource ID in a provider.- Specified by:
getUserIDin interfaceResourceIDMapper- Parameters:
providerID- ID of the provider.resourceID- ID of the resource.- Returns:
- user ID. Return null if the user is not found.
-
getUserID
public String getUserID(String providerID, String resourceID, Message message)
Returns the ID of the user who has the resource ID in a provider.- Specified by:
getUserIDin interfaceResourceIDMapper- Parameters:
providerID- ID of the provider.resourceID- ID of the resource.message- Request message.- Returns:
- user ID. Return null if the user is not found.
-
-