public interface Authentication extends Loggable, Serializable
Modifier and Type | Method and Description |
---|---|
Subject |
authenticate(Credentials cred)
Performs login.
|
String |
getHostURL()
Return the URL of this Instance.
|
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.
|
byte[] |
getPrivateKey()
Request this Authentication's private key for credentials encryption
|
PublicKey |
getPublicKey()
Request this Authentication's public key for credentials encryption
|
org.objectweb.proactive.core.util.wrapper.BooleanWrapper |
isActivated()
Checks whether an authentication is activated or in other words is ready to authenticate users.
|
org.objectweb.proactive.core.util.wrapper.BooleanWrapper isActivated()
PublicKey getPublicKey() throws LoginException
LoginException
- the key could not be retrievedbyte[] getPrivateKey() throws LoginException
LoginException
- the key could not be retrievedString getJMXConnectorURL() throws JMException
JMException
- if the JMX connector server could not be startedString getJMXConnectorURL(JMXTransportProtocol protocol) throws JMException
protocol
- the JMX transport protocolJMException
- in case of boot sequence failureString getHostURL()
Subject authenticate(Credentials cred) throws LoginException
cred
- encrypted username and passwordLoginException
- if username or password is incorrect.