Class DeveloperAuthenticationCallbackResponse
- java.lang.Object
-
- com.authlete.common.dto.DeveloperAuthenticationCallbackResponse
-
- All Implemented Interfaces:
Serializable
public class DeveloperAuthenticationCallbackResponse extends Object implements Serializable
Developer authentication response from a service implementation to Authlete.- Since:
- 1.9
- Author:
- Takahiko Kawasaki
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeveloperAuthenticationCallbackResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Get the display name of the authenticated developer.StringgetSubject()Get the subject (= unique identifier) of the authenticated developer.booleanisAuthenticated()Get the authentication result.DeveloperAuthenticationCallbackResponsesetAuthenticated(boolean authenticated)Set the authentication result.DeveloperAuthenticationCallbackResponsesetDisplayName(String displayName)Set the display name of the authenticated developer.DeveloperAuthenticationCallbackResponsesetSubject(String subject)Set the subject (= unique identifier) of the authenticated developer.
-
-
-
Method Detail
-
isAuthenticated
public boolean isAuthenticated()
Get the authentication result.- Returns:
trueif the credentials of the developer were valid. Otherwise,false.
-
setAuthenticated
public DeveloperAuthenticationCallbackResponse setAuthenticated(boolean authenticated)
Set the authentication result.When the credentials (
idandpassword) in the developer authentication callback request (DeveloperAuthenticationCallbackRequest) are valid,trueshould be set to this property.- Parameters:
authenticated-trueif the credentials of the developer were valid. Otherwise,false.- Returns:
thisobject.
-
getSubject
public String getSubject()
Get the subject (= unique identifier) of the authenticated developer.- Returns:
- The subject (= unique identifier) of the authenticated developer.
-
setSubject
public DeveloperAuthenticationCallbackResponse setSubject(String subject)
Set the subject (= unique identifier) of the authenticated developer.When the credentials (
idandpassword) in the developer authentication callback request (DeveloperAuthenticationCallbackRequest) are valid, the subject (= unique identifier) of the developer should be set to this property.The value of
subjectdoes not always have to be equal to the value ofidin the developer authentication callback request. For example,idmay be an email address but a service implementation may have generated and assigned a unique identifier such as60504791to the developer who is represented by the email address. In such a case,60504791should be set assubject.- Parameters:
subject- The subject (= unique identifier) of the authenticated developer. When the authentication failed, this property should benull.- Returns:
thisobject.
-
getDisplayName
public String getDisplayName()
Get the display name of the authenticated developer.- Returns:
- The display name of the authenticated developer.
-
setDisplayName
public DeveloperAuthenticationCallbackResponse setDisplayName(String displayName)
Set the display name of the authenticated developer.- Parameters:
displayName- The display name of the authenticated developer.- Returns:
thisobject.
-
-