Class AuthChallenge
java.lang.Object
com.inductiveautomation.ignition.common.config.BasicPropertySet
com.inductiveautomation.ignition.common.user.AuthChallenge
- All Implemented Interfaces:
Countable
,Extendable<PropertySet>
,Mergable<PropertySet>
,MutablePropertyValueSource
,ObservablePropertySet
,PropertySet
,PropertyValueSource
,Serializable
,Iterable<PropertyValue>
- Direct Known Subclasses:
BasicAuthChallenge
An authentication challenge represents an attempt to log-in. This may contain a username and password, but could be
something else, for example a badge swipe. Due to serialization requirements, all auth challenge properties must be
string properties.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
BasicPropertySet.Builder
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Convenience method to see if this is a standard login attemptabstract void
decrypt()
Called after transport, before authentication.abstract void
encrypt()
Prepare this auth challenge for transport.static AuthChallenge
abstract String
getActor()
Return a string representation of the "actor" this auth challenge represents (e.g.static void
<T> void
void
set
(PropertyValue propValue) toJSON()
static void
Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
addPropertyChangeListener, addPropertyChangeListener, change, coerceValue, contains, equals, firePropertyChange, get, getCount, getExtension, getOrDefault, getOrElse, getProperties, getRaw, getRawValueMap, getValues, isExtended, isInherited, iterator, of, remove, removePropertyChangeListener, removePropertyChangeListener, setDirect, setImpl, setRawValueMap, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, newDefaultInstance, newExtension
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
getNonNull, getNonNull
-
Constructor Details
-
AuthChallenge
public AuthChallenge()
-
-
Method Details
-
register
-
unregister
-
fromJSON
- Throws:
IllegalArgumentException
-
containsUsernameAndPassword
public abstract boolean containsUsernameAndPassword()Convenience method to see if this is a standard login attempt -
getActor
Return a string representation of the "actor" this auth challenge represents (e.g. a username) -
encrypt
public abstract void encrypt()Prepare this auth challenge for transport. After this is called, there should not be any sensitive plaintext information in the property set. -
decrypt
public abstract void decrypt()Called after transport, before authentication. After this is called, sensitive information may appear in plaintext in this object -
set
- Specified by:
set
in interfaceMutablePropertyValueSource
- Overrides:
set
in classBasicPropertySet
-
set
- Specified by:
set
in interfaceMutablePropertyValueSource
- Overrides:
set
in classBasicPropertySet
-
toJSON
-