public interface PluginTools
com.sun.identity.sm.ServiceSchemaManager
Modifier and Type | Method and Description |
---|---|
void |
addAuthModule(Class<?> moduleClass,
InputStream inputStream)
Add a new Auth Module - also registers the SMS service.
|
void |
addNodeToRegistry(Class<?> nodeClass)
Adds the node to the registry of nodes.
|
void |
addSmsService(InputStream inputStream)
Add a new SMS service.
|
void |
installAuthNode(Class<?> nodeClass)
Installs a new authentication node.
|
void |
installSecretsStoreType(Class<?> secretsStoreClass)
Installs and registers a secrets store type for use in obtaining secrets for services.
|
void |
installService(Class<?> serviceClass)
Installs an annotated service class.
|
void |
registerAuthNode(Class<?> nodeClass)
Deprecated.
Use
PluginTools.installAuthNode(Class) and PluginTools.startAuthNode(Class) as appropriate. |
void |
registerService(Class<?> serviceClass)
Deprecated.
Use
PluginTools.installService(Class) and PluginTools.startService(Class) as appropriate. |
Path |
resolveInstallationPath(String path)
Resolves a file path relative to the AM installation location.
|
void |
startAuthNode(Class<?> nodeClass)
Starts an existing authentication node.
|
void |
startSecretsStoreType(Class<?> secretsStoreClass)
Installs and registers a secrets store type for use in obtaining secrets for services.
|
void |
startService(Class<?> serviceClass)
Installs an annotated service class.
|
void |
uninstallAuthNode(Class<?> nodeClass)
Uninstalls and de-registers an authentication node for execution by trees.
|
void |
upgradeAuthNode(Class<?> nodeClass)
Upgrades an existing authentication node.
|
void addSmsService(InputStream inputStream) throws PluginException
inputStream
- A stream from which the service schema XML can be read.PluginException
- If the service cannot be registered.void addAuthModule(Class<?> moduleClass, InputStream inputStream) throws PluginException
moduleClass
- The com.sun.identity.authentication.spi.AMLoginModule
class.inputStream
- A stream from which the service schema XML can be read.PluginException
- If either the auth module or the underlying service cannot be registered.@Deprecated void registerAuthNode(Class<?> nodeClass) throws PluginException
PluginTools.installAuthNode(Class)
and PluginTools.startAuthNode(Class)
as appropriate.This method should be called both on plugin installation and on plugin startup.
nodeClass
- The org.forgerock.openam.auth.node.api.Node
class.PluginException
- If the auth node does not implement the Node
interface, or cannot be registered
for some other reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.void installSecretsStoreType(Class<?> secretsStoreClass) throws PluginException
This method should be called only plugin installation.
secretsStoreClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be registered for some reason.void startSecretsStoreType(Class<?> secretsStoreClass) throws PluginException
This method should be called only on plugin startup.
secretsStoreClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be registered for some reason.void uninstallAuthNode(Class<?> nodeClass) throws PluginException
nodeClass
- The org.forgerock.openam.auth.node.api.Node
class.PluginException
- If the auth node does not implement the Node
interface, or cannot be
de-registered for some other reason.@Deprecated void registerService(Class<?> serviceClass) throws PluginException
PluginTools.installService(Class)
and PluginTools.startService(Class)
as appropriate.This method should be called both on plugin installation and on plugin startup.
serviceClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be registered for some reason.void installService(Class<?> serviceClass) throws PluginException
This method should be called only on plugin installation.
serviceClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be installed for some reason.void startService(Class<?> serviceClass) throws PluginException
This method should be called on plugin startup.
serviceClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be started for some reason.void upgradeAuthNode(Class<?> nodeClass) throws PluginException
This method should be called both on plugin installation and on plugin startup.
nodeClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.void installAuthNode(Class<?> nodeClass) throws PluginException
This method should be called both on plugin installation and on plugin startup.
nodeClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.void addNodeToRegistry(Class<?> nodeClass)
nodeClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.IllegalArgumentException
- If the nodeClass is not annotated correctly.void startAuthNode(Class<?> nodeClass) throws PluginException
This method should be called both on plugin installation and on plugin startup.
nodeClass
- The org.forgerock.openam.annotations.sm.Config
-annotated class.PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.Path resolveInstallationPath(String path)
/home/forgerock/am
and the path foo/bar
is passed then this will return the path object for
/home/forgerock/am/foo/bar
. No attempt is made to check if the path actually exists.
Non-ForgeRock authored plugins should avoid relying on particular paths existing in the installation directory as these may change during version upgrades.
path
- the path to resolve relative to the AM installation directory.Copyright © 2010-2018, ForgeRock All Rights Reserved.