Record Class ADSSOAuthChallenge
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.user.ADSSOAuthChallenge
- All Implemented Interfaces:
AuthChallenge, Serializable
public record ADSSOAuthChallenge(@NonNull String username, @NonNull String domain)
extends Record
implements AuthChallenge
Auth challenge that contains a username and AD domain to attempt an SSO login
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionADSSOAuthChallenge(@NonNull String username, @NonNull String domain) Creates an instance of aADSSOAuthChallengerecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Stringdomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.getActor()A human-presentable string representation of the "actor" behind this auth challenge.final inthashCode()Returns a hash code value for this object.static @Nullable ADSSOAuthChallengeUtility method to grab the current active directory username and domain name.final StringtoString()Returns a string representation of this record class.@NonNull Stringusername()Returns the value of theusernamerecord component.
-
Field Details
-
DOMAIN_KEY
- See Also:
-
-
Constructor Details
-
ADSSOAuthChallenge
-
-
Method Details
-
getActor
Description copied from interface:AuthChallengeA human-presentable string representation of the "actor" behind this auth challenge.- Specified by:
getActorin interfaceAuthChallenge
-
ofLocalSystem
Utility method to grab the current active directory username and domain name. Will fail on anything but Windows, of course. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-