Class AuthMeResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.AuthMeResponse
- All Implemented Interfaces:
RESTMessage,RESTResponse
Response for the authenticated principal information.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for AuthMeResponse.AuthMeResponse(String principal) Constructor for AuthMeResponse. -
Method Summary
-
Constructor Details
-
AuthMeResponse
Constructor for AuthMeResponse.- Parameters:
principal- The server-resolved principal name of the authenticated user.
-
AuthMeResponse
public AuthMeResponse()Default constructor for AuthMeResponse. (Used for Jackson deserialization.)
-
-
Method Details
-
validate
Description copied from class:BaseResponseValidates the response code.- Specified by:
validatein interfaceRESTMessage- Overrides:
validatein classBaseResponse- Throws:
IllegalArgumentException- if code value is negative.
-