public class AuthProfile extends Object implements Serializable
AuthProfile
implements analysis of normalized authentication events
This pipeline can make use of various methods for persistent state storage.
Modifier and Type | Class and Description |
---|---|
static interface |
AuthProfile.AuthProfileOptions
Runtime options for
AuthProfile pipeline. |
static class |
AuthProfile.ExtractIdentity
Extract subject user for each event in input
PCollection |
static class |
AuthProfile.Parse
Parse input strings returning applicable authentication events.
|
static class |
AuthProfile.StateAnalyze
Analyze grouped events associated with a particular user or identity against persistent user
state
|
Constructor and Description |
---|
AuthProfile() |
Modifier and Type | Method and Description |
---|---|
static String |
buildConfigurationTick(AuthProfile.AuthProfileOptions options)
Build a configuration tick for Authprofile given pipeline options
|
static Alert |
createBaseAlert(Event e,
String contactEmail,
String docLink)
Create a base authprofile
Alert using information from the event |
static IdentityManager |
getIdentityManager(String path)
Load a process shared version of the identity manager
|
static void |
insightsEnrichAlert(Alert a,
Event e)
Add minfraud insights data into alert metadata
|
static void |
main(String[] args)
Entry point for Beam pipeline.
|
static org.apache.beam.sdk.values.PCollection<Alert> |
processInput(org.apache.beam.sdk.values.PCollection<String> input,
AuthProfile.AuthProfileOptions options)
Process input collection
|
public static IdentityManager getIdentityManager(String path) throws IOException
Requests the current identity manager for use. In an attempt to be as consistent as possible across worker threads, the identity manager is shared. If the identity manager is more than 5 minutes old, a new version is requested from storage.
This function will pick up a mutex on entry which is released on return.
path
- Identity manager pathIOException
- IOExceptionpublic static Alert createBaseAlert(Event e, String contactEmail, String docLink)
Alert
using information from the evente
- EventcontactEmail
- General contact email address to set in alert metadatadocLink
- URL to documentation link to set in alert metadatapublic static void insightsEnrichAlert(Alert a, Event e)
e
- Eventa
- Alertpublic static String buildConfigurationTick(AuthProfile.AuthProfileOptions options) throws IOException
options
- Pipeline optionsIOException
- IOExceptionpublic static org.apache.beam.sdk.values.PCollection<Alert> processInput(org.apache.beam.sdk.values.PCollection<String> input, AuthProfile.AuthProfileOptions options)
Process collection of input events, returning a collection of alerts as required.
input
- Input collectionoptions
- Pipeline optionsCopyright © 2022. All rights reserved.