public class RMAuthenticationImpl extends AuthenticationImpl implements RMAuthentication, org.objectweb.proactive.InitActive
privateKeyPath, publicKeyPath
Constructor and Description |
---|
RMAuthenticationImpl()
ProActive default constructor
|
RMAuthenticationImpl(RMCore rmcore) |
Modifier and Type | Method and Description |
---|---|
String |
getHostURL()
Return the URL of this Resource Manager.
|
String |
getJMXConnectorURL()
Return the JMX connector server URL used to contact this instance.
|
String |
getJMXConnectorURL(JMXTransportProtocol protocol)
Returns the address of the JMX connector server depending on the specified protocol.
|
org.apache.log4j.Logger |
getLogger()
Retrieves a corresponding logger.
|
protected String |
getLoginMethod()
Defines login method
|
void |
initActivity(org.objectweb.proactive.Body body)
Initializes the active object and register it in ProActive runtime
|
ResourceManager |
login(Credentials cred)
Performs user authentication
|
authenticate, getPrivateKey, getPublicKey, isActivated, runActivity, setActivated, terminate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, getPrivateKey, getPublicKey, isActivated
public RMAuthenticationImpl()
public RMAuthenticationImpl(RMCore rmcore)
public ResourceManager login(Credentials cred) throws LoginException
login
in interface RMAuthentication
cred
- - user encrypted login and passwordLoginException
- if user does not exist or password is incorrectpublic void initActivity(org.objectweb.proactive.Body body)
initActivity
in interface org.objectweb.proactive.InitActive
public org.apache.log4j.Logger getLogger()
Loggable
protected String getLoginMethod()
AuthenticationImpl
getLoginMethod
in class AuthenticationImpl
public String getJMXConnectorURL() throws JMException
getJMXConnectorURL
in interface Authentication
JMException
- if the JMX connector server could not be startedpublic String getJMXConnectorURL(JMXTransportProtocol protocol) throws JMException
getJMXConnectorURL
in interface Authentication
protocol
- the JMX transport protocolJMException
- in case of boot sequence failurepublic String getHostURL()
getHostURL
in interface Authentication