public abstract class AuthenticationPlugin extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_LOG_CATEGORY |
Modifier | Constructor and Description |
---|---|
protected |
AuthenticationPlugin(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationListener(AuthenticationListener aListener)
Adds an AuthenticationListener.
|
abstract void |
beginHandshake(ParticipantData pd)
Begins a handshake protocol with given ParticipantData.
|
Configuration |
getConfiguration() |
CryptoPlugin |
getCryptoPlugin()
Gets CryptoPlugin associated with this AuthenticationPlugin
|
abstract Guid |
getGuid()
Gets the Guid of local participant
|
abstract IdentityToken |
getIdentityToken()
Gets an IdentityToken that will be send to remote participant
during discovery. null value may be returned if implementing
AuthenticationPlugin does not support authentication protocol as specified
in DDS security specification.
|
static AuthenticationPlugin |
getInstance(String name)
Gets an instance of AuthenticationPlugin registered with given name
|
abstract String |
getName()
Gets the name of this plugin.
|
void |
init(Participant p)
This method is called after security endpoints have been created by participant.
|
protected void |
notifyListenersOfFailure(ParticipantData pd)
Notifies AuthenticationListeners of failed authentication
|
protected void |
notifyListenersOfSuccess(net.sf.jrtps.udds.security.AuthenticationData ad)
Notifies AuthenticationListeners of successful authentication
|
static void |
registerPlugin(AuthenticationPlugin plugin)
Registers a AuthenticationPlugin.
|
void |
removeAuthenticationListener(AuthenticationListener aListener)
Removes an AuthenticationListener.
|
public static final String AUTH_LOG_CATEGORY
protected AuthenticationPlugin(Configuration conf)
public Configuration getConfiguration()
public abstract String getName()
public static void registerPlugin(AuthenticationPlugin plugin)
plugin
- AuthenticationPluginpublic static AuthenticationPlugin getInstance(String name)
name
- name of the plugin. If name is null or empty string, it is considered
as "none".RuntimeException
- if there was not AuthenticationPlugin registered with given namepublic void init(Participant p)
p
- Participantpublic abstract void beginHandshake(ParticipantData pd)
pd
- ParticipantDatapublic abstract IdentityToken getIdentityToken()
public void addAuthenticationListener(AuthenticationListener aListener)
aListener
- AuthenticationListenerpublic void removeAuthenticationListener(AuthenticationListener aListener)
aListener
- AuthenticationListenerprotected void notifyListenersOfSuccess(net.sf.jrtps.udds.security.AuthenticationData ad)
ad
- AuthenticationDataprotected void notifyListenersOfFailure(ParticipantData pd)
pd
- ParticipantDatapublic abstract Guid getGuid()
public CryptoPlugin getCryptoPlugin()
Copyright © 2016. All rights reserved.