Class AuthResponseBuilder
- java.lang.Object
-
- io.mosip.authentication.common.service.builder.AuthResponseBuilder
-
public class AuthResponseBuilder extends Object
The builder class of AuthResponseDTO.- Author:
- Loganathan Sekar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthResponseBuilderaddAuthStatusInfo(AuthStatusInfo authStatusInfo)Adds the auth status info.AuthResponseBuilderaddErrors(AuthError... errors)Adds the errors.AuthResponseDTObuild(String tokenID)Builds the.static AuthResponseBuildernewInstance()Get new instance of AuthResponseBuilder.AuthResponseBuildersetAuthTokenId(String authTokenId)Sets the auth Token Id.AuthResponseBuildersetId()AuthResponseBuildersetTxnID(String txnID)Sets the txn ID.AuthResponseBuildersetVersion(String ver)Sets the version.
-
-
-
Method Detail
-
setTxnID
public AuthResponseBuilder setTxnID(String txnID)
Sets the txn ID.- Parameters:
txnID- the txn ID- Returns:
- the auth response builder
-
addErrors
public AuthResponseBuilder addErrors(AuthError... errors)
Adds the errors.- Parameters:
errors- the errors- Returns:
- the auth response builder
-
addAuthStatusInfo
public AuthResponseBuilder addAuthStatusInfo(AuthStatusInfo authStatusInfo)
Adds the auth status info.- Parameters:
authStatusInfo- the auth status info- Returns:
- the auth response builder
-
setId
public AuthResponseBuilder setId()
-
setAuthTokenId
public AuthResponseBuilder setAuthTokenId(String authTokenId)
Sets the auth Token Id.- Parameters:
authTokenId- the auth token id- Returns:
- the auth response builder
-
setVersion
public AuthResponseBuilder setVersion(String ver)
Sets the version.- Parameters:
ver- the ver- Returns:
- the auth response builder
-
build
public AuthResponseDTO build(String tokenID)
Builds the.- Parameters:
tokenID- the auth token ID- Returns:
- the auth response DTO
-
newInstance
public static AuthResponseBuilder newInstance()
Get new instance of AuthResponseBuilder.- Parameters:
dateTimePattern- the date time pattern- Returns:
- the auth response builder
-
-