on 06-02-2010 7:17 PM
Hi,
While creating a custom action for MII 12.1 I need to access the system connection aliases and credential aliases available in the system to display and use in the action block configuration. Is there any API available in the BLS SDK to access the aliases created in the System Connection Editor and Credential Store?
Thanks in advance,
Dipankar
Hi Dipankar,
The Illuminator service SystemInfo can be used with mode as CredentialList and ConnectionList respectively to get the lists. However ConnectionList expects 'type' parameter where the value is any one of the connection types present in MII.
Thanks,
Suhas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is the same as using IActionInstance in the Custom action blocks. Declare it as a method parameter in the action being defined and use it inside that method. During transaction runtime the implementation is executed.
Thanks,
Suhas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In MII 12.2 there is an interface called 'IAdminInstance' exposed through the BLS SDK which gives access to credential and connection stores.
Thanks,
Suhas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm looking for the same functionality, to you found a solution for this?
In my case, I have a custom action that reads data from a 3rd party app, so I want to use the MII credentials to forward these to the customer action, where I can you this credential to authenticate against the 3rd party app?
regards
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm a step further!
There is a class com.sap.xmii.storage.credentials.Credential, now I would need a JAR File where this class is in?
I found following code for Custom Action using credentials:
private static Credential getCredentials(String alias, String username, PasswordData password, ILogWriter writer)
{
Credential credential = null;
if (!(StringUtil.isNullOrEmpty(alias))) {
try {
credential = CredentialStoreManager.lookup(alias, CredentialType.BLS);
if (credential == null) writer.log(LogLevel.ERROR, "Credential alias '" + alias + "' does not exist");
}
catch (Exception e) {
writer.log(LogLevel.ERROR, "Unable to load credentials for alias " + alias + "; " + e.getLocalizedMessage());
}
}
if (credential == null) {
if (StringUtil.isNullOrEmpty(username)) {
username = "anonymous";
password = PasswordData.ANONYMOUS_PASSWORD;
}
credential = new Credential(username, password.getValue());
}
return credential;
}
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.