Class Authenticator
java.lang.Object
com.thingworx.types.NamedObject
com.thingworx.persistence.common.PersistableNamedObject
com.thingworx.entities.RootEntity
com.thingworx.entities.ServiceProviderEntity
com.thingworx.security.authentication.Authenticator
- All Implemented Interfaces:
IConfigurableObject,INotScriptFriendly,ISupportsDeprecation,IDiffableObject,IAvatar,IEntityLifeCycleEvent,IPersistable,IServiceProvider,ITaggableObject,IDependencyScannableObject,IEntityDefinition,IPersistableObject<String>,IAuthenticator,IDesignTimeSecurable,IDesignTimeSecurableEntity,IRunTimeSecurable,IRunTimeSecurableEntity,ISecurable,IVisibilitySecurable,IVisibilitySecurableEntity,IAspectContainer,INamedObject,Serializable
- Direct Known Subclasses:
CustomAuthenticator,SecurityClaimsAuthenticator
@ThingworxExtensionApiClass(since={6,6})
public abstract class Authenticator
extends ServiceProviderEntity
implements IAuthenticator
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECTFields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, jakarta.servlet.FilterChain chain) voidService Category: Lifecycle Service Description: Disable this authenticator.voidService Category: Lifecycle Service Description: Enable this authenticator.org.slf4j.LoggerbooleanReturns the type of this entity.org.slf4j.Loggerintbooleanorg.slf4j.LoggerbooleanvoidinitializeEntity(ContextType contextType) Initializes the internal state of the entity.booleanisSessionValid(SessionValidationContext context) voidvoidsetCredentials(String userName) voidsetCredentials(String userName, String userPassword) voidsetEnabled(boolean value) voidsetPriority(int value) voidsetRequiresChallenge(boolean value) voidsetSupportsSession(boolean value) Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, preInitializeEntity, processAPIServiceRequest, processServiceRequestMethods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfigurationMethods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransientMethods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thingworx.security.authentication.IAuthenticator
authenticate, issueAuthenticationChallenge, matchesAuthRequestMethods inherited from interface com.thingworx.types.INamedObject
getDescription, getNameMethods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasIDMethods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getNameMethods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
Authenticator
-
-
Method Details
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntityReturns the type of this entity.
- Specified by:
getEntityTypein classRootEntity- Returns:
- the entity type
-
initializeEntity
@ThingworxExtensionApiMethod(since={9,0}) public void initializeEntity(ContextType contextType) throws Exception Description copied from class:RootEntityInitializes the internal state of the entity. This method may be called more than once on the same entity during initialization.
All metadata, including aspects and configuration tables, are available at this point in the lifecycle.
- Overrides:
initializeEntityin classServiceProviderEntity- Parameters:
contextType- the patch operation- Throws:
Exception- if an error occurs during the initialization process
-
authenticate
@ThingworxExtensionApiMethod(since={7,4}) public void authenticate(jakarta.servlet.http.HttpServletRequest httpRequest, jakarta.servlet.http.HttpServletResponse httpResponse, jakarta.servlet.FilterChain chain) throws AuthenticatorException - Specified by:
authenticatein interfaceIAuthenticator- Throws:
AuthenticatorException
-
getApplicationLogger
-
getSecurityLogger
-
getErrorLogger
-
getEnabled
-
setEnabled
-
getPriority
-
setPriority
-
setSupportsSession
-
getSupportsSession
-
getRequiresChallenge
-
setRequiresChallenge
-
setAuthenticationType
@ThingworxExtensionApiMethod(since={6,6}) public void setAuthenticationType(AuthenticationType value) -
getAuthenticationType
-
getCredentials
@ThingworxExtensionApiMethod(since={6,6}) public ThingworxUserNamePasswordCredentials getCredentials() -
setCredentials
-
setCredentials
@ThingworxExtensionApiMethod(since={6,6}) public void setCredentials(String userName, String userPassword) -
DisableAuthenticator
- Service Category:
- Lifecycle
- Service Description:
- Disable this authenticator.
- Throws:
Exception- if an error occurs
-
EnableAuthenticator
- Service Category:
- Lifecycle
- Service Description:
- Enable this authenticator.
- Throws:
Exception- if an error occurs
-
isSessionValid
@ThingworxExtensionApiMethod(since={10,1}) public boolean isSessionValid(SessionValidationContext context)
-