Package net.osslabz.lnd.dto
Class LnrpcMiddlewareRegistration
java.lang.Object
net.osslabz.lnd.dto.LnrpcMiddlewareRegistration
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:34.958542131Z[Etc/UTC]")
public class LnrpcMiddlewareRegistration
extends Object
LnrpcMiddlewareRegistration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomMacaroonCaveatName(String customMacaroonCaveatName) booleanThe name of the custom macaroon caveat that this middleware is responsible for.The name of the middleware to register.Instead of defining a custom macaroon caveat name a middleware can register itself for read-only access only.inthashCode()middlewareName(String middlewareName) readOnlyMode(Boolean readOnlyMode) voidsetCustomMacaroonCaveatName(String customMacaroonCaveatName) voidsetMiddlewareName(String middlewareName) voidsetReadOnlyMode(Boolean readOnlyMode) toString()
-
Field Details
-
SERIALIZED_NAME_MIDDLEWARE_NAME
- See Also:
-
SERIALIZED_NAME_CUSTOM_MACAROON_CAVEAT_NAME
- See Also:
-
SERIALIZED_NAME_READ_ONLY_MODE
- See Also:
-
-
Constructor Details
-
LnrpcMiddlewareRegistration
public LnrpcMiddlewareRegistration()
-
-
Method Details
-
middlewareName
-
getMiddlewareName
The name of the middleware to register. The name should be as informative as possible and is logged on registration.- Returns:
- middlewareName
-
setMiddlewareName
-
customMacaroonCaveatName
-
getCustomMacaroonCaveatName
The name of the custom macaroon caveat that this middleware is responsible for. Only requests/responses that contain a macaroon with the registered custom caveat are forwarded for interception to the middleware. The exception being the read-only mode: All requests/responses are forwarded to a middleware that requests read-only access but such a middleware won't be allowed to _alter_ responses. As a security measure, _no_ middleware can change responses to requests made with _unencumbered_ macaroons! NOTE: Cannot be used at the same time as read_only_mode.- Returns:
- customMacaroonCaveatName
-
setCustomMacaroonCaveatName
-
readOnlyMode
-
getReadOnlyMode
Instead of defining a custom macaroon caveat name a middleware can register itself for read-only access only. In that mode all requests/responses are forwarded to the middleware but the middleware isn't allowed to alter any of the responses. NOTE: Cannot be used at the same time as custom_macaroon_caveat_name.- Returns:
- readOnlyMode
-
setReadOnlyMode
-
equals
-
hashCode
public int hashCode() -
toString
-