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 class
BasicAuthChallenge.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>
PasswordEnc
static Property<java.lang.String>
UsernameEnc
-
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicAuthChallenge()
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 boolean
containsUsernameAndPassword()
Convenience method to see if this is a standard login attemptvoid
decrypt()
Called after transport, before authentication.protected void
decrypt(Property<java.lang.String> plain, Property<java.lang.String> cipher)
void
encrypt()
Prepare this auth challenge for transport.protected void
encrypt(Property<java.lang.String> plain, Property<java.lang.String> cipher)
Encrypts the value of plain storing it in cipherjava.lang.String
getActor()
Return a string representation of the "actor" this auth challenge represents (e.g.java.lang.String
toString()
-
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:AuthChallenge
Return a string representation of the "actor" this auth challenge represents (e.g. a username)- Specified by:
getActor
in classAuthChallenge
-
containsUsernameAndPassword
public boolean containsUsernameAndPassword()
Description copied from class:AuthChallenge
Convenience method to see if this is a standard login attempt- Specified by:
containsUsernameAndPassword
in classAuthChallenge
-
toString
public java.lang.String toString()
- Overrides:
toString
in classBasicPropertySet
-
encrypt
public void encrypt()
Description copied from class:AuthChallenge
Prepare this auth challenge for transport. After this is called, there should not be any sensitive plaintext information in the property set.- Specified by:
encrypt
in classAuthChallenge
-
decrypt
public void decrypt()
Description copied from class:AuthChallenge
Called after transport, before authentication. After this is called, sensitive information may appear in plaintext in this object- Specified by:
decrypt
in classAuthChallenge
-
encrypt
protected void encrypt(Property<java.lang.String> plain, Property<java.lang.String> cipher)
Encrypts the value of plain storing it in cipher
-
-