PStore Service  Locate

Use the PStore Service to manage the WSO2 SOA Enablement Server protected store. The protected store consists of the User Store and the Key Store. The User Store contains user names and passwords or certificates. The Key Store contains key entries and trusted certificates.

The PStore Service is included in the Security-Services component.

Provided WSO2 SOA Enablement Server is running in secure mode on localhost and default ports, you access the PStore Service SOAP endpoint at http://localhost:6060/admin/pstoreservice.

All methods provided by the PStore Service are protected by authorization checks. A full listing of methods is in the Javadoc at org.systinet.wasp.admin.security.PStoreService. A list of the functionality and associated methods follows:

Table 5. UserStore Functionality and Methods

FunctionalityMethod
Get a list of WSO2 SOA Enablement Server users

getUsers(java.util.HashSet)

getUserIds()

Add new user

addUser(java.lang.String)

Delete user

deleteUser(java.lang.String)

Get user properties, singly or as array

getUserProperties(String userId, HashSet supported)

getUserProperty(String userId, String key, HashSet supported)

Set user properties, such as password or certificate, singly or as array

setUserProperties(String userId, UserProperty[] properties)

setUserProperty(String userId, String key, HashSet supported)

Remove user property

removeUserProperty(String userId, String key)

Get supported property name

getSupportedAttributes()

Determine whether a user with the given name and properties is in the User Store

hasUser(String userId, UserProperty[] filter)

Table 6. KeyStore Functionality and Methods

FunctionalityMethod
Determine whether the Key Store contains a given alias

containsAlias(String alias)

Delete entry identified by its alias

deleteEntry(String alias)

Return the alias a certificate is associated with

getAlias(cert)

Return all unique aliases in the Key Store with their types

getAliasEntries()

Return all unique aliases in the Key Store

getAliases()

Return certificate chain associated with an alias

getCertificateChain(String alias)

Return key (usually private) associated with a given alias and protected by a given password

getKey(String alias, String password)

Return encrypted key material in an instance of KeyStoreEntry

getKeyEntry(String alias)

Determine whether the entry identified by an alias is a key entry

isKeyEntry(String alias)

Create or overwrite trusted certificate entry

setCertificateEntry(String alias, Certificate chain)

Create or overwrite key entry using the data in the encoded key

setKeyEntry(String alias, byte[] encKey, byte[] keyAlg, byte[] keyFormat, byte[] salt, Certificate chain)

Create or overwrite key entry

setKeyEntry(String alias, String password, Key key, Certificate chain)

Set KeyStoreSource associated with this Key Store to the given object

setKeyEntry(String alias, byte encKey, byte keyAlg, byte keyFormat, byte salt, Certificate chain)