Class DuoHealthCheck
java.lang.Object
net.shibboleth.idp.plugin.authn.duo.model.DuoHealthCheck
Represents a health check response from Duo's 2FA endpoint.
Includes a staged builder for fluent generation. Compatible with Jackson deserialization.
Is immutable, can only be built using the builder and not changed thereafter.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to buildDuoHealthCheck.static interfaceRequired fields builder.static interfaceStatus builder. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe error response code.private final StringThe error response message.private final StringThe error response detailed message.private final DuoHealthCheckResponseWhen a successful response was issued, as seconds since Unix EPOCH.private final StringA successful 'OK' or unsuccessful 'FAIL' response.private final StringWhen an unsuccessful response was issued, as seconds since Unix EPOCH. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDuoHealthCheck(DuoHealthCheck.Builder builder) Private constructor, can only be called by this builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic DuoHealthCheck.IStatusStagebuilder()Creates builder to buildDuoHealthCheck.getCode()Get the response code.Get the response message.Get a detailed response message.Get the response object.Get the health status of the 2FA endpoint.Get the timestamp!!toString()
-
Field Details
-
status
A successful 'OK' or unsuccessful 'FAIL' response. -
response
When a successful response was issued, as seconds since Unix EPOCH. -
code
The error response code. -
timestamp
When an unsuccessful response was issued, as seconds since Unix EPOCH. -
message
The error response message. -
messageDetail
The error response detailed message.
-
-
Constructor Details
-
DuoHealthCheck
Private constructor, can only be called by this builder.- Parameters:
builder- the builder to build the instance with
-
-
Method Details
-
getStatus
Get the health status of the 2FA endpoint.- Returns:
- Returns the status.
-
getResponse
Get the response object.- Returns:
- Returns the response.
-
getCode
Get the response code.- Returns:
- Returns the code.
-
getTimestamp
Get the timestamp!!- Returns:
- Returns the timestamp.
-
getMessage
Get the response message.- Returns:
- Returns the message.
-
getMessageDetail
Get a detailed response message.- Returns:
- Returns the messageDetail.
-
toString
-
builder
Creates builder to buildDuoHealthCheck.- Returns:
- created builder
-