Search in sources :

Example 1 with RMListenerProxy

use of org.ow2.proactive.resourcemanager.common.util.RMListenerProxy in project scheduling by ow2-proactive.

the class RMProxyUserInterfaceTest method createRMCachingProxyUserInterface.

private RMListenerProxy createRMCachingProxyUserInterface() throws Exception {
    RMListenerProxy proxyUserInterface = PAActiveObject.newActive(RMListenerProxy.class, new Object[] {});
    final RMAuthentication auth = rmHelper.getRMAuth();
    final PublicKey pubKey = auth.getPublicKey();
    final Credentials adminCreds = Credentials.createCredentials(new CredData(TestUsers.TEST.username, TestUsers.TEST.password), pubKey);
    proxyUserInterface.init(RMTHelper.getLocalUrl(), adminCreds);
    return proxyUserInterface;
}
Also used : RMListenerProxy(org.ow2.proactive.resourcemanager.common.util.RMListenerProxy) RMAuthentication(org.ow2.proactive.resourcemanager.authentication.RMAuthentication) PublicKey(java.security.PublicKey) CredData(org.ow2.proactive.authentication.crypto.CredData) Credentials(org.ow2.proactive.authentication.crypto.Credentials)

Aggregations

PublicKey (java.security.PublicKey)1 CredData (org.ow2.proactive.authentication.crypto.CredData)1 Credentials (org.ow2.proactive.authentication.crypto.Credentials)1 RMAuthentication (org.ow2.proactive.resourcemanager.authentication.RMAuthentication)1 RMListenerProxy (org.ow2.proactive.resourcemanager.common.util.RMListenerProxy)1