- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which Agent I need to choose for my rquirement?
Hi All,
I need to develop authenticatior for WSO2 IS ( which is a java based
products integrated with apache tomcat.)
In my architecture I can able to sending the REST Calls and getting access
from the agent.
For this requirement which agent is best for me to do this work. Because
each and every agents are platform independent so I have confused to choose
which is best for me.
Thank you
awaiting for your reply/s
Nifras
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Nifras,
Please check the below link for RSA Authentication Agent API 8.1 Service Pack 3 for C and Java
RSA SecureCare Online : Log In
So kindly check and advise us back if there is any assistance needed from our side.
Best Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would say either use the Authentication Agent Java SDK as mentioned by Hussein above, or since you mentioned REST calls you can look into purchasing Authentication Manager Integrated Services (AMIS).
AMIS provides a REST API interfaces for both administration and authentication of Authentication Manager. You can contact your RSA Account Manager or Sales rep to link you with RSA Professional Services for more information about AMIS and the AM Prime Suite.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hussein,
I could not able to access the above link. Is this RSA SDK which Mostafa
said on this thread. However, I'm now trying to using create RSA webservice
client from the wsdl. Do you have any guide material for webservices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
While I'm running the web services on my local environment. I got the
following error.
Jun 16, 2016 2:29:42 PM org.apache.axis.utils.JavaUtils
isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
Remote Exception: com.rsa.authn.AuthenticationCommandException: Access
Denied
AFAIK, from debugging this error comes on the line
cmd = (LoginCommand)binding.executeCommand(null, cmd);
Here is my full snapshot of my code.
What I'm wrong. what is the username and password I need to give instead of
rsaadmin & !masteradmin
package com.wso2.rsa.client;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import com.rsa.authn.LoginCommand;
import com.rsa.authn.data.AbstractParameterDTO;
import com.rsa.authn.data.FieldParameterDTO;
import com.rsa.common.AuthenticationConstants;
import com.rsa.webservice.CommandServerServiceLocator;
import com.rsa.webservice.CommandServerSoapBindingStub;
import com.sun.xml.internal.org.jvnet.staxex.NamespaceContextEx.Binding;
public class WSClient {
public static void main(String[] args) {
System.setProperty("axis.socketSecureFactory",
"com.rsa.webservice.transport.IMSSecureSocketFactory");
System.setProperty(
"javax.net.ssl.trustStore",
"C:
Users
NifrasIsmail
Documents
Project
RSA
workspace
RSA_WS_Client
lib
trust.jks");
WSClient client = new WSClient();
String sessionId = client.initSession("rsaadmin", "!masteradmin");
System.out.println(sessionId);
}
private CommandServerSoapBindingStub initBinding(String cmdClient,
String password, String url) {
CommandServerSoapBindingStub binding = null;
try {
CommandServerServiceLocator csl = new CommandServerServiceLocator();
csl.setCommandServerEndpointAddress(url);
binding = (CommandServerSoapBindingStub) csl.getCommandServer();
binding.setUsername(cmdClient);
binding.setPassword(password);
binding.setMaintainSession(true);
binding.setTimeout(60000); // 60 seconds, in milliseconds
} catch (ServiceException exception) {
System.err.println("Service Exception: " + exception);
System.exit(1);
}
return binding;
}
private String initSession(String user, String pass) {
FieldParameterDTO usernameField = new FieldParameterDTO();
FieldParameterDTO passwordField = new FieldParameterDTO();
usernameField.setValue(user);
usernameField.setPromptKey(AuthenticationConstants.PRINCIPAL_ID);
passwordField.setValue(pass);
passwordField.setPromptKey(AuthenticationConstants.PASSWORD);
LoginCommand cmd = new LoginCommand();
cmd.setAuthenticationMethodId(AuthenticationConstants.RSA_PASSWORD_METHOD);
cmd.setParameters(new AbstractParameterDTO[] { usernameField,
passwordField });
try {
CommandServerSoapBindingStub binding = initBinding("CmdClient_hscjqmj9",
"ChOOWR5Y8OvOHlFg2bCDe4Yro2VS4f", "
https://rsa.wso2.local:7002/ims-ws/services/CommandServer");
cmd = (LoginCommand)binding.executeCommand(null, cmd);
} catch(RemoteException exception) {
System.err.println("Remote Exception: " + exception);
System.exit(1);
}
return cmd.getSessionId();
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is work for SC admin
