Interface PluginTools
com.sun.identity.sm.ServiceSchemaManager-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAuthModule(Class<?> moduleClass, InputStream inputStream) Add a new Auth Module - also registers the SMS service.voidaddNodeToRegistry(Class<?> nodeClass) Adds the node to the registry of nodes.voidaddSmsService(InputStream inputStream) Add a new SMS service.voidinstallAuthNode(Class<?> nodeClass) Installs a new authentication node.voidinstallAuthNodeDynamically(Class<?> nodeClass) Installs a new authentication node that is generated at runtime.voidinstallIdRepo(Class<?> idRepoConfig) Installs a new identity repository.voidinstallSecretsStoreType(Class<?> secretsStoreClass) Installs and registers a secrets store type for use in obtaining secrets for services.voidinstallService(Class<?> serviceClass) Installs an annotated service class.voidregisterAuthNode(Class<?> nodeClass) Deprecated.voidregisterService(Class<?> serviceClass) Deprecated.UseinstallService(Class)andstartService(Class)as appropriate.Resolves a file path relative to the AM installation location.voidstartAuthNode(Class<?> nodeClass) Starts an existing authentication node.voidstartIdRepo(Class<?> idRepoConfig) Starts an existing identity repository.voidstartSecretsStoreType(Class<?> secretsStoreClass) Installs and registers a secrets store type for use in obtaining secrets for services.voidstartService(Class<?> serviceClass) Installs an annotated service class.voiduninstallAuthNode(Class<?> nodeClass) Uninstalls and de-registers an authentication node for execution by trees.voiduninstallIdRepo(Class<?> idRepoConfig) Uninstalls and de-registers an identity repository.voidupgradeAuthNode(Class<?> nodeClass) Upgrades an existing authentication node.voidupgradeIdRepo(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.AMLoginModuleclass.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.Nodeclass.- Throws:
PluginException- If the auth node does not implement theNodeinterface, 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.Nodeclass.- Throws:
PluginException- If the auth node does not implement theNodeinterface, 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/amand the pathfoo/baris 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.