|
HATS 7.5.1 Web API ReferencePublicly accessible methods not documented here are for IBM internal use only and may change in a future release of the product. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.hats.portlet.cv.CredentialVaultHelper
public class CredentialVaultHelper
This class is used to aid the access to the WebSphere Portal Credential Vault for standard portlets.
| Field Summary | |
|---|---|
static String |
CLASSNAME
The CLASSNAME string contains the package and class of the instance of the class being used. |
static String |
Copyright
The HATSCopyright.COPYRIGHT field will be updated each release, thereby updating this class file. |
static int |
SECRET_ADMINISTRATIVE_SLOT
Slot type value indicator for the administrative slot. |
static int |
SECRET_PORTLET_PRIVATE_SLOT
Slot type value indicator for the private slot. |
static int |
SECRET_SHARED_SLOT
Slot type value indicator for the shared slot. |
static int |
SECRET_SYSTEM_SLOT
Slot type value indicator for the system slot. |
| Method Summary | |
|---|---|
static String |
generateSlotName(String vaultId,
String hostDestination,
String hostAppId)
Generates a name for the slot from the information indicated in the parameters. |
UserPasswordCredential |
getCredential(String slotId,
javax.portlet.PortletRequest portletRequest)
Returns the user password credential. |
static CredentialVaultHelper |
getInstance()
Returns a CredentialVaultHelper instance. |
String |
getSlotId(javax.portlet.PortletRequest portletRequest,
String slotName,
int slotType)
Returns the slot id for the portlet. |
void |
setCredential(String slotId,
UserPasswordCredential credential,
javax.portlet.PortletRequest portletRequest)
Sets the user password credential. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String Copyright
public static final String CLASSNAME
public static final int SECRET_PORTLET_PRIVATE_SLOT
public static final int SECRET_SHARED_SLOT
public static final int SECRET_ADMINISTRATIVE_SLOT
public static final int SECRET_SYSTEM_SLOT
| Method Detail |
|---|
public static CredentialVaultHelper getInstance()
public void setCredential(String slotId,
UserPasswordCredential credential,
javax.portlet.PortletRequest portletRequest)
throws javax.portlet.PortletException
slotId - the identification for which slot you would like to accesscredential - the com.ibm.hats.portlet.cv.UserPasswordCredential objectportletRequest - the javax.portlet.PortletRequest object
javax.portlet.PortletException
public UserPasswordCredential getCredential(String slotId,
javax.portlet.PortletRequest portletRequest)
throws javax.portlet.PortletException
slotId - the identification for which slot you would like to accessportletRequest - the javax.portlet.PortletRequest object
javax.portlet.PortletException
public static String generateSlotName(String vaultId,
String hostDestination,
String hostAppId)
vaultId - the Portal Credential Vault identificationhostDestination - the host destinationhostAppId - the host application identification
public String getSlotId(javax.portlet.PortletRequest portletRequest,
String slotName,
int slotType)
throws javax.portlet.PortletException
portletRequest - the javax.portlet.PortletRequest objectslotName - the desired slot nameslotType - the desired slot type
javax.portlet.PortletException
|
HATS 7.5.1 (201005110649) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||