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 booleanConvenience method to see if this is a standard login attemptabstract voiddecrypt()Called after transport, before authentication.abstract voidencrypt()Prepare this auth challenge for transport.static AuthChallengeabstract StringgetActor()Return a string representation of the "actor" this auth challenge represents (e.g.static void<T> voidvoidset(PropertyValue propValue) toJSON()static voidMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
mergeMethods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, newDefaultInstance, newExtensionMethods 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:
setin interfaceMutablePropertyValueSource- Overrides:
setin classBasicPropertySet
-
set
- Specified by:
setin interfaceMutablePropertyValueSource- Overrides:
setin classBasicPropertySet
-
toJSON
-