Package net.webpdf.wsclient.openapi
Class ServerConfigLocalAuthRest
- java.lang.Object
-
- net.webpdf.wsclient.openapi.ServerConfigLocalAuthRest
-
public class ServerConfigLocalAuthRest extends Object
Defines the settings for accessing the server's REST API (web services).
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCESS_TOKENstatic StringJSON_PROPERTY_ALLOW_ANONYMOUSstatic StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_LIMITSstatic StringJSON_PROPERTY_MAX_TIME_SKEWstatic StringJSON_PROPERTY_REFRESH_TOKEN
-
Constructor Summary
Constructors Constructor Description ServerConfigLocalAuthRest()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ACCESS_TOKEN
public static final String JSON_PROPERTY_ACCESS_TOKEN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ALLOW_ANONYMOUS
public static final String JSON_PROPERTY_ALLOW_ANONYMOUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LIMITS
public static final String JSON_PROPERTY_LIMITS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAX_TIME_SKEW
public static final String JSON_PROPERTY_MAX_TIME_SKEW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFRESH_TOKEN
public static final String JSON_PROPERTY_REFRESH_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
accessToken
public ServerConfigLocalAuthRest accessToken(ServerConfigSessionAccessToken accessToken)
-
getAccessToken
@Nullable public @Nullable ServerConfigSessionAccessToken getAccessToken()
Get accessToken- Returns:
- accessToken
-
setAccessToken
public void setAccessToken(ServerConfigSessionAccessToken accessToken)
-
allowAnonymous
public ServerConfigLocalAuthRest allowAnonymous(Boolean allowAnonymous)
-
getAllowAnonymous
@Nullable public @Nullable Boolean getAllowAnonymous()
If enabled, then anonymous logins (without username and password) are allowed.- Returns:
- allowAnonymous
-
setAllowAnonymous
public void setAllowAnonymous(Boolean allowAnonymous)
-
enabled
public ServerConfigLocalAuthRest enabled(Boolean enabled)
-
getEnabled
@Nullable public @Nullable Boolean getEnabled()
If enabled, then the REST API is available.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
limits
public ServerConfigLocalAuthRest limits(ServerConfigSessionLimits limits)
-
getLimits
@Nullable public @Nullable ServerConfigSessionLimits getLimits()
Get limits- Returns:
- limits
-
setLimits
public void setLimits(ServerConfigSessionLimits limits)
-
maxTimeSkew
public ServerConfigLocalAuthRest maxTimeSkew(Integer maxTimeSkew)
-
getMaxTimeSkew
@Nullable public @Nullable Integer getMaxTimeSkew()
The maximum time skew that may occur between the local time of the client and the local time of the token issuer (the local server).- Returns:
- maxTimeSkew
-
setMaxTimeSkew
public void setMaxTimeSkew(Integer maxTimeSkew)
-
refreshToken
public ServerConfigLocalAuthRest refreshToken(ServerConfigSessionRefreshToken refreshToken)
-
getRefreshToken
@Nullable public @Nullable ServerConfigSessionRefreshToken getRefreshToken()
Get refreshToken- Returns:
- refreshToken
-
setRefreshToken
public void setRefreshToken(ServerConfigSessionRefreshToken refreshToken)
-
-