public class StaticFileMacaroonContext extends java.lang.Object implements MacaroonContext
Created by Philip Vendil on 2018-02-04.| Constructor and Description |
|---|
StaticFileMacaroonContext(java.io.File macaroonPath)
Constructor to read a specified macaroon path.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCurrentMacaroonAsHex()
Method that should return the macaroon that should be used in header for calls towards server node.
|
public StaticFileMacaroonContext(java.io.File macaroonPath)
throws ClientSideException
macaroonPath - the path to the macaroon to be used.ClientSideException - if problem occurs during reading or parsing of macaroon data. status is null.public java.lang.String getCurrentMacaroonAsHex()
getCurrentMacaroonAsHex in interface MacaroonContext