Class InteractiveLogins
java.lang.Object
ecmwf.ecpds.extension.InteractiveLogins
- All Implemented Interfaces:
AutoCloseable
Bounded, single-use login transactions owned by the Master. No tokens or identities come from the browser.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionInteractiveLogins(InteractiveLoginProvider provider, Map<String, String> mappings) -
Method Summary
Modifier and TypeMethodDescriptionbeginRotation(String binding, String origin, InteractiveLogins.RotationActivation activation, InteractiveLogins.RotationPolicy policy) static Stringvoidclear()voidclose()voidcompleteRotation(String state, String binding, String origin, String code, InteractiveLogins.RotationActivation activation, InteractiveLogins.RotationPolicy policy) Consumes the matching activation challenge and verifies fresh MFA when required.static InteractiveLoginsstatic Stringrandom()static voidrequireHttps(URI uri)
-
Constructor Details
-
InteractiveLogins
public InteractiveLogins(InteractiveLoginProvider provider, Map<String, String> mappings) throws IOException- Throws:
IOException
-
-
Method Details
-
load
public static InteractiveLogins load(String root, Map<String, String> options, Map<String, throws IOExceptionString> mappings) - Throws:
IOException
-
displayName
-
begin
- Throws:
IOException
-
beginRotation
public InteractiveLogins.Challenge beginRotation(String binding, String origin, InteractiveLogins.RotationActivation activation, InteractiveLogins.RotationPolicy policy) throws IOException - Throws:
IOException
-
complete
- Throws:
IOException
-
completeRotation
public void completeRotation(String state, String binding, String origin, String code, InteractiveLogins.RotationActivation activation, InteractiveLogins.RotationPolicy policy) throws IOException Consumes the matching activation challenge and verifies fresh MFA when required. The caller must verify the account, local password policy, and delegation before promoting the credential in the same request.- Throws:
IOException
-
clear
public void clear() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
random
-
challenge
-
requireHttps
- Throws:
IOException
-