Package nz.org.riskscape.defaults.auth
Class PlatformSecret
java.lang.Object
nz.org.riskscape.engine.auth.HttpSecret
nz.org.riskscape.defaults.auth.PlatformSecret
- All Implemented Interfaces:
nz.org.riskscape.engine.auth.Secret,nz.org.riskscape.engine.Identified
public class PlatformSecret
extends nz.org.riskscape.engine.auth.HttpSecret
Secret to simplify connecting to platform.
Works much like @{link HttpHeaderSecret} except that the details of how to form the authorization token are taking care of so the user only needs to supply a host and token.
-
Nested Class Summary
Nested classes/interfaces inherited from class nz.org.riskscape.engine.auth.HttpSecret
nz.org.riskscape.engine.auth.HttpSecret.Request -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final nz.org.riskscape.engine.auth.SecretBuilderstatic final Stringstatic final nz.org.riskscape.engine.bind.JavaParameterSet<PlatformSecret> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class nz.org.riskscape.engine.auth.HttpSecret
getDefinedIn, getFramework, getHostname, getId, getRequest, getRequest, isAllowHttp, isAllowSubdomains, matches, setAllowHttp, setAllowSubdomains, setHostname, setIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClassMethods inherited from interface nz.org.riskscape.engine.auth.Secret
isA
-
Field Details
-
FRAMEWORK_NAME
- See Also:
-
PARAMETER_SET
-
BUILDER
public static final nz.org.riskscape.engine.auth.SecretBuilder BUILDER
-
-
Constructor Details
-
PlatformSecret
public PlatformSecret()
-
-
Method Details
-
apply
public void apply(nz.org.riskscape.engine.auth.HttpSecret.Request request) - Specified by:
applyin classnz.org.riskscape.engine.auth.HttpSecret
-
getToken
-
setToken
-
toString
-
equals
- Overrides:
equalsin classnz.org.riskscape.engine.auth.HttpSecret
-
canEqual
- Overrides:
canEqualin classnz.org.riskscape.engine.auth.HttpSecret
-
hashCode
public int hashCode()- Overrides:
hashCodein classnz.org.riskscape.engine.auth.HttpSecret
-