Class AuthenticateClientResult.Builder
- java.lang.Object
-
- com.oracle.bmc.identitydataplane.model.AuthenticateClientResult.Builder
-
- Enclosing class:
- AuthenticateClientResult
public static class AuthenticateClientResult.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticateClientResultbuild()AuthenticateClientResult.Buildercopy(AuthenticateClientResult model)AuthenticateClientResult.BuildererrorMessage(String errorMessage)If the authentication fails for the original caller (not failing authentication of the calling service, in which case we return 401), we return a 200, but with null principal and an error messageAuthenticateClientResult.Builderprincipal(Principal principal)The original caller’s resolved principal object if the authentication succeeds, null otherwise.
-
-
-
Method Detail
-
principal
public AuthenticateClientResult.Builder principal(Principal principal)
The original caller’s resolved principal object if the authentication succeeds, null otherwise.- Parameters:
principal- the value to set- Returns:
- this builder
-
errorMessage
public AuthenticateClientResult.Builder errorMessage(String errorMessage)
If the authentication fails for the original caller (not failing authentication of the calling service, in which case we return 401), we return a 200, but with null principal and an error message- Parameters:
errorMessage- the value to set- Returns:
- this builder
-
build
public AuthenticateClientResult build()
-
copy
public AuthenticateClientResult.Builder copy(AuthenticateClientResult model)
-
-