public class Cas extends BaseConfig
限定符和类型 | 类和说明 |
---|---|
static class |
Cas.Direct
Direct Client 配置
|
static class |
Cas.DirectProxy
Direct Proxy Client 配置
|
static class |
Cas.General
CAS 常规配置
|
static class |
Cas.RestBasicAuth
Cas Rest Basic Auth 配置
|
static class |
Cas.RestForm
CAS Rest 表单配置
|
BaseConfig.BaseClientConfig
限定符和类型 | 字段和说明 |
---|---|
static String |
PREFIX |
PROPERTIES_PREFIX
构造器和说明 |
---|
Cas() |
限定符和类型 | 方法和说明 |
---|---|
List<Class<org.pac4j.core.authorization.generator.AuthorizationGenerator>> |
getAuthorizationGenerator()
返回授权生成器
|
String |
getCallbackUrl()
返回 CAS 登录成功跳转地址
|
Map<String,String> |
getCustomParameters()
返回客户自定义参数
|
Cas.Direct |
getDirect()
返回 Direct Client 配置
|
Cas.DirectProxy |
getDirectProxy()
返回 Direct Proxy Client 配置
|
String |
getEncoding()
返回编码
|
Boolean |
getGateway()
返回 Gateway
|
Cas.General |
getGeneral()
返回常规配置
|
String |
getLoginUrl()
返回 CAS 登录地址
|
String |
getMethod()
返回请求方法
|
String |
getPostLogoutUrlParameter()
返回退出登录请求参数
|
String |
getPrefixUrl()
返回 CAS URL 前缀
|
Class<org.pac4j.cas.profile.CasProfileDefinition> |
getProfileDefinition()
返回 Profile 定义,可用于处理 CAS Server 登录返回字段
|
org.pac4j.cas.config.CasProtocol |
getProtocol()
返回 CAS 协议
|
Boolean |
getRenew()
返回是否重新认证
|
Cas.RestBasicAuth |
getRestBasicAuth()
返回 Rest Basic Auth Client 配置
|
Cas.RestForm |
getRestForm()
返回 Rest 表单配置
|
Long |
getTimeTolerance() |
void |
setAuthorizationGenerator(List<Class<org.pac4j.core.authorization.generator.AuthorizationGenerator>> authorizationGenerator)
设置授权生成器
|
void |
setCallbackUrl(String callbackUrl)
设置 CAS 登录成功跳转地址
|
void |
setCustomParameters(Map<String,String> customParameters)
设置客户自定义参数
|
void |
setDirect(Cas.Direct direct)
设置 Direct Client 配置
|
void |
setDirectProxy(Cas.DirectProxy directProxy)
设置 Direct Proxy Client 配置
|
void |
setEncoding(String encoding)
设置编码
|
void |
setGateway(Boolean gateway)
设置 Gateway
|
void |
setGeneral(Cas.General general)
设置常规配置
|
void |
setLoginUrl(String loginUrl)
设置 CAS 登录地址
|
void |
setMethod(String method)
设置请求方法
|
void |
setPostLogoutUrlParameter(String postLogoutUrlParameter)
设置退出登录请求参数
|
void |
setPrefixUrl(String prefixUrl)
设置 CAS URL 前缀
|
void |
setProfileDefinition(Class<org.pac4j.cas.profile.CasProfileDefinition> profileDefinition)
设置 Profile 定义,可用于处理 CAS Server 登录返回字段
|
void |
setProtocol(org.pac4j.cas.config.CasProtocol protocol)
设置 CAS 协议
|
void |
setRenew(Boolean renew)
设置是否重新认证
|
void |
setRestBasicAuth(Cas.RestBasicAuth restBasicAuth)
设置 Rest Basic Auth Client 配置
|
void |
setRestForm(Cas.RestForm restForm)
设置 Rest 表单配置
|
void |
setTimeTolerance(Long timeTolerance) |
getCustomProperties, setCustomProperties
public org.pac4j.cas.config.CasProtocol getProtocol()
public void setProtocol(org.pac4j.cas.config.CasProtocol protocol)
protocol
- CAS 协议public String getLoginUrl()
public void setLoginUrl(String loginUrl)
loginUrl
- CAS 登录地址public String getPrefixUrl()
public void setPrefixUrl(String prefixUrl)
prefixUrl
- CAS URL 前缀public String getCallbackUrl()
public void setCallbackUrl(String callbackUrl)
callbackUrl
- CAS 登录成功跳转地址public String getEncoding()
public void setEncoding(String encoding)
encoding
- 编码public String getMethod()
public void setMethod(String method)
method
- 请求方法public Boolean getGateway()
public void setGateway(Boolean gateway)
gateway
- Gatewaypublic Boolean getRenew()
public void setRenew(Boolean renew)
renew
- 是否重新认证public Long getTimeTolerance()
public void setTimeTolerance(Long timeTolerance)
public String getPostLogoutUrlParameter()
public void setPostLogoutUrlParameter(String postLogoutUrlParameter)
postLogoutUrlParameter
- 退出登录请求参数public Class<org.pac4j.cas.profile.CasProfileDefinition> getProfileDefinition()
public void setProfileDefinition(Class<org.pac4j.cas.profile.CasProfileDefinition> profileDefinition)
profileDefinition
- Profile 定义public List<Class<org.pac4j.core.authorization.generator.AuthorizationGenerator>> getAuthorizationGenerator()
public void setAuthorizationGenerator(List<Class<org.pac4j.core.authorization.generator.AuthorizationGenerator>> authorizationGenerator)
authorizationGenerator
- 授权生成器public void setCustomParameters(Map<String,String> customParameters)
customParameters
- 客户自定义参数public Cas.General getGeneral()
public void setGeneral(Cas.General general)
general
- 常规配置public Cas.RestForm getRestForm()
public void setRestForm(Cas.RestForm restForm)
restForm
- Rest 表单配置public Cas.Direct getDirect()
public void setDirect(Cas.Direct direct)
direct
- Direct Client 配置public Cas.DirectProxy getDirectProxy()
public void setDirectProxy(Cas.DirectProxy directProxy)
directProxy
- Direct Proxy Client 配置public Cas.RestBasicAuth getRestBasicAuth()
public void setRestBasicAuth(Cas.RestBasicAuth restBasicAuth)
restBasicAuth
- Rest Basic Auth Client 配置Copyright © 2022 buession.com Inc.. All rights reserved.