| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CredentialVaultService
Portlet Service for legacy portlets to access the WebSphere Portal Credential Vault. The portlet service offers the following functionality:
Available Secret Types in the Credential Vault are definied as constants in this interface. Please note that not all types have to be available in the defined Vault Segments, depending on the utilized Vault Adapter implementation. Supported types per segment can be retrieved through VaultSegmentConfig#getSupportedSecretTypes().
Available Credential Types in the Credential Vault are defined externally in a credential type registry configuration file and can be retrieved through the method getCredentialTypes()that returns their respective type string. Default credential type strings are defined as constants in the interface CredentialTypes.
Field Summary | |
---|---|
static java.lang.String | PREDEFINED_SLOT_USER_JAAS_SUBJECT
Deprecated. This is the name of a predefined slot to store the transient JAAS credential. |
static int | SECRET_TYPE_BYTEARRAY
Deprecated. The user's secret is in binary form. |
static int | SECRET_TYPE_JAAS_SUBJECT
Deprecated. The user's secret is a JAAS Subject. |
static int | SECRET_TYPE_JAVA_OBJECT
Deprecated. The user's secret is a java object. |
static int | SECRET_TYPE_NO_SECRET_DATA
Deprecated. Type for credential objects that do not contain a secret. |
static int | SECRET_TYPE_UNDEFINED
Deprecated. Used only for the super class CredentialSecret of the secret classes as secret type. |
static int | SECRET_TYPE_USERID_STRING_PASSWORD_STRING
Deprecated. The user's secret is a userid/password pair. |
Method Summary | |
---|---|
CredentialSlotConfig | ObjectID, java.util.Map, java.util.Map, int, boolean, boolean, org.apache.jetspeed.portlet.PortletRequest)">createSlot(java.lang.String resourceName,
ObjectID segmentId,
java.util.Map descriptions,
java.util.Map keywords,
int secretType,
boolean active,
boolean portletPrivate,
PortletRequest portletRequest)
Deprecated. Use method #createSlot(String, com.ibm.portal.ObjectID, Map, Map, int, boolean, boolean, PortletRequest) taking a com.ibm.portal.ObjectID for the segmentId as parameter. |
void | deleteSlot(java.lang.String slotName)
Deprecated. Deletes an existing credential slot. |
java.util.Iterator | getAccessibleSlots(PortletRequest request)
Deprecated. Returns an iterator of all credential slots that a portlet is authorized to use |
java.util.List | getAllVaultSegments()
Deprecated. Returns a List of all available Vault Segments. |
Credential | getCredential(java.lang.String slotId,
java.lang.String type,
java.util.Map config,
PortletRequest request)
Deprecated. Returns a specific credential from a specific slot. |
java.util.Iterator | getCredentialTypes()
Deprecated. Returns an Iterator over all available credential types that are registered in the credential type registry. |
ObjectID | getDefaultUserVaultSegmentId()
Deprecated. use getDefaultUserVaultSegmentPortalId() instead. |
ObjectID | getDefaultUserVaultSegmentPortalId()
Deprecated. Returns the ObjectID of the default user managed vault segment. |
Credential | getLTPATokenCredential(java.lang.String slotId,
java.util.Map config,
PortletRequest request)
Deprecated. Returns a LTPA Token credential. |
java.lang.String | getSlotDescription(java.lang.String slotId,
java.util.Locale locale)
Deprecated. Returns a credential slot's description for the specified locale. |
javax.security.auth.Subject | getUserSubject(PortletRequest request)
Deprecated. Returns the user's JAAS Subject. |
void | setCredentialSecretBinary(java.lang.String slotId,
byte[] secret,
PortletRequest portletRequest)
Deprecated. Sets a credential's binary secret on a given slot. |
void | setCredentialSecretUserPassword(java.lang.String slotId,
java.lang.String userId,
char[] password,
PortletRequest portletRequest)
Deprecated. Sets a credential's user/password secret on a given slot. |
Field Detail |
---|
static final int SECRET_TYPE_UNDEFINED
static final int SECRET_TYPE_USERID_STRING_PASSWORD_STRING
static final int SECRET_TYPE_BYTEARRAY
static final int SECRET_TYPE_JAVA_OBJECT
static final int SECRET_TYPE_NO_SECRET_DATA
static final int SECRET_TYPE_JAAS_SUBJECT
static final java.lang.String PREDEFINED_SLOT_USER_JAAS_SUBJECT
Method Detail |
---|
java.util.Iterator getCredentialTypes()
String
objects representing all
credential types that are registered in the credential type
registryjava.lang.String getSlotDescription(java.lang.String slotId, java.util.Locale locale) throws PortletServiceException
null
, the
default locale will be used.
java.util.Iterator getAccessibleSlots(PortletRequest request) throws PortletServiceException
void setCredentialSecretBinary(java.lang.String slotId, byte[] secret, PortletRequest portletRequest) throws PortletServiceException
void setCredentialSecretUserPassword(java.lang.String slotId, java.lang.String userId, char[] password, PortletRequest portletRequest) throws PortletServiceException
CredentialSlotConfig createSlot(java.lang.String resourceName, ObjectID segmentId, java.util.Map descriptions, java.util.Map keywords, int secretType, boolean active, boolean portletPrivate, PortletRequest portletRequest) throws PortletServiceException
Map
, keyed
by their corresponding Locale
objects Key:
Locale
(max length 64 characters) Value:
String
(max length 255 characters) The given map
can be empty.Map
, keyed by
their corresponding Locale
objects Key:
Locale
(max length 64 characters). Can be null.
Value: String
(max length 255 characters) The given
map can be empty.true
) or both as
active and passive credential objects (false
)true
) or shared between all of a user's
portlets (false
).void deleteSlot(java.lang.String slotName) throws PortletServiceException
ObjectID getDefaultUserVaultSegmentId() throws PortletServiceException
null
, if no user managed vault segment is
configured in the system.
ObjectID getDefaultUserVaultSegmentPortalId() throws PortletServiceException
null
, if no user managed vault segment is
configured in the system.
java.util.List getAllVaultSegments() throws PortletServiceException
Credential getCredential(java.lang.String slotId, java.lang.String type, java.util.Map config, PortletRequest request) throws PortletServiceException, CredentialSecretNotSetException
Credential getLTPATokenCredential(java.lang.String slotId, java.util.Map config, PortletRequest request) throws PortletServiceException, CredentialSecretNotSetException
javax.security.auth.Subject getUserSubject(PortletRequest request) throws PortletServiceException
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |