Class OAuthServerResponse
java.lang.Object
com.revetsec.oauth.server.OAuthServerResponse
An immutable, bounded response prepared by the authorization server. Credential emission is explicit;
ordinary headers exclude Location. Instances retain identity equality and fixed redacted diagnostics.
Applications may add their own browser cookies at the HTTP edge.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns immutable ordinary headers; credential-bearing Location is separate.Returns the optional credential-bearing redirect for HTTP emission.Returns the HTTP status code.byte @NonNull []Emits a defensive bounded HTTP body copy that may contain credentials or personal data.toString()Returns a fixed description that omits response contents.
-
Method Details
-
getStatusCode
Returns the HTTP status code.- Returns:
- the HTTP status code
- Since:
- 1.0.0
-
getHeaders
-
getLocationWithCredentials
Returns the optional credential-bearing redirect for HTTP emission.- Returns:
- the optional credential-bearing redirect; use only for HTTP emission
- Since:
- 1.0.0
-
toHttpBodyWithCredentials
Emits a defensive bounded HTTP body copy that may contain credentials or personal data.- Returns:
- a defensive copy of the bounded HTTP body, which may contain credentials or personal data
- Since:
- 1.0.0
-
toString
-