Package io.inversion.action.security
Class AuthScheme
- java.lang.Object
-
- io.inversion.action.security.AuthScheme
-
- Direct Known Subclasses:
ApiKeyScheme,HttpAuthScheme
public abstract class AuthScheme extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthScheme.AuthSchemeType
-
Constructor Summary
Constructors Constructor Description AuthScheme()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()java.lang.StringgetName()java.util.List<Param>getParams()AuthScheme.AuthSchemeTypegetType()abstract UsergetUser(Request req, Response res)AuthSchemewithDescription(java.lang.String description)AuthSchemewithName(java.lang.String name)AuthSchemewithParam(Param param)AuthSchemewithParams(java.util.List<Param> params)AuthSchemewithType(AuthScheme.AuthSchemeType type)
-
-
-
Method Detail
-
getUser
public abstract User getUser(Request req, Response res) throws ApiException
- Throws:
ApiException
-
getName
public java.lang.String getName()
-
withName
public AuthScheme withName(java.lang.String name)
-
getDescription
public java.lang.String getDescription()
-
withDescription
public AuthScheme withDescription(java.lang.String description)
-
getType
public AuthScheme.AuthSchemeType getType()
-
withType
public AuthScheme withType(AuthScheme.AuthSchemeType type)
-
getParams
public java.util.List<Param> getParams()
-
withParams
public AuthScheme withParams(java.util.List<Param> params)
-
withParam
public AuthScheme withParam(Param param)
-
-