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
Functionality | Method |
---|---|
Get a list of WSO2 SOA Enablement Server users | |
Add new user | |
Delete user | |
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 | |
Get supported property name | |
Determine whether a user with the given name and properties is in the User Store |
Table 6. KeyStore Functionality and Methods
Functionality | Method |
---|---|
Determine whether the Key Store contains a given alias | |
Delete entry identified by its alias | |
Return the alias a certificate is associated with | |
Return all unique aliases in the Key Store with their types | |
Return all unique aliases in the Key Store | |
Return certificate chain associated with an alias | |
Return key (usually private) associated with a given alias and protected by a given password | |
Return encrypted key material in an instance of KeyStoreEntry | |
Determine whether the entry identified by an alias is a key entry | |
Create or overwrite trusted certificate entry | |
Create or overwrite key entry using the data in the encoded key | |
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) |