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,- java.io.Serializable,- java.lang.Iterable<PropertyValue>
 - Direct Known Subclasses:
- BasicAuthChallenge
 
 public abstract class AuthChallenge extends BasicPropertySet 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:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceAuthChallenge.AuthChallengeParser- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySetBasicPropertySet.Builder
 
- 
 - 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySetEMPTY
 
- 
 - 
Constructor SummaryConstructors Constructor Description AuthChallenge()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleancontainsUsernameAndPassword()Convenience 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 AuthChallengefromJSON(java.lang.String jsonString)abstract java.lang.StringgetActor()Return a string representation of the "actor" this auth challenge represents (e.g.static voidregister(AuthChallenge.AuthChallengeParser parser)<T> voidset(Property<T> prop, T value)voidset(PropertyValue propValue)java.lang.StringtoJSON()static voidunregister(AuthChallenge.AuthChallengeParser parser)- 
Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySetaddPropertyChangeListener, 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.Objectclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSourcemerge
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySetextend, newDefaultInstance, newExtension
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSourcegetNonNull, getNonNull
 
- 
 
- 
- 
- 
Method Detail- 
registerpublic static void register(AuthChallenge.AuthChallengeParser parser) 
 - 
unregisterpublic static void unregister(AuthChallenge.AuthChallengeParser parser) 
 - 
fromJSONpublic static AuthChallenge fromJSON(java.lang.String jsonString) throws java.lang.IllegalArgumentException - Throws:
- java.lang.IllegalArgumentException
 
 - 
containsUsernameAndPasswordpublic abstract boolean containsUsernameAndPassword() Convenience method to see if this is a standard login attempt
 - 
getActorpublic abstract java.lang.String getActor() Return a string representation of the "actor" this auth challenge represents (e.g. a username)
 - 
encryptpublic 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.
 - 
decryptpublic abstract void decrypt() Called after transport, before authentication. After this is called, sensitive information may appear in plaintext in this object
 - 
setpublic <T> void set(Property<T> prop, T value) - Specified by:
- setin interface- MutablePropertyValueSource
- Overrides:
- setin class- BasicPropertySet
 
 - 
setpublic void set(PropertyValue propValue) - Specified by:
- setin interface- MutablePropertyValueSource
- Overrides:
- setin class- BasicPropertySet
 
 - 
toJSONpublic java.lang.String toJSON() 
 
- 
 
-