Class BasicAuthChallenge
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.BasicPropertySet
-
- com.inductiveautomation.ignition.common.user.AuthChallenge
-
- com.inductiveautomation.ignition.common.user.BasicAuthChallenge
-
- All Implemented Interfaces:
Countable,Extendable<PropertySet>,Mergable<PropertySet>,MutablePropertyValueSource,ObservablePropertySet,PropertySet,PropertyValueSource,java.io.Serializable,java.lang.Iterable<PropertyValue>
- Direct Known Subclasses:
ADSSOAuthChallenge,BadgeAuthChallenge
public class BasicAuthChallenge extends AuthChallenge
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasicAuthChallenge.Parser-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.user.AuthChallenge
AuthChallenge.AuthChallengeParser
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
BasicPropertySet.Builder
-
-
Field Summary
Fields Modifier and Type Field Description static Property<java.lang.String>PasswordEncstatic Property<java.lang.String>UsernameEnc-
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicAuthChallenge()Used from the parser - not publicBasicAuthChallenge(java.lang.String username, java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsUsernameAndPassword()Convenience method to see if this is a standard login attemptvoiddecrypt()Called after transport, before authentication.protected voiddecrypt(Property<java.lang.String> plain, Property<java.lang.String> cipher)voidencrypt()Prepare this auth challenge for transport.protected voidencrypt(Property<java.lang.String> plain, Property<java.lang.String> cipher)Encrypts the value of plain storing it in cipherjava.lang.StringgetActor()Return a string representation of the "actor" this auth challenge represents (e.g.java.lang.StringtoString()-
Methods inherited from class com.inductiveautomation.ignition.common.user.AuthChallenge
fromJSON, register, set, set, toJSON, unregister
-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
getActor
public java.lang.String getActor()
Description copied from class:AuthChallengeReturn a string representation of the "actor" this auth challenge represents (e.g. a username)- Specified by:
getActorin classAuthChallenge
-
containsUsernameAndPassword
public boolean containsUsernameAndPassword()
Description copied from class:AuthChallengeConvenience method to see if this is a standard login attempt- Specified by:
containsUsernameAndPasswordin classAuthChallenge
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBasicPropertySet
-
encrypt
public void encrypt()
Description copied from class:AuthChallengePrepare this auth challenge for transport. After this is called, there should not be any sensitive plaintext information in the property set.- Specified by:
encryptin classAuthChallenge
-
decrypt
public void decrypt()
Description copied from class:AuthChallengeCalled after transport, before authentication. After this is called, sensitive information may appear in plaintext in this object- Specified by:
decryptin classAuthChallenge
-
encrypt
protected void encrypt(Property<java.lang.String> plain, Property<java.lang.String> cipher)
Encrypts the value of plain storing it in cipher
-
-