public static final class Authentication.Builder extends GeneratedMessage.Builder<Authentication.Builder> implements AuthenticationOrBuilderThe Authentication extension captures details specific to authentication events. General guidelines for authentication events:
- Details about the source of the authentication event (for example, client IP or hostname), should be captured in principal. The principal may be empty if we have no details about the source of the login.
- Details about the target of the authentication event (for example, details about the machine that is being logged into or logged out of) should be captured in target.
- Some authentication events may involve a third-party. For example, a user logs into a cloud service (for example, Chronicle) via their company's SSO (the event is logged by their SSO solution). In this case, the principal captures information about the user's device, the target captures details about the cloud service they logged into, and the intermediary captures details about the SSO solution.
Protobuf type google.backstory.Authentication
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Authentication.BuilderImplements
AuthenticationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllMechanism(Iterable<? extends Authentication.Mechanism> values)
public Authentication.Builder addAllMechanism(Iterable<? extends Authentication.Mechanism> values)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.backstory.Authentication.Mechanism>The mechanism to add. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
addAllMechanismValue(Iterable<Integer> values)
public Authentication.Builder addAllMechanismValue(Iterable<Integer> values)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<Integer>The enum numeric values on the wire for mechanism to add. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
addMechanism(Authentication.Mechanism value)
public Authentication.Builder addMechanism(Authentication.Mechanism value)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Authentication.MechanismThe mechanism to add. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
addMechanismValue(int value)
public Authentication.Builder addMechanismValue(int value)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for mechanism to add. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
build()
public Authentication build()| Returns | |
|---|---|
| Type | Description |
Authentication |
|
buildPartial()
public Authentication buildPartial()| Returns | |
|---|---|
| Type | Description |
Authentication |
|
clear()
public Authentication.Builder clear()| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
|
clearAuthDetails()
public Authentication.Builder clearAuthDetails()The vendor defined details of the authentication.
string auth_details = 3;
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
clearMechanism()
public Authentication.Builder clearMechanism()The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
clearOutcome()
public Authentication.Builder clearOutcome()The outcome of the authentication event.
.google.backstory.Authentication.Outcome outcome = 4;
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
clearType()
public Authentication.Builder clearType()The type of authentication.
.google.backstory.Authentication.AuthType type = 1;
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
getAuthDetails()
public String getAuthDetails()The vendor defined details of the authentication.
string auth_details = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The authDetails. |
getAuthDetailsBytes()
public ByteString getAuthDetailsBytes()The vendor defined details of the authentication.
string auth_details = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for authDetails. |
getDefaultInstanceForType()
public Authentication getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Authentication |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMechanism(int index)
public Authentication.Mechanism getMechanism(int index)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Mechanism |
The mechanism at the given index. |
getMechanismCount()
public int getMechanismCount()The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of mechanism. |
getMechanismList()
public List<Authentication.Mechanism> getMechanismList()The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Returns | |
|---|---|
| Type | Description |
List<Mechanism> |
A list containing the mechanism. |
getMechanismValue(int index)
public int getMechanismValue(int index)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire of mechanism at the given index. |
getMechanismValueList()
public List<Integer> getMechanismValueList()The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Returns | |
|---|---|
| Type | Description |
List<Integer> |
A list containing the enum numeric values on the wire for mechanism. |
getOutcome()
public Authentication.Outcome getOutcome()The outcome of the authentication event.
.google.backstory.Authentication.Outcome outcome = 4;
| Returns | |
|---|---|
| Type | Description |
Authentication.Outcome |
The outcome. |
getOutcomeValue()
public int getOutcomeValue()The outcome of the authentication event.
.google.backstory.Authentication.Outcome outcome = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for outcome. |
getType()
public Authentication.AuthType getType()The type of authentication.
.google.backstory.Authentication.AuthType type = 1;
| Returns | |
|---|---|
| Type | Description |
Authentication.AuthType |
The type. |
getTypeValue()
public int getTypeValue()The type of authentication.
.google.backstory.Authentication.AuthType type = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Authentication other)
public Authentication.Builder mergeFrom(Authentication other)| Parameter | |
|---|---|
| Name | Description |
other |
Authentication |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Authentication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Authentication.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
|
setAuthDetails(String value)
public Authentication.Builder setAuthDetails(String value)The vendor defined details of the authentication.
string auth_details = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe authDetails to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
setAuthDetailsBytes(ByteString value)
public Authentication.Builder setAuthDetailsBytes(ByteString value)The vendor defined details of the authentication.
string auth_details = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for authDetails to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
setMechanism(int index, Authentication.Mechanism value)
public Authentication.Builder setMechanism(int index, Authentication.Mechanism value)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
Authentication.MechanismThe mechanism to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
setMechanismValue(int index, int value)
public Authentication.Builder setMechanismValue(int index, int value)The authentication mechanism.
repeated .google.backstory.Authentication.Mechanism mechanism = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
intThe enum numeric value on the wire for mechanism to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
setOutcome(Authentication.Outcome value)
public Authentication.Builder setOutcome(Authentication.Outcome value)The outcome of the authentication event.
.google.backstory.Authentication.Outcome outcome = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Authentication.OutcomeThe outcome to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
setOutcomeValue(int value)
public Authentication.Builder setOutcomeValue(int value)The outcome of the authentication event.
.google.backstory.Authentication.Outcome outcome = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for outcome to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
setType(Authentication.AuthType value)
public Authentication.Builder setType(Authentication.AuthType value)The type of authentication.
.google.backstory.Authentication.AuthType type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Authentication.AuthTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |
setTypeValue(int value)
public Authentication.Builder setTypeValue(int value)The type of authentication.
.google.backstory.Authentication.AuthType type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Authentication.Builder |
This builder for chaining. |