Interface PluginTools
com.sun.identity.sm.ServiceSchemaManager
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
installAuthNodeDynamically
(Class<?> nodeClass) Installs a new authentication node that is generated at runtime.void
installIdRepo
(Class<?> idRepoConfig) Installs a new identity repository.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.void
registerService
(Class<?> serviceClass) Deprecated.UseinstallService(Class)
andstartService(Class)
as appropriate.Resolves a file path relative to the AM installation location.void
startAuthNode
(Class<?> nodeClass) Starts an existing authentication node.void
startIdRepo
(Class<?> idRepoConfig) Starts an existing identity repository.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
uninstallIdRepo
(Class<?> idRepoConfig) Uninstalls and de-registers an identity repository.void
upgradeAuthNode
(Class<?> nodeClass) Upgrades an existing authentication node.void
upgradeIdRepo
(Class<?> idRepoConfig) Upgrades an existing identity repository.
-
Field Details
-
DEVELOPMENT_VERSION
- See Also:
-
-
Method Details
-
addSmsService
Add a new SMS service.- Parameters:
inputStream
- A stream from which the service schema XML can be read.- Throws:
PluginException
- If the service cannot be registered.
-
addAuthModule
Add a new Auth Module - also registers the SMS service.- Parameters:
moduleClass
- Thecom.sun.identity.authentication.spi.AMLoginModule
class.inputStream
- A stream from which the service schema XML can be read.- Throws:
PluginException
- If either the auth module or the underlying service cannot be registered.
-
registerAuthNode
Deprecated.UseinstallAuthNode(Class)
andstartAuthNode(Class)
as appropriate.Installs and registers an authentication node for execution by trees.This method should be called both on plugin installation and on plugin startup.
- Parameters:
nodeClass
- Theorg.forgerock.openam.auth.node.api.Node
class.- Throws:
PluginException
- If the auth node does not implement theNode
interface, or cannot be registered for some other reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.
-
installSecretsStoreType
Installs and registers a secrets store type for use in obtaining secrets for services.This method should be called only plugin installation.
- Parameters:
secretsStoreClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.
-
startSecretsStoreType
Installs and registers a secrets store type for use in obtaining secrets for services.This method should be called only on plugin startup.
- Parameters:
secretsStoreClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.
-
uninstallAuthNode
Uninstalls and de-registers an authentication node for execution by trees.- Parameters:
nodeClass
- Theorg.forgerock.openam.auth.node.api.Node
class.- Throws:
PluginException
- If the auth node does not implement theNode
interface, or cannot be de-registered for some other reason.
-
registerService
Deprecated.UseinstallService(Class)
andstartService(Class)
as appropriate.Register an annotated service class.This method should be called both on plugin installation and on plugin startup.
- Parameters:
serviceClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.
-
installService
Installs an annotated service class.This method should be called only on plugin installation.
- Parameters:
serviceClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be installed for some reason.
-
startService
Installs an annotated service class.This method should be called on plugin startup.
- Parameters:
serviceClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be started for some reason.
-
upgradeAuthNode
Upgrades an existing authentication node.This method should be called both on plugin installation and on plugin startup.
- Parameters:
nodeClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.
-
installAuthNode
Installs a new authentication node.This method should be called both on plugin installation and on plugin startup.
- Parameters:
nodeClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.
-
installAuthNodeDynamically
Installs a new authentication node that is generated at runtime.This method can be called any time, even after the plugins have finished installation and startup.
- Parameters:
nodeClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.
-
addNodeToRegistry
Adds the node to the registry of nodes.- Parameters:
nodeClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
IllegalArgumentException
- If the nodeClass is not annotated correctly.
-
startAuthNode
Starts an existing authentication node.This method should be called both on plugin installation and on plugin startup.
- Parameters:
nodeClass
- Theorg.forgerock.openam.annotations.sm.Config
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the nodeClass is not annotated correctly.
-
installIdRepo
Installs a new identity repository.This method should be called both on plugin installation and on plugin startup.
- Parameters:
idRepoConfig
- Theorg.forgerock.openam.annotations.sm.IdRepoConfig
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the idRepoConfig is not annotated correctly.
-
upgradeIdRepo
Upgrades an existing identity repository.This method should be called both on plugin installation and on plugin startup.
- Parameters:
idRepoConfig
- Theorg.forgerock.openam.annotations.sm.IdRepoConfig
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the idRepoConfig is not annotated correctly.
-
startIdRepo
Starts an existing identity repository.This method should be called both on plugin installation and on plugin startup.
- Parameters:
idRepoConfig
- Theorg.forgerock.openam.annotations.sm.IdRepoConfig
-annotated class.- Throws:
PluginException
- If the class cannot be registered for some reason.IllegalArgumentException
- If the idRepoConfig is not annotated correctly.
-
uninstallIdRepo
Uninstalls and de-registers an identity repository.- Parameters:
idRepoConfig
- Theorg.forgerock.openam.annotations.sm.IdRepoConfig
-annotated class.- Throws:
PluginException
- If the class cannot be unregistered for some reason.IllegalArgumentException
- If the idRepoConfig is not annotated correctly.
-
resolveInstallationPath
Resolves a file path relative to the AM installation location. For example, if AM is installed into/home/forgerock/am
and the pathfoo/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.
- Parameters:
path
- the path to resolve relative to the AM installation directory.- Returns:
- the resolved path.
-
installAuthNode(Class)
andstartAuthNode(Class)
as appropriate.