public class CustomsAlert extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CustomsAlert.AlertAction
Alert actions
|
static class |
CustomsAlert.AlertSeverity
Severity of a given alert
|
static class |
CustomsAlert.IndicatorType
Indicator types
|
Constructor and Description |
---|
CustomsAlert()
Construct new
CustomsAlert |
Modifier and Type | Method and Description |
---|---|
static ArrayList<CustomsAlert> |
convertAccountCreationAbuse(Alert a)
Convert an account creation abuse alert
|
static ArrayList<CustomsAlert> |
convertAccountCreationAbuseDistributed(Alert a)
Convert an account creation abuse distributed alert
|
static ArrayList<CustomsAlert> |
convertLoginFailureAtRiskAccount(Alert a)
Convert an at risk account alert
|
static ArrayList<CustomsAlert> |
convertPasswordResetAbuse(Alert a)
Convert a password reset abuse alert
|
static ArrayList<CustomsAlert> |
convertSourceLoginFailure(Alert a)
Convert source login failure alert into a list of customs alerts.
|
static ArrayList<CustomsAlert> |
convertSourceLoginFailureDist(Alert a)
Convert a distributed source login failure alert into a list of customs alerts.
|
static ArrayList<CustomsAlert> |
convertStatusComparator(Alert a)
Convert a status comparator alert
|
static ArrayList<CustomsAlert> |
convertVelocity(Alert a)
Convert a velocity alert
|
static ArrayList<CustomsAlert> |
fromAlert(Alert a)
Convert an
Alert into one or more instances of CustomsAlert |
Integer |
getConfidence()
Get confidence
|
HashMap<String,Object> |
getDetails()
Get details map
|
String |
getHeuristic()
Get heuristic
|
String |
getHeuristicDescription()
Get heuristic description
|
UUID |
getId()
Get UUID
|
String |
getIndicator()
Get indicator
|
CustomsAlert.IndicatorType |
getIndicatorType()
Get indicator type
|
String |
getReason()
Get reason
|
CustomsAlert.AlertSeverity |
getSeverity()
Get severity
|
CustomsAlert.AlertAction |
getSuggestedAction()
Get suggested action
|
org.joda.time.DateTime |
getTimestamp()
Get timestamp
|
void |
setConfidence(Integer confidence)
Set confidence
|
void |
setDetails(HashMap<String,Object> details)
Set details map
|
void |
setHeuristic(String heuristic)
Set heuristic
|
void |
setHeuristicDescription(String heuristicDescription)
Set heuristic description
|
void |
setId(UUID alertId)
Set UUID
|
void |
setIndicator(String indicator)
Set indicator
|
void |
setIndicatorType(CustomsAlert.IndicatorType indicatorType)
Set indicator type
|
void |
setReason(String reason)
Set reason
|
void |
setSeverity(CustomsAlert.AlertSeverity severity)
Set severity
|
void |
setSuggestedAction(CustomsAlert.AlertAction suggestedAction)
Set suggested action
|
void |
setTimestamp(org.joda.time.DateTime timestamp)
Set timestamp
|
String |
toJSON()
Return JSON string representation.
|
public CustomsAlert()
CustomsAlert
public static ArrayList<CustomsAlert> fromAlert(Alert a)
Alert
into one or more instances of CustomsAlert
This method will convert an alert that has been generated by the customs pipeline into one or more CustomsAlert objects which can then be submitted directly to the FxA service.
This method contains special handling for the various types of alert messages that can be generated by the Customs pipeline
a
- Alertpublic static ArrayList<CustomsAlert> convertSourceLoginFailure(Alert a)
a
- Alert to convertpublic static ArrayList<CustomsAlert> convertSourceLoginFailureDist(Alert a)
a
- Alert to convertpublic static ArrayList<CustomsAlert> convertAccountCreationAbuse(Alert a)
The IP address will be noted as suspected, in addition to the accounts that have been created.
a
- Alertpublic static ArrayList<CustomsAlert> convertAccountCreationAbuseDistributed(Alert a)
The IP address will be noted as suspected, in addition to the account in the alert.
a
- Alertpublic static ArrayList<CustomsAlert> convertPasswordResetAbuse(Alert a)
a
- Alertpublic static ArrayList<CustomsAlert> convertVelocity(Alert a)
a
- Alertpublic static ArrayList<CustomsAlert> convertStatusComparator(Alert a)
a
- Alertpublic static ArrayList<CustomsAlert> convertLoginFailureAtRiskAccount(Alert a)
a
- Alertpublic void setTimestamp(org.joda.time.DateTime timestamp)
timestamp
- DateTimepublic org.joda.time.DateTime getTimestamp()
public void setId(UUID alertId)
alertId
- UUIDpublic UUID getId()
public void setIndicatorType(CustomsAlert.IndicatorType indicatorType)
indicatorType
- IndicatorTypepublic CustomsAlert.IndicatorType getIndicatorType()
public void setIndicator(String indicator)
indicator
- Stringpublic String getIndicator()
public void setSeverity(CustomsAlert.AlertSeverity severity)
severity
- AlertSeveritypublic CustomsAlert.AlertSeverity getSeverity()
public void setConfidence(Integer confidence)
confidence
- Integerpublic Integer getConfidence()
public void setHeuristic(String heuristic)
heuristic
- Stringpublic String getHeuristic()
public void setHeuristicDescription(String heuristicDescription)
heuristicDescription
- Stringpublic String getHeuristicDescription()
public void setReason(String reason)
reason
- Stringpublic String getReason()
public void setSuggestedAction(CustomsAlert.AlertAction suggestedAction)
suggestedAction
- AlertActionpublic CustomsAlert.AlertAction getSuggestedAction()
public void setDetails(HashMap<String,Object> details)
details
- HashMappublic String toJSON()
Copyright © 2022. All rights reserved.