id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
127,100 | apereo/cas | webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java | CasWebSecurityConfigurerAdapter.configureLdapAuthenticationProvider | protected void configureLdapAuthenticationProvider(final AuthenticationManagerBuilder auth, final MonitorProperties.Endpoints.LdapSecurity ldap) {
if (isLdapAuthorizationActive()) {
val p = new MonitorEndpointLdapAuthenticationProvider(ldap, securityProperties);
auth.authenticationProvid... | java | protected void configureLdapAuthenticationProvider(final AuthenticationManagerBuilder auth, final MonitorProperties.Endpoints.LdapSecurity ldap) {
if (isLdapAuthorizationActive()) {
val p = new MonitorEndpointLdapAuthenticationProvider(ldap, securityProperties);
auth.authenticationProvid... | [
"protected",
"void",
"configureLdapAuthenticationProvider",
"(",
"final",
"AuthenticationManagerBuilder",
"auth",
",",
"final",
"MonitorProperties",
".",
"Endpoints",
".",
"LdapSecurity",
"ldap",
")",
"{",
"if",
"(",
"isLdapAuthorizationActive",
"(",
")",
")",
"{",
"v... | Configure ldap authentication provider.
@param auth the auth
@param ldap the ldap | [
"Configure",
"ldap",
"authentication",
"provider",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java#L142-L149 |
127,101 | apereo/cas | webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java | CasWebSecurityConfigurerAdapter.configureJaasAuthenticationProvider | protected void configureJaasAuthenticationProvider(final AuthenticationManagerBuilder auth,
final MonitorProperties.Endpoints.JaasSecurity jaas) throws Exception {
val p = new JaasAuthenticationProvider();
p.setLoginConfig(jaas.getLoginConfig());
... | java | protected void configureJaasAuthenticationProvider(final AuthenticationManagerBuilder auth,
final MonitorProperties.Endpoints.JaasSecurity jaas) throws Exception {
val p = new JaasAuthenticationProvider();
p.setLoginConfig(jaas.getLoginConfig());
... | [
"protected",
"void",
"configureJaasAuthenticationProvider",
"(",
"final",
"AuthenticationManagerBuilder",
"auth",
",",
"final",
"MonitorProperties",
".",
"Endpoints",
".",
"JaasSecurity",
"jaas",
")",
"throws",
"Exception",
"{",
"val",
"p",
"=",
"new",
"JaasAuthenticati... | Configure jaas authentication provider.
@param auth the auth
@param jaas the jaas
@throws Exception the exception | [
"Configure",
"jaas",
"authentication",
"provider",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java#L158-L166 |
127,102 | apereo/cas | webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java | CasWebSecurityConfigurerAdapter.configureEndpointAccessForStaticResources | protected void configureEndpointAccessForStaticResources(final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests) {
requests
.requestMatchers(PathRequest.toStaticResources().atCommonLocations())
.permitAll();
requests
.antMatch... | java | protected void configureEndpointAccessForStaticResources(final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests) {
requests
.requestMatchers(PathRequest.toStaticResources().atCommonLocations())
.permitAll();
requests
.antMatch... | [
"protected",
"void",
"configureEndpointAccessForStaticResources",
"(",
"final",
"ExpressionUrlAuthorizationConfigurer",
"<",
"HttpSecurity",
">",
".",
"ExpressionInterceptUrlRegistry",
"requests",
")",
"{",
"requests",
".",
"requestMatchers",
"(",
"PathRequest",
".",
"toStati... | Configure endpoint access for static resources.
@param requests the requests | [
"Configure",
"endpoint",
"access",
"for",
"static",
"resources",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java#L174-L183 |
127,103 | apereo/cas | webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java | CasWebSecurityConfigurerAdapter.configureEndpointAccessByFormLogin | protected void configureEndpointAccessByFormLogin(final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests) throws Exception {
requests.and()
.formLogin()
.loginPage(ENDPOINT_URL_ADMIN_FORM_LOGIN)
.permitAll();
} | java | protected void configureEndpointAccessByFormLogin(final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests) throws Exception {
requests.and()
.formLogin()
.loginPage(ENDPOINT_URL_ADMIN_FORM_LOGIN)
.permitAll();
} | [
"protected",
"void",
"configureEndpointAccessByFormLogin",
"(",
"final",
"ExpressionUrlAuthorizationConfigurer",
"<",
"HttpSecurity",
">",
".",
"ExpressionInterceptUrlRegistry",
"requests",
")",
"throws",
"Exception",
"{",
"requests",
".",
"and",
"(",
")",
".",
"formLogin... | Configure endpoint access by form login.
@param requests the requests
@throws Exception the exception | [
"Configure",
"endpoint",
"access",
"by",
"form",
"login",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java#L191-L196 |
127,104 | apereo/cas | webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java | CasWebSecurityConfigurerAdapter.configureEndpointAccess | protected void configureEndpointAccess(final HttpSecurity httpSecurity,
final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests,
final ActuatorEndpointProperties.EndpointAccessLevel access,
... | java | protected void configureEndpointAccess(final HttpSecurity httpSecurity,
final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests,
final ActuatorEndpointProperties.EndpointAccessLevel access,
... | [
"protected",
"void",
"configureEndpointAccess",
"(",
"final",
"HttpSecurity",
"httpSecurity",
",",
"final",
"ExpressionUrlAuthorizationConfigurer",
"<",
"HttpSecurity",
">",
".",
"ExpressionInterceptUrlRegistry",
"requests",
",",
"final",
"ActuatorEndpointProperties",
".",
"E... | Configure endpoint access.
@param httpSecurity the httpSecurity
@param requests the requests
@param access the access
@param properties the properties
@param endpoint the endpoint
@throws Exception the exception | [
"Configure",
"endpoint",
"access",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java#L208-L240 |
127,105 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/SystemUtils.java | SystemUtils.getSystemInfo | public static Map<String, Object> getSystemInfo() {
val properties = System.getProperties();
val info = new LinkedHashMap<String, Object>(SYSTEM_INFO_DEFAULT_SIZE);
info.put("CAS Version", StringUtils.defaultString(CasVersion.getVersion(), "Not Available"));
info.put("CAS Commit Id", S... | java | public static Map<String, Object> getSystemInfo() {
val properties = System.getProperties();
val info = new LinkedHashMap<String, Object>(SYSTEM_INFO_DEFAULT_SIZE);
info.put("CAS Version", StringUtils.defaultString(CasVersion.getVersion(), "Not Available"));
info.put("CAS Commit Id", S... | [
"public",
"static",
"Map",
"<",
"String",
",",
"Object",
">",
"getSystemInfo",
"(",
")",
"{",
"val",
"properties",
"=",
"System",
".",
"getProperties",
"(",
")",
";",
"val",
"info",
"=",
"new",
"LinkedHashMap",
"<",
"String",
",",
"Object",
">",
"(",
"... | Gets system info.
@return the system info | [
"Gets",
"system",
"info",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/SystemUtils.java#L39-L70 |
127,106 | apereo/cas | support/cas-server-support-authy-core/src/main/java/org/apereo/cas/adaptors/authy/AuthyClientInstance.java | AuthyClientInstance.getErrorMessage | public static String getErrorMessage(final com.authy.api.Error err) {
val builder = new StringBuilder();
if (err != null) {
builder.append("Authy Error");
if (StringUtils.isNotBlank(err.getCountryCode())) {
builder.append(": Country Code: ").append(err.getCountryC... | java | public static String getErrorMessage(final com.authy.api.Error err) {
val builder = new StringBuilder();
if (err != null) {
builder.append("Authy Error");
if (StringUtils.isNotBlank(err.getCountryCode())) {
builder.append(": Country Code: ").append(err.getCountryC... | [
"public",
"static",
"String",
"getErrorMessage",
"(",
"final",
"com",
".",
"authy",
".",
"api",
".",
"Error",
"err",
")",
"{",
"val",
"builder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"err",
"!=",
"null",
")",
"{",
"builder",
".",
"ap... | Gets authy error message.
@param err the err
@return the authy error message | [
"Gets",
"authy",
"error",
"message",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-authy-core/src/main/java/org/apereo/cas/adaptors/authy/AuthyClientInstance.java#L57-L71 |
127,107 | apereo/cas | support/cas-server-support-authy-core/src/main/java/org/apereo/cas/adaptors/authy/AuthyClientInstance.java | AuthyClientInstance.getOrCreateUser | @SneakyThrows
public User getOrCreateUser(final Principal principal) {
val attributes = principal.getAttributes();
if (!attributes.containsKey(this.mailAttribute)) {
throw new IllegalArgumentException("No email address found for " + principal.getId());
}
if (!attributes.c... | java | @SneakyThrows
public User getOrCreateUser(final Principal principal) {
val attributes = principal.getAttributes();
if (!attributes.containsKey(this.mailAttribute)) {
throw new IllegalArgumentException("No email address found for " + principal.getId());
}
if (!attributes.c... | [
"@",
"SneakyThrows",
"public",
"User",
"getOrCreateUser",
"(",
"final",
"Principal",
"principal",
")",
"{",
"val",
"attributes",
"=",
"principal",
".",
"getAttributes",
"(",
")",
";",
"if",
"(",
"!",
"attributes",
".",
"containsKey",
"(",
"this",
".",
"mailA... | Gets or create user.
@param principal the principal
@return the or create user | [
"Gets",
"or",
"create",
"user",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-authy-core/src/main/java/org/apereo/cas/adaptors/authy/AuthyClientInstance.java#L79-L92 |
127,108 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java | CasConfigurationJasyptCipherExecutor.getJasyptParamFromEnv | private static String getJasyptParamFromEnv(final Environment environment, final JasyptEncryptionParameters param) {
return environment.getProperty(param.getPropertyName(), param.getDefaultValue());
} | java | private static String getJasyptParamFromEnv(final Environment environment, final JasyptEncryptionParameters param) {
return environment.getProperty(param.getPropertyName(), param.getDefaultValue());
} | [
"private",
"static",
"String",
"getJasyptParamFromEnv",
"(",
"final",
"Environment",
"environment",
",",
"final",
"JasyptEncryptionParameters",
"param",
")",
"{",
"return",
"environment",
".",
"getProperty",
"(",
"param",
".",
"getPropertyName",
"(",
")",
",",
"para... | Gets jasypt param from env.
@param environment the environment
@param param the param
@return the jasypt param from env | [
"Gets",
"jasypt",
"param",
"from",
"env",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java#L59-L61 |
127,109 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java | CasConfigurationJasyptCipherExecutor.setAlgorithm | public void setAlgorithm(final String alg) {
if (StringUtils.isNotBlank(alg)) {
LOGGER.debug("Configured Jasypt algorithm [{}]", alg);
jasyptInstance.setAlgorithm(alg);
}
} | java | public void setAlgorithm(final String alg) {
if (StringUtils.isNotBlank(alg)) {
LOGGER.debug("Configured Jasypt algorithm [{}]", alg);
jasyptInstance.setAlgorithm(alg);
}
} | [
"public",
"void",
"setAlgorithm",
"(",
"final",
"String",
"alg",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"alg",
")",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Configured Jasypt algorithm [{}]\"",
",",
"alg",
")",
";",
"jasyptInstance",
".... | Sets algorithm.
@param alg the alg | [
"Sets",
"algorithm",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java#L68-L73 |
127,110 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java | CasConfigurationJasyptCipherExecutor.setPassword | public void setPassword(final String psw) {
if (StringUtils.isNotBlank(psw)) {
LOGGER.debug("Configured Jasypt password");
jasyptInstance.setPassword(psw);
}
} | java | public void setPassword(final String psw) {
if (StringUtils.isNotBlank(psw)) {
LOGGER.debug("Configured Jasypt password");
jasyptInstance.setPassword(psw);
}
} | [
"public",
"void",
"setPassword",
"(",
"final",
"String",
"psw",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"psw",
")",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Configured Jasypt password\"",
")",
";",
"jasyptInstance",
".",
"setPassword",
"... | Sets password.
@param psw the psw | [
"Sets",
"password",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java#L80-L85 |
127,111 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java | CasConfigurationJasyptCipherExecutor.setKeyObtentionIterations | public void setKeyObtentionIterations(final String iter) {
if (StringUtils.isNotBlank(iter) && NumberUtils.isCreatable(iter)) {
LOGGER.debug("Configured Jasypt iterations");
jasyptInstance.setKeyObtentionIterations(Integer.parseInt(iter));
}
} | java | public void setKeyObtentionIterations(final String iter) {
if (StringUtils.isNotBlank(iter) && NumberUtils.isCreatable(iter)) {
LOGGER.debug("Configured Jasypt iterations");
jasyptInstance.setKeyObtentionIterations(Integer.parseInt(iter));
}
} | [
"public",
"void",
"setKeyObtentionIterations",
"(",
"final",
"String",
"iter",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"iter",
")",
"&&",
"NumberUtils",
".",
"isCreatable",
"(",
"iter",
")",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Con... | Sets key obtention iterations.
@param iter the iter | [
"Sets",
"key",
"obtention",
"iterations",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java#L92-L97 |
127,112 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java | CasConfigurationJasyptCipherExecutor.setProviderName | public void setProviderName(final String pName) {
if (StringUtils.isNotBlank(pName)) {
LOGGER.debug("Configured Jasypt provider");
this.jasyptInstance.setProviderName(pName);
}
} | java | public void setProviderName(final String pName) {
if (StringUtils.isNotBlank(pName)) {
LOGGER.debug("Configured Jasypt provider");
this.jasyptInstance.setProviderName(pName);
}
} | [
"public",
"void",
"setProviderName",
"(",
"final",
"String",
"pName",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"pName",
")",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Configured Jasypt provider\"",
")",
";",
"this",
".",
"jasyptInstance",
... | Sets provider name.
@param pName the p name | [
"Sets",
"provider",
"name",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java#L104-L109 |
127,113 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java | CasConfigurationJasyptCipherExecutor.encryptValue | public String encryptValue(final String value) {
try {
return encryptValuePropagateExceptions(value);
} catch (final Exception e) {
LOGGER.error("Could not encrypt value [{}]", value, e);
}
return null;
} | java | public String encryptValue(final String value) {
try {
return encryptValuePropagateExceptions(value);
} catch (final Exception e) {
LOGGER.error("Could not encrypt value [{}]", value, e);
}
return null;
} | [
"public",
"String",
"encryptValue",
"(",
"final",
"String",
"value",
")",
"{",
"try",
"{",
"return",
"encryptValuePropagateExceptions",
"(",
"value",
")",
";",
"}",
"catch",
"(",
"final",
"Exception",
"e",
")",
"{",
"LOGGER",
".",
"error",
"(",
"\"Could not ... | Encrypt value string.
@param value the value
@return the string | [
"Encrypt",
"value",
"string",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java#L132-L139 |
127,114 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java | CasConfigurationJasyptCipherExecutor.decryptValue | public String decryptValue(final String value) {
try {
return decryptValuePropagateExceptions(value);
} catch (final Exception e) {
LOGGER.error("Could not decrypt value [{}]", value, e);
}
return null;
} | java | public String decryptValue(final String value) {
try {
return decryptValuePropagateExceptions(value);
} catch (final Exception e) {
LOGGER.error("Could not decrypt value [{}]", value, e);
}
return null;
} | [
"public",
"String",
"decryptValue",
"(",
"final",
"String",
"value",
")",
"{",
"try",
"{",
"return",
"decryptValuePropagateExceptions",
"(",
"value",
")",
";",
"}",
"catch",
"(",
"final",
"Exception",
"e",
")",
"{",
"LOGGER",
".",
"error",
"(",
"\"Could not ... | Decrypt value string.
@param value the value
@return the string | [
"Decrypt",
"value",
"string",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java#L158-L165 |
127,115 | apereo/cas | support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/ListUndocumentedPropertiesCommand.java | ListUndocumentedPropertiesCommand.listUndocumented | @ShellMethod(key = "list-undocumented", value = "List all CAS undocumented properties.")
public void listUndocumented() {
val repository = new CasConfigurationMetadataRepository();
repository.getRepository().getAllProperties()
.entrySet()
.stream()
.filter(p -> p.... | java | @ShellMethod(key = "list-undocumented", value = "List all CAS undocumented properties.")
public void listUndocumented() {
val repository = new CasConfigurationMetadataRepository();
repository.getRepository().getAllProperties()
.entrySet()
.stream()
.filter(p -> p.... | [
"@",
"ShellMethod",
"(",
"key",
"=",
"\"list-undocumented\"",
",",
"value",
"=",
"\"List all CAS undocumented properties.\"",
")",
"public",
"void",
"listUndocumented",
"(",
")",
"{",
"val",
"repository",
"=",
"new",
"CasConfigurationMetadataRepository",
"(",
")",
";"... | List undocumented settings. | [
"List",
"undocumented",
"settings",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/ListUndocumentedPropertiesCommand.java#L34-L45 |
127,116 | apereo/cas | support/cas-server-support-service-registry-stream-hazelcast/src/main/java/org/apereo/cas/services/RegisteredServiceHazelcastDistributedCacheManager.java | RegisteredServiceHazelcastDistributedCacheManager.buildKey | public static String buildKey(final RegisteredService service) {
return service.getId() + ";" + service.getName() + ';' + service.getServiceId();
} | java | public static String buildKey(final RegisteredService service) {
return service.getId() + ";" + service.getName() + ';' + service.getServiceId();
} | [
"public",
"static",
"String",
"buildKey",
"(",
"final",
"RegisteredService",
"service",
")",
"{",
"return",
"service",
".",
"getId",
"(",
")",
"+",
"\";\"",
"+",
"service",
".",
"getName",
"(",
")",
"+",
"'",
"'",
"+",
"service",
".",
"getServiceId",
"("... | Gets key.
@param service the service
@return the key | [
"Gets",
"key",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-service-registry-stream-hazelcast/src/main/java/org/apereo/cas/services/RegisteredServiceHazelcastDistributedCacheManager.java#L42-L44 |
127,117 | apereo/cas | support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java | SamlIdPUtils.preparePeerEntitySamlEndpointContext | public static void preparePeerEntitySamlEndpointContext(final RequestAbstractType request,
final MessageContext outboundContext,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
... | java | public static void preparePeerEntitySamlEndpointContext(final RequestAbstractType request,
final MessageContext outboundContext,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
... | [
"public",
"static",
"void",
"preparePeerEntitySamlEndpointContext",
"(",
"final",
"RequestAbstractType",
"request",
",",
"final",
"MessageContext",
"outboundContext",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
",",
"final",
"String",
"binding... | Prepare peer entity saml endpoint.
@param request the authn request
@param outboundContext the outbound context
@param adaptor the adaptor
@param binding the binding
@throws SamlException the saml exception | [
"Prepare",
"peer",
"entity",
"saml",
"endpoint",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java#L59-L82 |
127,118 | apereo/cas | support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java | SamlIdPUtils.determineEndpointForRequest | public static Endpoint determineEndpointForRequest(final RequestAbstractType authnRequest,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
final String binding) {
var endpoint = (Endpo... | java | public static Endpoint determineEndpointForRequest(final RequestAbstractType authnRequest,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
final String binding) {
var endpoint = (Endpo... | [
"public",
"static",
"Endpoint",
"determineEndpointForRequest",
"(",
"final",
"RequestAbstractType",
"authnRequest",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
",",
"final",
"String",
"binding",
")",
"{",
"var",
"endpoint",
"=",
"(",
"En... | Determine assertion consumer service assertion consumer service.
@param authnRequest the authn request
@param adaptor the adaptor
@param binding the binding
@return the assertion consumer service | [
"Determine",
"assertion",
"consumer",
"service",
"assertion",
"consumer",
"service",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java#L92-L113 |
127,119 | apereo/cas | support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java | SamlIdPUtils.getMetadataResolverForAllSamlServices | @SneakyThrows
@SuppressFBWarnings("PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS")
public static MetadataResolver getMetadataResolverForAllSamlServices(final ServicesManager servicesManager,
final String entityID,
... | java | @SneakyThrows
@SuppressFBWarnings("PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS")
public static MetadataResolver getMetadataResolverForAllSamlServices(final ServicesManager servicesManager,
final String entityID,
... | [
"@",
"SneakyThrows",
"@",
"SuppressFBWarnings",
"(",
"\"PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS\"",
")",
"public",
"static",
"MetadataResolver",
"getMetadataResolverForAllSamlServices",
"(",
"final",
"ServicesManager",
"servicesManager",
",",
"final",
"String",
"entityID",
",",
... | Gets chaining metadata resolver for all saml services.
@param servicesManager the services manager
@param entityID the entity id
@param resolver the resolver
@return the chaining metadata resolver for all saml services | [
"Gets",
"chaining",
"metadata",
"resolver",
"for",
"all",
"saml",
"services",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java#L140-L164 |
127,120 | apereo/cas | support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java | SamlIdPUtils.getAssertionConsumerServiceFor | public static AssertionConsumerService getAssertionConsumerServiceFor(final AuthnRequest authnRequest,
final ServicesManager servicesManager,
final SamlRegisteredServiceCac... | java | public static AssertionConsumerService getAssertionConsumerServiceFor(final AuthnRequest authnRequest,
final ServicesManager servicesManager,
final SamlRegisteredServiceCac... | [
"public",
"static",
"AssertionConsumerService",
"getAssertionConsumerServiceFor",
"(",
"final",
"AuthnRequest",
"authnRequest",
",",
"final",
"ServicesManager",
"servicesManager",
",",
"final",
"SamlRegisteredServiceCachingMetadataResolver",
"resolver",
")",
"{",
"try",
"{",
... | Gets assertion consumer service for.
@param authnRequest the authn request
@param servicesManager the services manager
@param resolver the resolver
@return the assertion consumer service for | [
"Gets",
"assertion",
"consumer",
"service",
"for",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java#L174-L224 |
127,121 | apereo/cas | support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java | SamlIdPUtils.getIssuerFromSamlObject | public static String getIssuerFromSamlObject(final SAMLObject object) {
if (object instanceof RequestAbstractType) {
return RequestAbstractType.class.cast(object).getIssuer().getValue();
}
if (object instanceof StatusResponseType) {
return StatusResponseType.class.cast(ob... | java | public static String getIssuerFromSamlObject(final SAMLObject object) {
if (object instanceof RequestAbstractType) {
return RequestAbstractType.class.cast(object).getIssuer().getValue();
}
if (object instanceof StatusResponseType) {
return StatusResponseType.class.cast(ob... | [
"public",
"static",
"String",
"getIssuerFromSamlObject",
"(",
"final",
"SAMLObject",
"object",
")",
"{",
"if",
"(",
"object",
"instanceof",
"RequestAbstractType",
")",
"{",
"return",
"RequestAbstractType",
".",
"class",
".",
"cast",
"(",
"object",
")",
".",
"get... | Gets issuer from saml object.
@param object the object
@return the issuer from saml object | [
"Gets",
"issuer",
"from",
"saml",
"object",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/SamlIdPUtils.java#L252-L260 |
127,122 | apereo/cas | support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java | LdaptiveResourceCRLFetcher.fetchCRLFromLdap | protected X509CRL fetchCRLFromLdap(final Object r) throws CertificateException, IOException, CRLException {
try {
val ldapURL = r.toString();
LOGGER.debug("Fetching CRL from ldap [{}]", ldapURL);
val result = performLdapSearch(ldapURL);
if (result.getResultCode()... | java | protected X509CRL fetchCRLFromLdap(final Object r) throws CertificateException, IOException, CRLException {
try {
val ldapURL = r.toString();
LOGGER.debug("Fetching CRL from ldap [{}]", ldapURL);
val result = performLdapSearch(ldapURL);
if (result.getResultCode()... | [
"protected",
"X509CRL",
"fetchCRLFromLdap",
"(",
"final",
"Object",
"r",
")",
"throws",
"CertificateException",
",",
"IOException",
",",
"CRLException",
"{",
"try",
"{",
"val",
"ldapURL",
"=",
"r",
".",
"toString",
"(",
")",
";",
"LOGGER",
".",
"debug",
"(",... | Downloads a CRL from given LDAP url.
@param r the resource that is the ldap url.
@return the x 509 cRL
@throws IOException the exception thrown if resources cant be fetched
@throws CRLException the exception thrown if resources cant be fetched
@throws CertificateException if connection to ldap fails, ... | [
"Downloads",
"a",
"CRL",
"from",
"given",
"LDAP",
"url",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java#L92-L116 |
127,123 | apereo/cas | support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java | LdaptiveResourceCRLFetcher.fetchX509CRLFromAttribute | protected X509CRL fetchX509CRLFromAttribute(final LdapAttribute aval) throws CertificateException, IOException, CRLException {
if (aval != null && aval.isBinary()) {
val val = aval.getBinaryValue();
if (val == null || val.length == 0) {
throw new CertificateException("Emp... | java | protected X509CRL fetchX509CRLFromAttribute(final LdapAttribute aval) throws CertificateException, IOException, CRLException {
if (aval != null && aval.isBinary()) {
val val = aval.getBinaryValue();
if (val == null || val.length == 0) {
throw new CertificateException("Emp... | [
"protected",
"X509CRL",
"fetchX509CRLFromAttribute",
"(",
"final",
"LdapAttribute",
"aval",
")",
"throws",
"CertificateException",
",",
"IOException",
",",
"CRLException",
"{",
"if",
"(",
"aval",
"!=",
"null",
"&&",
"aval",
".",
"isBinary",
"(",
")",
")",
"{",
... | Gets x509 cRL from attribute. Retrieves the binary attribute value,
decodes it to base64, and fetches it as a byte-array resource.
@param aval the attribute, which may be null if it's not found
@return the x 509 cRL from attribute
@throws IOException the exception thrown if resources cant be fetched
@throws C... | [
"Gets",
"x509",
"cRL",
"from",
"attribute",
".",
"Retrieves",
"the",
"binary",
"attribute",
"value",
"decodes",
"it",
"to",
"base64",
"and",
"fetches",
"it",
"as",
"a",
"byte",
"-",
"array",
"resource",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java#L129-L143 |
127,124 | apereo/cas | support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java | LdaptiveResourceCRLFetcher.performLdapSearch | protected Response<SearchResult> performLdapSearch(final String ldapURL) throws LdapException {
val connectionFactory = prepareConnectionFactory(ldapURL);
return this.searchExecutor.search(connectionFactory);
} | java | protected Response<SearchResult> performLdapSearch(final String ldapURL) throws LdapException {
val connectionFactory = prepareConnectionFactory(ldapURL);
return this.searchExecutor.search(connectionFactory);
} | [
"protected",
"Response",
"<",
"SearchResult",
">",
"performLdapSearch",
"(",
"final",
"String",
"ldapURL",
")",
"throws",
"LdapException",
"{",
"val",
"connectionFactory",
"=",
"prepareConnectionFactory",
"(",
"ldapURL",
")",
";",
"return",
"this",
".",
"searchExecu... | Executes an LDAP search against the supplied URL.
@param ldapURL to search
@return search result
@throws LdapException if an error occurs performing the search | [
"Executes",
"an",
"LDAP",
"search",
"against",
"the",
"supplied",
"URL",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java#L152-L155 |
127,125 | apereo/cas | support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java | LdaptiveResourceCRLFetcher.prepareConnectionFactory | protected ConnectionFactory prepareConnectionFactory(final String ldapURL) {
val cc = ConnectionConfig.newConnectionConfig(this.connectionConfig);
cc.setLdapUrl(ldapURL);
return new DefaultConnectionFactory(cc);
} | java | protected ConnectionFactory prepareConnectionFactory(final String ldapURL) {
val cc = ConnectionConfig.newConnectionConfig(this.connectionConfig);
cc.setLdapUrl(ldapURL);
return new DefaultConnectionFactory(cc);
} | [
"protected",
"ConnectionFactory",
"prepareConnectionFactory",
"(",
"final",
"String",
"ldapURL",
")",
"{",
"val",
"cc",
"=",
"ConnectionConfig",
".",
"newConnectionConfig",
"(",
"this",
".",
"connectionConfig",
")",
";",
"cc",
".",
"setLdapUrl",
"(",
"ldapURL",
")... | Prepare a new LDAP connection.
@param ldapURL the ldap uRL
@return connection factory | [
"Prepare",
"a",
"new",
"LDAP",
"connection",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcher.java#L163-L167 |
127,126 | apereo/cas | core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationProviderBean.java | MultifactorAuthenticationProviderBean.getProvider | public T getProvider(final String id) {
return (T) beanFactory.getBean(providerFactory.beanName(id));
} | java | public T getProvider(final String id) {
return (T) beanFactory.getBean(providerFactory.beanName(id));
} | [
"public",
"T",
"getProvider",
"(",
"final",
"String",
"id",
")",
"{",
"return",
"(",
"T",
")",
"beanFactory",
".",
"getBean",
"(",
"providerFactory",
".",
"beanName",
"(",
"id",
")",
")",
";",
"}"
] | Returns the provider assigned to the passed id.
@param id - the id
@return {@link MultifactorAuthenticationProvider} | [
"Returns",
"the",
"provider",
"assigned",
"to",
"the",
"passed",
"id",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationProviderBean.java#L50-L52 |
127,127 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/Beans.java | Beans.newStubAttributeRepository | @SneakyThrows
public static IPersonAttributeDao newStubAttributeRepository(final PrincipalAttributesProperties p) {
val dao = new NamedStubPersonAttributeDao();
val pdirMap = new LinkedHashMap<String, List<Object>>();
val stub = p.getStub();
stub.getAttributes().forEach((key, value) ... | java | @SneakyThrows
public static IPersonAttributeDao newStubAttributeRepository(final PrincipalAttributesProperties p) {
val dao = new NamedStubPersonAttributeDao();
val pdirMap = new LinkedHashMap<String, List<Object>>();
val stub = p.getStub();
stub.getAttributes().forEach((key, value) ... | [
"@",
"SneakyThrows",
"public",
"static",
"IPersonAttributeDao",
"newStubAttributeRepository",
"(",
"final",
"PrincipalAttributesProperties",
"p",
")",
"{",
"val",
"dao",
"=",
"new",
"NamedStubPersonAttributeDao",
"(",
")",
";",
"val",
"pdirMap",
"=",
"new",
"LinkedHas... | New attribute repository person attribute dao.
@param p the properties
@return the person attribute dao | [
"New",
"attribute",
"repository",
"person",
"attribute",
"dao",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/Beans.java#L67-L81 |
127,128 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/Beans.java | Beans.newDuration | @SneakyThrows
public static Duration newDuration(final String length) {
if (NumberUtils.isCreatable(length)) {
return Duration.ofSeconds(Long.parseLong(length));
}
return Duration.parse(length);
} | java | @SneakyThrows
public static Duration newDuration(final String length) {
if (NumberUtils.isCreatable(length)) {
return Duration.ofSeconds(Long.parseLong(length));
}
return Duration.parse(length);
} | [
"@",
"SneakyThrows",
"public",
"static",
"Duration",
"newDuration",
"(",
"final",
"String",
"length",
")",
"{",
"if",
"(",
"NumberUtils",
".",
"isCreatable",
"(",
"length",
")",
")",
"{",
"return",
"Duration",
".",
"ofSeconds",
"(",
"Long",
".",
"parseLong",... | New duration. If the provided length is duration,
it will be parsed accordingly, or if it's a numeric value
it will be pared as a duration assuming it's provided as seconds.
@param length the length in seconds.
@return the duration | [
"New",
"duration",
".",
"If",
"the",
"provided",
"length",
"is",
"duration",
"it",
"will",
"be",
"parsed",
"accordingly",
"or",
"if",
"it",
"s",
"a",
"numeric",
"value",
"it",
"will",
"be",
"pared",
"as",
"a",
"duration",
"assuming",
"it",
"s",
"provided... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/Beans.java#L92-L98 |
127,129 | apereo/cas | support/cas-server-support-grouper-core/src/main/java/org/apereo/cas/grouper/GrouperFacade.java | GrouperFacade.getGrouperGroupAttribute | public static String getGrouperGroupAttribute(final GrouperGroupField groupField, final WsGroup group) {
switch (groupField) {
case DISPLAY_EXTENSION:
return group.getDisplayExtension();
case DISPLAY_NAME:
return group.getDisplayName();
case EX... | java | public static String getGrouperGroupAttribute(final GrouperGroupField groupField, final WsGroup group) {
switch (groupField) {
case DISPLAY_EXTENSION:
return group.getDisplayExtension();
case DISPLAY_NAME:
return group.getDisplayName();
case EX... | [
"public",
"static",
"String",
"getGrouperGroupAttribute",
"(",
"final",
"GrouperGroupField",
"groupField",
",",
"final",
"WsGroup",
"group",
")",
"{",
"switch",
"(",
"groupField",
")",
"{",
"case",
"DISPLAY_EXTENSION",
":",
"return",
"group",
".",
"getDisplayExtensi... | Construct grouper group attribute.
This is the name of every individual group attribute
transformed into a CAS attribute value.
@param groupField the group field
@param group the group
@return the final attribute name | [
"Construct",
"grouper",
"group",
"attribute",
".",
"This",
"is",
"the",
"name",
"of",
"every",
"individual",
"group",
"attribute",
"transformed",
"into",
"a",
"CAS",
"attribute",
"value",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-grouper-core/src/main/java/org/apereo/cas/grouper/GrouperFacade.java#L33-L45 |
127,130 | apereo/cas | support/cas-server-support-grouper-core/src/main/java/org/apereo/cas/grouper/GrouperFacade.java | GrouperFacade.getGroupsForSubjectId | public Collection<WsGetGroupsResult> getGroupsForSubjectId(final String subjectId) {
try {
val groupsClient = new GcGetGroups().addSubjectId(subjectId);
val results = groupsClient.execute().getResults();
if (results == null || results.length == 0) {
LOGGER.war... | java | public Collection<WsGetGroupsResult> getGroupsForSubjectId(final String subjectId) {
try {
val groupsClient = new GcGetGroups().addSubjectId(subjectId);
val results = groupsClient.execute().getResults();
if (results == null || results.length == 0) {
LOGGER.war... | [
"public",
"Collection",
"<",
"WsGetGroupsResult",
">",
"getGroupsForSubjectId",
"(",
"final",
"String",
"subjectId",
")",
"{",
"try",
"{",
"val",
"groupsClient",
"=",
"new",
"GcGetGroups",
"(",
")",
".",
"addSubjectId",
"(",
"subjectId",
")",
";",
"val",
"resu... | Gets groups for subject id.
@param subjectId the principal
@return the groups for subject id | [
"Gets",
"groups",
"for",
"subject",
"id",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-grouper-core/src/main/java/org/apereo/cas/grouper/GrouperFacade.java#L53-L68 |
127,131 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/HttpServletRequestXMLMessageDecodersMap.java | HttpServletRequestXMLMessageDecodersMap.getInstance | @SneakyThrows
public BaseHttpServletRequestXMLMessageDecoder getInstance(final HttpMethod method) {
val decoder = get(method);
return (BaseHttpServletRequestXMLMessageDecoder) BeanUtils.cloneBean(decoder);
} | java | @SneakyThrows
public BaseHttpServletRequestXMLMessageDecoder getInstance(final HttpMethod method) {
val decoder = get(method);
return (BaseHttpServletRequestXMLMessageDecoder) BeanUtils.cloneBean(decoder);
} | [
"@",
"SneakyThrows",
"public",
"BaseHttpServletRequestXMLMessageDecoder",
"getInstance",
"(",
"final",
"HttpMethod",
"method",
")",
"{",
"val",
"decoder",
"=",
"get",
"(",
"method",
")",
";",
"return",
"(",
"BaseHttpServletRequestXMLMessageDecoder",
")",
"BeanUtils",
... | Gets a cloned instance of the decoder.
Decoders are initialized once at configuration
and then re-created on demand so they can initialized
via OpenSAML again for new incoming requests.
@param method the method
@return the instance | [
"Gets",
"a",
"cloned",
"instance",
"of",
"the",
"decoder",
".",
"Decoders",
"are",
"initialized",
"once",
"at",
"configuration",
"and",
"then",
"re",
"-",
"created",
"on",
"demand",
"so",
"they",
"can",
"initialized",
"via",
"OpenSAML",
"again",
"for",
"new"... | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/HttpServletRequestXMLMessageDecodersMap.java#L33-L37 |
127,132 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.findOneByUidForOtp | @View(name = "by_uid_otp", map = "function(doc) { if(doc.token && doc.userId) { emit([doc.userId, doc.token], doc) } }")
public CouchDbGoogleAuthenticatorToken findOneByUidForOtp(final String uid, final Integer otp) {
val view = createQuery("by_uid_otp").key(ComplexKey.of(uid, otp)).limit(1);
return... | java | @View(name = "by_uid_otp", map = "function(doc) { if(doc.token && doc.userId) { emit([doc.userId, doc.token], doc) } }")
public CouchDbGoogleAuthenticatorToken findOneByUidForOtp(final String uid, final Integer otp) {
val view = createQuery("by_uid_otp").key(ComplexKey.of(uid, otp)).limit(1);
return... | [
"@",
"View",
"(",
"name",
"=",
"\"by_uid_otp\"",
",",
"map",
"=",
"\"function(doc) { if(doc.token && doc.userId) { emit([doc.userId, doc.token], doc) } }\"",
")",
"public",
"CouchDbGoogleAuthenticatorToken",
"findOneByUidForOtp",
"(",
"final",
"String",
"uid",
",",
"final",
"... | Find first by uid, otp pair.
@param uid uid to search
@param otp otp to search
@return token for uid, otp pair | [
"Find",
"first",
"by",
"uid",
"otp",
"pair",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L33-L37 |
127,133 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.findByIssuedDateTimeBefore | @View(name = "by_issued_date_time", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.issuedDateTime, doc) } }")
public Collection<CouchDbGoogleAuthenticatorToken> findByIssuedDateTimeBefore(final LocalDateTime localDateTime) {
val view = createQuery("by_issued_date_time").endKey(localDateTime);... | java | @View(name = "by_issued_date_time", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.issuedDateTime, doc) } }")
public Collection<CouchDbGoogleAuthenticatorToken> findByIssuedDateTimeBefore(final LocalDateTime localDateTime) {
val view = createQuery("by_issued_date_time").endKey(localDateTime);... | [
"@",
"View",
"(",
"name",
"=",
"\"by_issued_date_time\"",
",",
"map",
"=",
"\"function(doc) { if(doc.token && doc.userId) { emit(doc.issuedDateTime, doc) } }\"",
")",
"public",
"Collection",
"<",
"CouchDbGoogleAuthenticatorToken",
">",
"findByIssuedDateTimeBefore",
"(",
"final",
... | Find by issued date.
@param localDateTime time to search for tokens before
@return tokens issued before given date | [
"Find",
"by",
"issued",
"date",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L45-L49 |
127,134 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.findByUserId | @View(name = "by_userId", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.userId, doc) } }")
public List<CouchDbGoogleAuthenticatorToken> findByUserId(final String userId) {
return queryView("by_userId", userId);
} | java | @View(name = "by_userId", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.userId, doc) } }")
public List<CouchDbGoogleAuthenticatorToken> findByUserId(final String userId) {
return queryView("by_userId", userId);
} | [
"@",
"View",
"(",
"name",
"=",
"\"by_userId\"",
",",
"map",
"=",
"\"function(doc) { if(doc.token && doc.userId) { emit(doc.userId, doc) } }\"",
")",
"public",
"List",
"<",
"CouchDbGoogleAuthenticatorToken",
">",
"findByUserId",
"(",
"final",
"String",
"userId",
")",
"{",
... | Find tokens by user id.
@param userId user id to search for
@return tokens belonging to use id | [
"Find",
"tokens",
"by",
"user",
"id",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L57-L60 |
127,135 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.countByUserId | @View(name = "count_by_userId", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.userId, doc) } }", reduce = "_count")
public long countByUserId(final String userId) {
val view = createQuery("count_by_userId").key(userId);
val rows = db.queryView(view).getRows();
if (rows.isEmpt... | java | @View(name = "count_by_userId", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.userId, doc) } }", reduce = "_count")
public long countByUserId(final String userId) {
val view = createQuery("count_by_userId").key(userId);
val rows = db.queryView(view).getRows();
if (rows.isEmpt... | [
"@",
"View",
"(",
"name",
"=",
"\"count_by_userId\"",
",",
"map",
"=",
"\"function(doc) { if(doc.token && doc.userId) { emit(doc.userId, doc) } }\"",
",",
"reduce",
"=",
"\"_count\"",
")",
"public",
"long",
"countByUserId",
"(",
"final",
"String",
"userId",
")",
"{",
... | Token count for a user.
@param userId user to count tokens for
@return count of the user's tokens | [
"Token",
"count",
"for",
"a",
"user",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L68-L76 |
127,136 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.count | @View(name = "count", map = "function(doc) { if(doc.token && doc.userId) { emit(doc._id, doc) } }", reduce = "_count")
public long count() {
val rows = db.queryView(createQuery("count")).getRows();
if (rows.isEmpty()) {
return 0;
}
return rows.get(0).getValueAsInt();
... | java | @View(name = "count", map = "function(doc) { if(doc.token && doc.userId) { emit(doc._id, doc) } }", reduce = "_count")
public long count() {
val rows = db.queryView(createQuery("count")).getRows();
if (rows.isEmpty()) {
return 0;
}
return rows.get(0).getValueAsInt();
... | [
"@",
"View",
"(",
"name",
"=",
"\"count\"",
",",
"map",
"=",
"\"function(doc) { if(doc.token && doc.userId) { emit(doc._id, doc) } }\"",
",",
"reduce",
"=",
"\"_count\"",
")",
"public",
"long",
"count",
"(",
")",
"{",
"val",
"rows",
"=",
"db",
".",
"queryView",
... | Total number of tokens stored.
@return number of tokens in database | [
"Total",
"number",
"of",
"tokens",
"stored",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L83-L90 |
127,137 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.deleteToken | @UpdateHandler(name = "delete_token", file = "CouchDbOneTimeToken_delete.js")
public void deleteToken(final CouchDbGoogleAuthenticatorToken token) {
db.callUpdateHandler(stdDesignDocumentId, "delete_token", token.getCid(), null);
} | java | @UpdateHandler(name = "delete_token", file = "CouchDbOneTimeToken_delete.js")
public void deleteToken(final CouchDbGoogleAuthenticatorToken token) {
db.callUpdateHandler(stdDesignDocumentId, "delete_token", token.getCid(), null);
} | [
"@",
"UpdateHandler",
"(",
"name",
"=",
"\"delete_token\"",
",",
"file",
"=",
"\"CouchDbOneTimeToken_delete.js\"",
")",
"public",
"void",
"deleteToken",
"(",
"final",
"CouchDbGoogleAuthenticatorToken",
"token",
")",
"{",
"db",
".",
"callUpdateHandler",
"(",
"stdDesign... | Delete record, ignoring rev.
@param token token to delete | [
"Delete",
"record",
"ignoring",
"rev",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L97-L100 |
127,138 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.findByUidForOtp | @View(name = "by_uid_otp", map = "function(doc) { if(doc.token && doc.userId) { emit([doc.userId, doc.token], doc) } }")
public List<CouchDbGoogleAuthenticatorToken> findByUidForOtp(final String uid, final Integer otp) {
val view = createQuery("by_uid_otp").key(ComplexKey.of(uid, otp));
return db.qu... | java | @View(name = "by_uid_otp", map = "function(doc) { if(doc.token && doc.userId) { emit([doc.userId, doc.token], doc) } }")
public List<CouchDbGoogleAuthenticatorToken> findByUidForOtp(final String uid, final Integer otp) {
val view = createQuery("by_uid_otp").key(ComplexKey.of(uid, otp));
return db.qu... | [
"@",
"View",
"(",
"name",
"=",
"\"by_uid_otp\"",
",",
"map",
"=",
"\"function(doc) { if(doc.token && doc.userId) { emit([doc.userId, doc.token], doc) } }\"",
")",
"public",
"List",
"<",
"CouchDbGoogleAuthenticatorToken",
">",
"findByUidForOtp",
"(",
"final",
"String",
"uid",
... | Find all by uid, otp pair.
@param uid uid to search
@param otp otp to search
@return token for uid, otp pair | [
"Find",
"all",
"by",
"uid",
"otp",
"pair",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L110-L114 |
127,139 | apereo/cas | support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java | GoogleAuthenticatorTokenCouchDbRepository.findByToken | @View(name = "by_token", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.token, doc) } }")
public List<CouchDbGoogleAuthenticatorToken> findByToken(final Integer otp) {
return queryView("by_token", otp);
} | java | @View(name = "by_token", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.token, doc) } }")
public List<CouchDbGoogleAuthenticatorToken> findByToken(final Integer otp) {
return queryView("by_token", otp);
} | [
"@",
"View",
"(",
"name",
"=",
"\"by_token\"",
",",
"map",
"=",
"\"function(doc) { if(doc.token && doc.userId) { emit(doc.token, doc) } }\"",
")",
"public",
"List",
"<",
"CouchDbGoogleAuthenticatorToken",
">",
"findByToken",
"(",
"final",
"Integer",
"otp",
")",
"{",
"re... | Find by token.
@param otp token to search for
@return token for the otp | [
"Find",
"by",
"token",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/token/GoogleAuthenticatorTokenCouchDbRepository.java#L122-L125 |
127,140 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java | OidcIdTokenGeneratorService.getJwtId | protected String getJwtId(final TicketGrantingTicket tgt) {
val oAuthCallbackUrl = getConfigurationContext().getCasProperties().getServer().getPrefix()
+ OAuth20Constants.BASE_OAUTH20_URL + '/'
+ OAuth20Constants.CALLBACK_AUTHORIZE_URL_DEFINITION;
val oAuthServiceTicket = Stream... | java | protected String getJwtId(final TicketGrantingTicket tgt) {
val oAuthCallbackUrl = getConfigurationContext().getCasProperties().getServer().getPrefix()
+ OAuth20Constants.BASE_OAUTH20_URL + '/'
+ OAuth20Constants.CALLBACK_AUTHORIZE_URL_DEFINITION;
val oAuthServiceTicket = Stream... | [
"protected",
"String",
"getJwtId",
"(",
"final",
"TicketGrantingTicket",
"tgt",
")",
"{",
"val",
"oAuthCallbackUrl",
"=",
"getConfigurationContext",
"(",
")",
".",
"getCasProperties",
"(",
")",
".",
"getServer",
"(",
")",
".",
"getPrefix",
"(",
")",
"+",
"OAut... | Gets oauth service ticket.
@param tgt the tgt
@return the o auth service ticket | [
"Gets",
"oauth",
"service",
"ticket",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java#L156-L174 |
127,141 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java | OidcIdTokenGeneratorService.generateAccessTokenHash | protected String generateAccessTokenHash(final AccessToken accessTokenId,
final OidcRegisteredService service) {
val alg = getConfigurationContext().getIdTokenSigningAndEncryptionService().getJsonWebKeySigningAlgorithm(service);
val tokenBytes = accessTokenId... | java | protected String generateAccessTokenHash(final AccessToken accessTokenId,
final OidcRegisteredService service) {
val alg = getConfigurationContext().getIdTokenSigningAndEncryptionService().getJsonWebKeySigningAlgorithm(service);
val tokenBytes = accessTokenId... | [
"protected",
"String",
"generateAccessTokenHash",
"(",
"final",
"AccessToken",
"accessTokenId",
",",
"final",
"OidcRegisteredService",
"service",
")",
"{",
"val",
"alg",
"=",
"getConfigurationContext",
"(",
")",
".",
"getIdTokenSigningAndEncryptionService",
"(",
")",
".... | Generate access token hash string.
@param accessTokenId the access token id
@param service the service
@return the string | [
"Generate",
"access",
"token",
"hash",
"string",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java#L183-L197 |
127,142 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java | OidcIdTokenGeneratorService.getSigningHashAlgorithm | protected String getSigningHashAlgorithm(final OidcRegisteredService service) {
val alg = getConfigurationContext().getIdTokenSigningAndEncryptionService().getJsonWebKeySigningAlgorithm(service);
LOGGER.debug("Signing algorithm specified by service [{}] is [{}]", service.getServiceId(), alg);
i... | java | protected String getSigningHashAlgorithm(final OidcRegisteredService service) {
val alg = getConfigurationContext().getIdTokenSigningAndEncryptionService().getJsonWebKeySigningAlgorithm(service);
LOGGER.debug("Signing algorithm specified by service [{}] is [{}]", service.getServiceId(), alg);
i... | [
"protected",
"String",
"getSigningHashAlgorithm",
"(",
"final",
"OidcRegisteredService",
"service",
")",
"{",
"val",
"alg",
"=",
"getConfigurationContext",
"(",
")",
".",
"getIdTokenSigningAndEncryptionService",
"(",
")",
".",
"getJsonWebKeySigningAlgorithm",
"(",
"servic... | Gets signing hash algorithm.
@param service the service
@return the signing hash algorithm | [
"Gets",
"signing",
"hash",
"algorithm",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenGeneratorService.java#L205-L219 |
127,143 | apereo/cas | support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/web/SamlValidateEndpoint.java | SamlValidateEndpoint.handle | @ReadOperation
public Map<String, Object> handle(final String username,
final String password,
final String service) {
val selectedService = this.serviceFactory.createService(service);
val registeredService = this.servicesM... | java | @ReadOperation
public Map<String, Object> handle(final String username,
final String password,
final String service) {
val selectedService = this.serviceFactory.createService(service);
val registeredService = this.servicesM... | [
"@",
"ReadOperation",
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"handle",
"(",
"final",
"String",
"username",
",",
"final",
"String",
"password",
",",
"final",
"String",
"service",
")",
"{",
"val",
"selectedService",
"=",
"this",
".",
"serviceFacto... | Handle validation request and produce saml1 payload.
@param username the username
@param password the password
@param service the service
@return the map | [
"Handle",
"validation",
"request",
"and",
"produce",
"saml1",
"payload",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/web/SamlValidateEndpoint.java#L63-L94 |
127,144 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/SimpleHttpClientFactoryBean.java | SimpleHttpClientFactoryBean.buildHttpClient | @SneakyThrows
private CloseableHttpClient buildHttpClient() {
val plainSocketFactory = PlainConnectionSocketFactory.getSocketFactory();
val registry = RegistryBuilder.<ConnectionSocketFactory>create()
.register("http", plainSocketFactory)
.register("https", this.sslSocketFact... | java | @SneakyThrows
private CloseableHttpClient buildHttpClient() {
val plainSocketFactory = PlainConnectionSocketFactory.getSocketFactory();
val registry = RegistryBuilder.<ConnectionSocketFactory>create()
.register("http", plainSocketFactory)
.register("https", this.sslSocketFact... | [
"@",
"SneakyThrows",
"private",
"CloseableHttpClient",
"buildHttpClient",
"(",
")",
"{",
"val",
"plainSocketFactory",
"=",
"PlainConnectionSocketFactory",
".",
"getSocketFactory",
"(",
")",
";",
"val",
"registry",
"=",
"RegistryBuilder",
".",
"<",
"ConnectionSocketFacto... | Build a HTTP client based on the current properties.
@return the built HTTP client | [
"Build",
"a",
"HTTP",
"client",
"based",
"on",
"the",
"current",
"properties",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/SimpleHttpClientFactoryBean.java#L206-L247 |
127,145 | apereo/cas | support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/principal/AbstractX509PrincipalResolver.java | AbstractX509PrincipalResolver.getAlternatePrincipal | protected String getAlternatePrincipal(final X509Certificate certificate) {
if (alternatePrincipalAttribute == null) {
return null;
}
val attributes = extractPersonAttributes(certificate);
val attribute = attributes.get(alternatePrincipalAttribute);
if (attribute == n... | java | protected String getAlternatePrincipal(final X509Certificate certificate) {
if (alternatePrincipalAttribute == null) {
return null;
}
val attributes = extractPersonAttributes(certificate);
val attribute = attributes.get(alternatePrincipalAttribute);
if (attribute == n... | [
"protected",
"String",
"getAlternatePrincipal",
"(",
"final",
"X509Certificate",
"certificate",
")",
"{",
"if",
"(",
"alternatePrincipalAttribute",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"val",
"attributes",
"=",
"extractPersonAttributes",
"(",
"certifi... | Get alternate principal if alternate attribute configured.
@param certificate X509 Certificate of user
@return principal using alternate attribute or null if none configured | [
"Get",
"alternate",
"principal",
"if",
"alternate",
"attribute",
"configured",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/principal/AbstractX509PrincipalResolver.java#L93-L115 |
127,146 | apereo/cas | support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/principal/AbstractX509PrincipalResolver.java | AbstractX509PrincipalResolver.extractPersonAttributes | protected Map<String, List<Object>> extractPersonAttributes(final X509Certificate certificate) {
val attributes = new LinkedHashMap<String, List<Object>>();
if (certificate != null) {
if (StringUtils.isNotBlank(certificate.getSigAlgOID())) {
attributes.put("sigAlgOid", Colle... | java | protected Map<String, List<Object>> extractPersonAttributes(final X509Certificate certificate) {
val attributes = new LinkedHashMap<String, List<Object>>();
if (certificate != null) {
if (StringUtils.isNotBlank(certificate.getSigAlgOID())) {
attributes.put("sigAlgOid", Colle... | [
"protected",
"Map",
"<",
"String",
",",
"List",
"<",
"Object",
">",
">",
"extractPersonAttributes",
"(",
"final",
"X509Certificate",
"certificate",
")",
"{",
"val",
"attributes",
"=",
"new",
"LinkedHashMap",
"<",
"String",
",",
"List",
"<",
"Object",
">",
">... | Get additional attributes from the certificate.
@param certificate X509 Certificate of user
@return map of attributes | [
"Get",
"additional",
"attributes",
"from",
"the",
"certificate",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/principal/AbstractX509PrincipalResolver.java#L123-L148 |
127,147 | apereo/cas | support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/principal/AbstractX509PrincipalResolver.java | AbstractX509PrincipalResolver.getRFC822EmailAddress | protected String getRFC822EmailAddress(final Collection<List<?>> subjectAltNames) {
if (subjectAltNames == null) {
return null;
}
Optional<List<?>> email = subjectAltNames
.stream()
.filter(s -> s.size() == 2 && (Integer) s.get(0) == SAN_RFC822_EMAIL_TYPE)
... | java | protected String getRFC822EmailAddress(final Collection<List<?>> subjectAltNames) {
if (subjectAltNames == null) {
return null;
}
Optional<List<?>> email = subjectAltNames
.stream()
.filter(s -> s.size() == 2 && (Integer) s.get(0) == SAN_RFC822_EMAIL_TYPE)
... | [
"protected",
"String",
"getRFC822EmailAddress",
"(",
"final",
"Collection",
"<",
"List",
"<",
"?",
">",
">",
"subjectAltNames",
")",
"{",
"if",
"(",
"subjectAltNames",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"Optional",
"<",
"List",
"<",
"?",
... | Get Email Address.
@param subjectAltNames list of subject alternative name values encoded as collection of Lists with two elements in each List containing type and value.
@return String email address or null if the item passed in is not type 1 (rfc822Name)
as expected to be returned by implementation of {@code X509Cer... | [
"Get",
"Email",
"Address",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/principal/AbstractX509PrincipalResolver.java#L159-L168 |
127,148 | apereo/cas | support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/CouchDbSamlIdPMetadataDocument.java | CouchDbSamlIdPMetadataDocument.merge | public CouchDbSamlIdPMetadataDocument merge(final SamlIdPMetadataDocument doc) {
setId(doc.getId());
setMetadata(doc.getMetadata());
setSigningCertificate(doc.getSigningCertificate());
setSigningKey(doc.getSigningKey());
setEncryptionCertificate(doc.getEncryptionCertificate());
... | java | public CouchDbSamlIdPMetadataDocument merge(final SamlIdPMetadataDocument doc) {
setId(doc.getId());
setMetadata(doc.getMetadata());
setSigningCertificate(doc.getSigningCertificate());
setSigningKey(doc.getSigningKey());
setEncryptionCertificate(doc.getEncryptionCertificate());
... | [
"public",
"CouchDbSamlIdPMetadataDocument",
"merge",
"(",
"final",
"SamlIdPMetadataDocument",
"doc",
")",
"{",
"setId",
"(",
"doc",
".",
"getId",
"(",
")",
")",
";",
"setMetadata",
"(",
"doc",
".",
"getMetadata",
"(",
")",
")",
";",
"setSigningCertificate",
"(... | Merge another doc into this one.
@param doc other doc
@return this | [
"Merge",
"another",
"doc",
"into",
"this",
"one",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/CouchDbSamlIdPMetadataDocument.java#L48-L56 |
127,149 | apereo/cas | core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasMultifactorWebflowConfigurer.java | AbstractCasMultifactorWebflowConfigurer.registerMultifactorFlowDefinitionIntoLoginFlowRegistry | protected void registerMultifactorFlowDefinitionIntoLoginFlowRegistry(final FlowDefinitionRegistry sourceRegistry) {
val flowIds = sourceRegistry.getFlowDefinitionIds();
for (val flowId : flowIds) {
val definition = sourceRegistry.getFlowDefinition(flowId);
if (definition != null... | java | protected void registerMultifactorFlowDefinitionIntoLoginFlowRegistry(final FlowDefinitionRegistry sourceRegistry) {
val flowIds = sourceRegistry.getFlowDefinitionIds();
for (val flowId : flowIds) {
val definition = sourceRegistry.getFlowDefinition(flowId);
if (definition != null... | [
"protected",
"void",
"registerMultifactorFlowDefinitionIntoLoginFlowRegistry",
"(",
"final",
"FlowDefinitionRegistry",
"sourceRegistry",
")",
"{",
"val",
"flowIds",
"=",
"sourceRegistry",
".",
"getFlowDefinitionIds",
"(",
")",
";",
"for",
"(",
"val",
"flowId",
":",
"flo... | Register flow definition into login flow registry.
@param sourceRegistry the source registry | [
"Register",
"flow",
"definition",
"into",
"login",
"flow",
"registry",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasMultifactorWebflowConfigurer.java#L52-L61 |
127,150 | apereo/cas | core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasMultifactorWebflowConfigurer.java | AbstractCasMultifactorWebflowConfigurer.augmentMultifactorProviderFlowRegistry | protected void augmentMultifactorProviderFlowRegistry(final FlowDefinitionRegistry mfaProviderFlowRegistry) {
val flowIds = mfaProviderFlowRegistry.getFlowDefinitionIds();
Arrays.stream(flowIds).forEach(id -> {
val flow = (Flow) mfaProviderFlowRegistry.getFlowDefinition(id);
if (... | java | protected void augmentMultifactorProviderFlowRegistry(final FlowDefinitionRegistry mfaProviderFlowRegistry) {
val flowIds = mfaProviderFlowRegistry.getFlowDefinitionIds();
Arrays.stream(flowIds).forEach(id -> {
val flow = (Flow) mfaProviderFlowRegistry.getFlowDefinition(id);
if (... | [
"protected",
"void",
"augmentMultifactorProviderFlowRegistry",
"(",
"final",
"FlowDefinitionRegistry",
"mfaProviderFlowRegistry",
")",
"{",
"val",
"flowIds",
"=",
"mfaProviderFlowRegistry",
".",
"getFlowDefinitionIds",
"(",
")",
";",
"Arrays",
".",
"stream",
"(",
"flowIds... | Augment mfa provider flow registry.
@param mfaProviderFlowRegistry the mfa provider flow registry | [
"Augment",
"mfa",
"provider",
"flow",
"registry",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasMultifactorWebflowConfigurer.java#L78-L94 |
127,151 | apereo/cas | core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractMultifactorTrustedDeviceWebflowConfigurer.java | AbstractMultifactorTrustedDeviceWebflowConfigurer.registerMultifactorTrustedAuthentication | protected void registerMultifactorTrustedAuthentication(final FlowDefinitionRegistry flowDefinitionRegistry) {
validateFlowDefinitionConfiguration(flowDefinitionRegistry);
LOGGER.debug("Flow definitions found in the registry are [{}]", (Object[]) flowDefinitionRegistry.getFlowDefinitionIds());
... | java | protected void registerMultifactorTrustedAuthentication(final FlowDefinitionRegistry flowDefinitionRegistry) {
validateFlowDefinitionConfiguration(flowDefinitionRegistry);
LOGGER.debug("Flow definitions found in the registry are [{}]", (Object[]) flowDefinitionRegistry.getFlowDefinitionIds());
... | [
"protected",
"void",
"registerMultifactorTrustedAuthentication",
"(",
"final",
"FlowDefinitionRegistry",
"flowDefinitionRegistry",
")",
"{",
"validateFlowDefinitionConfiguration",
"(",
"flowDefinitionRegistry",
")",
";",
"LOGGER",
".",
"debug",
"(",
"\"Flow definitions found in t... | Register multifactor trusted authentication into webflow.
@param flowDefinitionRegistry the flow definition registry | [
"Register",
"multifactor",
"trusted",
"authentication",
"into",
"webflow",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractMultifactorTrustedDeviceWebflowConfigurer.java#L53-L105 |
127,152 | apereo/cas | support/cas-server-support-interrupt-core/src/main/java/org/apereo/cas/interrupt/BaseInterruptInquirer.java | BaseInterruptInquirer.shouldSkipInterruptForRegisteredService | protected boolean shouldSkipInterruptForRegisteredService(final RegisteredService registeredService) {
if (registeredService != null) {
LOGGER.debug("Checking interrupt rules for service [{}]", registeredService.getName());
if (RegisteredServiceProperties.SKIP_INTERRUPT_NOTIFICATIONS.isA... | java | protected boolean shouldSkipInterruptForRegisteredService(final RegisteredService registeredService) {
if (registeredService != null) {
LOGGER.debug("Checking interrupt rules for service [{}]", registeredService.getName());
if (RegisteredServiceProperties.SKIP_INTERRUPT_NOTIFICATIONS.isA... | [
"protected",
"boolean",
"shouldSkipInterruptForRegisteredService",
"(",
"final",
"RegisteredService",
"registeredService",
")",
"{",
"if",
"(",
"registeredService",
"!=",
"null",
")",
"{",
"LOGGER",
".",
"debug",
"(",
"\"Checking interrupt rules for service [{}]\"",
",",
... | Should skip interrupt for registered service.
@param registeredService the registered service
@return the boolean | [
"Should",
"skip",
"interrupt",
"for",
"registered",
"service",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-interrupt-core/src/main/java/org/apereo/cas/interrupt/BaseInterruptInquirer.java#L36-L48 |
127,153 | apereo/cas | core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/TicketIdSanitizationUtils.java | TicketIdSanitizationUtils.sanitize | public static String sanitize(final String msg) {
var modifiedMessage = msg;
if (StringUtils.isNotBlank(msg) && !Boolean.getBoolean("CAS_TICKET_ID_SANITIZE_SKIP")) {
val matcher = TICKET_ID_PATTERN.matcher(msg);
while (matcher.find()) {
val match = matcher.group()... | java | public static String sanitize(final String msg) {
var modifiedMessage = msg;
if (StringUtils.isNotBlank(msg) && !Boolean.getBoolean("CAS_TICKET_ID_SANITIZE_SKIP")) {
val matcher = TICKET_ID_PATTERN.matcher(msg);
while (matcher.find()) {
val match = matcher.group()... | [
"public",
"static",
"String",
"sanitize",
"(",
"final",
"String",
"msg",
")",
"{",
"var",
"modifiedMessage",
"=",
"msg",
";",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"msg",
")",
"&&",
"!",
"Boolean",
".",
"getBoolean",
"(",
"\"CAS_TICKET_ID_SANITIZ... | Remove ticket id from the message.
@param msg the message
@return the modified message with tgt id removed | [
"Remove",
"ticket",
"id",
"from",
"the",
"message",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/TicketIdSanitizationUtils.java#L46-L63 |
127,154 | apereo/cas | core/cas-server-core-monitor/src/main/java/org/apereo/cas/monitor/AbstractCacheHealthIndicator.java | AbstractCacheHealthIndicator.status | protected Status status(final CacheStatistics statistics) {
if (statistics.getEvictions() > 0 && statistics.getEvictions() > evictionThreshold) {
return new Status("WARN");
}
if (statistics.getPercentFree() > 0 && statistics.getPercentFree() < threshold) {
return Status.O... | java | protected Status status(final CacheStatistics statistics) {
if (statistics.getEvictions() > 0 && statistics.getEvictions() > evictionThreshold) {
return new Status("WARN");
}
if (statistics.getPercentFree() > 0 && statistics.getPercentFree() < threshold) {
return Status.O... | [
"protected",
"Status",
"status",
"(",
"final",
"CacheStatistics",
"statistics",
")",
"{",
"if",
"(",
"statistics",
".",
"getEvictions",
"(",
")",
">",
"0",
"&&",
"statistics",
".",
"getEvictions",
"(",
")",
">",
"evictionThreshold",
")",
"{",
"return",
"new"... | Computes the status code for a given set of cache statistics.
@param statistics Cache statistics.
@return WARN or OUT_OF_SERVICE OR UP. | [
"Computes",
"the",
"status",
"code",
"for",
"a",
"given",
"set",
"of",
"cache",
"statistics",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-monitor/src/main/java/org/apereo/cas/monitor/AbstractCacheHealthIndicator.java#L82-L90 |
127,155 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.handleException | protected Event handleException(final J2EContext webContext, final BaseClient<Credentials, CommonProfile> client, final Exception e) {
if (e instanceof RequestSloException) {
try {
webContext.getResponse().sendRedirect("logout");
} catch (final IOException ioe) {
... | java | protected Event handleException(final J2EContext webContext, final BaseClient<Credentials, CommonProfile> client, final Exception e) {
if (e instanceof RequestSloException) {
try {
webContext.getResponse().sendRedirect("logout");
} catch (final IOException ioe) {
... | [
"protected",
"Event",
"handleException",
"(",
"final",
"J2EContext",
"webContext",
",",
"final",
"BaseClient",
"<",
"Credentials",
",",
"CommonProfile",
">",
"client",
",",
"final",
"Exception",
"e",
")",
"{",
"if",
"(",
"e",
"instanceof",
"RequestSloException",
... | Handle the thrown exception.
@param webContext the web context
@param client the authentication client
@param e the thrown exception
@return the event to trigger | [
"Handle",
"the",
"thrown",
"exception",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L208-L220 |
127,156 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.getCredentialsFromDelegatedClient | protected Credentials getCredentialsFromDelegatedClient(final J2EContext webContext, final BaseClient<Credentials, CommonProfile> client) {
val credentials = client.getCredentials(webContext);
LOGGER.debug("Retrieved credentials from client as [{}]", credentials);
if (credentials == null) {
... | java | protected Credentials getCredentialsFromDelegatedClient(final J2EContext webContext, final BaseClient<Credentials, CommonProfile> client) {
val credentials = client.getCredentials(webContext);
LOGGER.debug("Retrieved credentials from client as [{}]", credentials);
if (credentials == null) {
... | [
"protected",
"Credentials",
"getCredentialsFromDelegatedClient",
"(",
"final",
"J2EContext",
"webContext",
",",
"final",
"BaseClient",
"<",
"Credentials",
",",
"CommonProfile",
">",
"client",
")",
"{",
"val",
"credentials",
"=",
"client",
".",
"getCredentials",
"(",
... | Gets credentials from delegated client.
@param webContext the web context
@param client the client
@return the credentials from delegated client | [
"Gets",
"credentials",
"from",
"delegated",
"client",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L269-L276 |
127,157 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.findDelegatedClientByName | protected BaseClient<Credentials, CommonProfile> findDelegatedClientByName(final HttpServletRequest request, final String clientName, final Service service) {
val client = (BaseClient<Credentials, CommonProfile>) this.clients.findClient(clientName);
LOGGER.debug("Delegated authentication client is [{}] ... | java | protected BaseClient<Credentials, CommonProfile> findDelegatedClientByName(final HttpServletRequest request, final String clientName, final Service service) {
val client = (BaseClient<Credentials, CommonProfile>) this.clients.findClient(clientName);
LOGGER.debug("Delegated authentication client is [{}] ... | [
"protected",
"BaseClient",
"<",
"Credentials",
",",
"CommonProfile",
">",
"findDelegatedClientByName",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"String",
"clientName",
",",
"final",
"Service",
"service",
")",
"{",
"val",
"client",
"=",
"(",
"Ba... | Find delegated client by name base client.
@param request the request
@param clientName the client name
@param service the service
@return the base client | [
"Find",
"delegated",
"client",
"by",
"name",
"base",
"client",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L286-L297 |
127,158 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.prepareForLoginPage | protected void prepareForLoginPage(final RequestContext context) {
val currentService = WebUtils.getService(context);
val service = authenticationRequestServiceSelectionStrategies.resolveService(currentService, WebApplicationService.class);
val request = WebUtils.getHttpServletRequestFromExtern... | java | protected void prepareForLoginPage(final RequestContext context) {
val currentService = WebUtils.getService(context);
val service = authenticationRequestServiceSelectionStrategies.resolveService(currentService, WebApplicationService.class);
val request = WebUtils.getHttpServletRequestFromExtern... | [
"protected",
"void",
"prepareForLoginPage",
"(",
"final",
"RequestContext",
"context",
")",
"{",
"val",
"currentService",
"=",
"WebUtils",
".",
"getService",
"(",
"context",
")",
";",
"val",
"service",
"=",
"authenticationRequestServiceSelectionStrategies",
".",
"reso... | Prepare the data for the login page.
@param context The current webflow context | [
"Prepare",
"the",
"data",
"for",
"the",
"login",
"page",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L304-L338 |
127,159 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.buildProviderConfiguration | protected Optional<ProviderLoginPageConfiguration> buildProviderConfiguration(final IndirectClient client, final WebContext webContext,
final WebApplicationService service) {
val name = client.getName();
val matcher = PAC4... | java | protected Optional<ProviderLoginPageConfiguration> buildProviderConfiguration(final IndirectClient client, final WebContext webContext,
final WebApplicationService service) {
val name = client.getName();
val matcher = PAC4... | [
"protected",
"Optional",
"<",
"ProviderLoginPageConfiguration",
">",
"buildProviderConfiguration",
"(",
"final",
"IndirectClient",
"client",
",",
"final",
"WebContext",
"webContext",
",",
"final",
"WebApplicationService",
"service",
")",
"{",
"val",
"name",
"=",
"client... | Build provider configuration optional.
@param client the client
@param webContext the web context
@param service the service
@return the optional | [
"Build",
"provider",
"configuration",
"optional",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L348-L381 |
127,160 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.getCssClass | protected String getCssClass(final String name) {
var computedCssClass = "fa fa-lock";
if (StringUtils.isNotBlank(name)) {
computedCssClass = computedCssClass.concat(' ' + PAC4J_CLIENT_CSS_CLASS_SUBSTITUTION_PATTERN.matcher(name).replaceAll("-"));
}
LOGGER.debug("CSS class fo... | java | protected String getCssClass(final String name) {
var computedCssClass = "fa fa-lock";
if (StringUtils.isNotBlank(name)) {
computedCssClass = computedCssClass.concat(' ' + PAC4J_CLIENT_CSS_CLASS_SUBSTITUTION_PATTERN.matcher(name).replaceAll("-"));
}
LOGGER.debug("CSS class fo... | [
"protected",
"String",
"getCssClass",
"(",
"final",
"String",
"name",
")",
"{",
"var",
"computedCssClass",
"=",
"\"fa fa-lock\"",
";",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"name",
")",
")",
"{",
"computedCssClass",
"=",
"computedCssClass",
".",
"c... | Get a valid CSS class for the given provider name.
@param name Name of the provider
@return the css class | [
"Get",
"a",
"valid",
"CSS",
"class",
"for",
"the",
"given",
"provider",
"name",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L389-L396 |
127,161 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.isDelegatedClientAuthorizedForService | protected boolean isDelegatedClientAuthorizedForService(final Client client, final Service service) {
if (service == null || StringUtils.isBlank(service.getId())) {
LOGGER.debug("Can not evaluate delegated authentication policy since no service was provided in the request while processing client [{}... | java | protected boolean isDelegatedClientAuthorizedForService(final Client client, final Service service) {
if (service == null || StringUtils.isBlank(service.getId())) {
LOGGER.debug("Can not evaluate delegated authentication policy since no service was provided in the request while processing client [{}... | [
"protected",
"boolean",
"isDelegatedClientAuthorizedForService",
"(",
"final",
"Client",
"client",
",",
"final",
"Service",
"service",
")",
"{",
"if",
"(",
"service",
"==",
"null",
"||",
"StringUtils",
".",
"isBlank",
"(",
"service",
".",
"getId",
"(",
")",
")... | Is delegated client authorized for service boolean.
@param client the client
@param service the service
@return the boolean | [
"Is",
"delegated",
"client",
"authorized",
"for",
"service",
"boolean",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L423-L446 |
127,162 | apereo/cas | support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java | DelegatedClientAuthenticationAction.hasDelegationRequestFailed | public static Optional<ModelAndView> hasDelegationRequestFailed(final HttpServletRequest request, final int status) {
val params = request.getParameterMap();
if (Stream.of("error", "error_code", "error_description", "error_message").anyMatch(params::containsKey)) {
val model = new HashMap<St... | java | public static Optional<ModelAndView> hasDelegationRequestFailed(final HttpServletRequest request, final int status) {
val params = request.getParameterMap();
if (Stream.of("error", "error_code", "error_description", "error_message").anyMatch(params::containsKey)) {
val model = new HashMap<St... | [
"public",
"static",
"Optional",
"<",
"ModelAndView",
">",
"hasDelegationRequestFailed",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"int",
"status",
")",
"{",
"val",
"params",
"=",
"request",
".",
"getParameterMap",
"(",
")",
";",
"if",
"(",
"... | Determine if request has errors.
@param request the request
@param status the status
@return the optional model and view, if request is an error. | [
"Determine",
"if",
"request",
"has",
"errors",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/flow/DelegatedClientAuthenticationAction.java#L480-L502 |
127,163 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java | SamlIdPObjectEncrypter.encode | @SneakyThrows
public EncryptedID encode(final NameID samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor) {
val encrypter = buildEncrypterForSamlObject(samlObject, service, adaptor);
... | java | @SneakyThrows
public EncryptedID encode(final NameID samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor) {
val encrypter = buildEncrypterForSamlObject(samlObject, service, adaptor);
... | [
"@",
"SneakyThrows",
"public",
"EncryptedID",
"encode",
"(",
"final",
"NameID",
"samlObject",
",",
"final",
"SamlRegisteredService",
"service",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
")",
"{",
"val",
"encrypter",
"=",
"buildEncrypte... | Encode encrypted id.
@param samlObject the saml object
@param service the service
@param adaptor the adaptor
@return the encrypted id | [
"Encode",
"encrypted",
"id",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java#L79-L85 |
127,164 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java | SamlIdPObjectEncrypter.encode | @SneakyThrows
public EncryptedAttribute encode(final Attribute samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor) {
val encrypter = buildEncrypterForSamlObject(samlObject... | java | @SneakyThrows
public EncryptedAttribute encode(final Attribute samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor) {
val encrypter = buildEncrypterForSamlObject(samlObject... | [
"@",
"SneakyThrows",
"public",
"EncryptedAttribute",
"encode",
"(",
"final",
"Attribute",
"samlObject",
",",
"final",
"SamlRegisteredService",
"service",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
")",
"{",
"val",
"encrypter",
"=",
"bui... | Encode encrypted attribute.
@param samlObject the saml object
@param service the service
@param adaptor the adaptor
@return the encrypted attribute | [
"Encode",
"encrypted",
"attribute",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java#L95-L101 |
127,165 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java | SamlIdPObjectEncrypter.buildEncrypterForSamlObject | @SneakyThrows
protected Encrypter buildEncrypterForSamlObject(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor) {
val classNam... | java | @SneakyThrows
protected Encrypter buildEncrypterForSamlObject(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor) {
val classNam... | [
"@",
"SneakyThrows",
"protected",
"Encrypter",
"buildEncrypterForSamlObject",
"(",
"final",
"Object",
"samlObject",
",",
"final",
"SamlRegisteredService",
"service",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
")",
"{",
"val",
"className",
... | Build encrypter for saml object encrypter.
@param samlObject the saml object
@param service the service
@param adaptor the adaptor
@return the encrypter | [
"Build",
"encrypter",
"for",
"saml",
"object",
"encrypter",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java#L111-L131 |
127,166 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java | SamlIdPObjectEncrypter.getEncrypter | protected Encrypter getEncrypter(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
final KeyEncryptionParameters keyEncParams,
... | java | protected Encrypter getEncrypter(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
final KeyEncryptionParameters keyEncParams,
... | [
"protected",
"Encrypter",
"getEncrypter",
"(",
"final",
"Object",
"samlObject",
",",
"final",
"SamlRegisteredService",
"service",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
",",
"final",
"KeyEncryptionParameters",
"keyEncParams",
",",
"fina... | Gets encrypter.
@param samlObject the saml object
@param service the service
@param adaptor the adaptor
@param keyEncParams the key enc params
@param dataEncParams the data enc params
@return the encrypter | [
"Gets",
"encrypter",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java#L143-L151 |
127,167 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java | SamlIdPObjectEncrypter.getDataEncryptionParameters | protected DataEncryptionParameters getDataEncryptionParameters(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adap... | java | protected DataEncryptionParameters getDataEncryptionParameters(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adap... | [
"protected",
"DataEncryptionParameters",
"getDataEncryptionParameters",
"(",
"final",
"Object",
"samlObject",
",",
"final",
"SamlRegisteredService",
"service",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
")",
"{",
"val",
"dataEncParams",
"=",
... | Gets data encryption parameters.
@param samlObject the saml object
@param service the service
@param adaptor the adaptor
@return the data encryption parameters | [
"Gets",
"data",
"encryption",
"parameters",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java#L161-L167 |
127,168 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java | SamlIdPObjectEncrypter.getKeyEncryptionParameters | protected KeyEncryptionParameters getKeyEncryptionParameters(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
... | java | protected KeyEncryptionParameters getKeyEncryptionParameters(final Object samlObject,
final SamlRegisteredService service,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
... | [
"protected",
"KeyEncryptionParameters",
"getKeyEncryptionParameters",
"(",
"final",
"Object",
"samlObject",
",",
"final",
"SamlRegisteredService",
"service",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
",",
"final",
"Credential",
"credential",
... | Gets key encryption parameters.
@param samlObject the saml object
@param service the service
@param adaptor the adaptor
@param credential the credential
@return the key encryption parameters | [
"Gets",
"key",
"encryption",
"parameters",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java#L178-L187 |
127,169 | apereo/cas | support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java | SamlIdPObjectEncrypter.getKeyEncryptionCredential | protected Credential getKeyEncryptionCredential(final String peerEntityId,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
final SamlRegisteredService service) throws Exception {
val config ... | java | protected Credential getKeyEncryptionCredential(final String peerEntityId,
final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
final SamlRegisteredService service) throws Exception {
val config ... | [
"protected",
"Credential",
"getKeyEncryptionCredential",
"(",
"final",
"String",
"peerEntityId",
",",
"final",
"SamlRegisteredServiceServiceProviderMetadataFacade",
"adaptor",
",",
"final",
"SamlRegisteredService",
"service",
")",
"throws",
"Exception",
"{",
"val",
"config",
... | Gets key encryption credential.
@param peerEntityId the peer entity id
@param adaptor the adaptor
@param service the service
@return the key encryption credential
@throws Exception the exception | [
"Gets",
"key",
"encryption",
"credential",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java#L198-L254 |
127,170 | apereo/cas | support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/web/OpenIdProviderController.java | OpenIdProviderController.handleRequestInternal | @GetMapping("/openid/*")
protected ModelAndView handleRequestInternal(final HttpServletRequest request,
final HttpServletResponse response) {
return new ModelAndView("openIdProviderView",
CollectionUtils.wrap("openid_server", casProperties.getServ... | java | @GetMapping("/openid/*")
protected ModelAndView handleRequestInternal(final HttpServletRequest request,
final HttpServletResponse response) {
return new ModelAndView("openIdProviderView",
CollectionUtils.wrap("openid_server", casProperties.getServ... | [
"@",
"GetMapping",
"(",
"\"/openid/*\"",
")",
"protected",
"ModelAndView",
"handleRequestInternal",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"HttpServletResponse",
"response",
")",
"{",
"return",
"new",
"ModelAndView",
"(",
"\"openIdProviderView\"",
... | Handle request internal model and view.
@param request the request
@param response the response
@return the model and view | [
"Handle",
"request",
"internal",
"model",
"and",
"view",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/web/OpenIdProviderController.java#L34-L39 |
127,171 | apereo/cas | core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/TicketGrantingTicketImpl.java | TicketGrantingTicketImpl.normalizePath | private static String normalizePath(final Service service) {
var path = service.getId();
path = StringUtils.substringBefore(path, "?");
path = StringUtils.substringBefore(path, ";");
path = StringUtils.substringBefore(path, "#");
return path;
} | java | private static String normalizePath(final Service service) {
var path = service.getId();
path = StringUtils.substringBefore(path, "?");
path = StringUtils.substringBefore(path, ";");
path = StringUtils.substringBefore(path, "#");
return path;
} | [
"private",
"static",
"String",
"normalizePath",
"(",
"final",
"Service",
"service",
")",
"{",
"var",
"path",
"=",
"service",
".",
"getId",
"(",
")",
";",
"path",
"=",
"StringUtils",
".",
"substringBefore",
"(",
"path",
",",
"\"?\"",
")",
";",
"path",
"="... | Normalize the path of a service by removing the query string and everything after a semi-colon.
@param service the service to normalize
@return the normalized path | [
"Normalize",
"the",
"path",
"of",
"a",
"service",
"by",
"removing",
"the",
"query",
"string",
"and",
"everything",
"after",
"a",
"semi",
"-",
"colon",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/TicketGrantingTicketImpl.java#L136-L142 |
127,172 | apereo/cas | core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/TicketGrantingTicketImpl.java | TicketGrantingTicketImpl.trackServiceSession | protected void trackServiceSession(final String id, final Service service, final boolean onlyTrackMostRecentSession) {
update();
service.setPrincipal(getRoot().getAuthentication().getPrincipal().getId());
if (onlyTrackMostRecentSession) {
val path = normalizePath(service);
... | java | protected void trackServiceSession(final String id, final Service service, final boolean onlyTrackMostRecentSession) {
update();
service.setPrincipal(getRoot().getAuthentication().getPrincipal().getId());
if (onlyTrackMostRecentSession) {
val path = normalizePath(service);
... | [
"protected",
"void",
"trackServiceSession",
"(",
"final",
"String",
"id",
",",
"final",
"Service",
"service",
",",
"final",
"boolean",
"onlyTrackMostRecentSession",
")",
"{",
"update",
"(",
")",
";",
"service",
".",
"setPrincipal",
"(",
"getRoot",
"(",
")",
".... | Update service and track session.
@param id the id
@param service the service
@param onlyTrackMostRecentSession the only track most recent session | [
"Update",
"service",
"and",
"track",
"session",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/TicketGrantingTicketImpl.java#L166-L175 |
127,173 | apereo/cas | api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/geo/GeoLocationResponse.java | GeoLocationResponse.addAddress | public GeoLocationResponse addAddress(final String address) {
if (StringUtils.isNotBlank(address)) {
this.addresses.add(address);
}
return this;
} | java | public GeoLocationResponse addAddress(final String address) {
if (StringUtils.isNotBlank(address)) {
this.addresses.add(address);
}
return this;
} | [
"public",
"GeoLocationResponse",
"addAddress",
"(",
"final",
"String",
"address",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isNotBlank",
"(",
"address",
")",
")",
"{",
"this",
".",
"addresses",
".",
"add",
"(",
"address",
")",
";",
"}",
"return",
"this",
... | Add address.
@param address the address
@return the geo location response | [
"Add",
"address",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/geo/GeoLocationResponse.java#L35-L40 |
127,174 | apereo/cas | core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/view/ThemeFileTemplateResolver.java | ThemeFileTemplateResolver.getCurrentTheme | protected String getCurrentTheme() {
val request = WebUtils.getHttpServletRequestFromExternalWebflowContext();
if (request != null) {
val session = request.getSession(false);
val paramName = casProperties.getTheme().getParamName();
if (session != null) {
... | java | protected String getCurrentTheme() {
val request = WebUtils.getHttpServletRequestFromExternalWebflowContext();
if (request != null) {
val session = request.getSession(false);
val paramName = casProperties.getTheme().getParamName();
if (session != null) {
... | [
"protected",
"String",
"getCurrentTheme",
"(",
")",
"{",
"val",
"request",
"=",
"WebUtils",
".",
"getHttpServletRequestFromExternalWebflowContext",
"(",
")",
";",
"if",
"(",
"request",
"!=",
"null",
")",
"{",
"val",
"session",
"=",
"request",
".",
"getSession",
... | Gets current theme.
@return the current theme | [
"Gets",
"current",
"theme",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/view/ThemeFileTemplateResolver.java#L50-L61 |
127,175 | apereo/cas | support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java | DynamoDbTicketRegistryFacilitator.deleteAll | public int deleteAll() {
val count = new AtomicInteger();
val metadata = this.ticketCatalog.findAll();
metadata.forEach(r -> {
val scan = new ScanRequest(r.getProperties().getStorageName());
LOGGER.debug("Submitting scan request [{}] to table [{}]", scan, r.getProperties(... | java | public int deleteAll() {
val count = new AtomicInteger();
val metadata = this.ticketCatalog.findAll();
metadata.forEach(r -> {
val scan = new ScanRequest(r.getProperties().getStorageName());
LOGGER.debug("Submitting scan request [{}] to table [{}]", scan, r.getProperties(... | [
"public",
"int",
"deleteAll",
"(",
")",
"{",
"val",
"count",
"=",
"new",
"AtomicInteger",
"(",
")",
";",
"val",
"metadata",
"=",
"this",
".",
"ticketCatalog",
".",
"findAll",
"(",
")",
";",
"metadata",
".",
"forEach",
"(",
"r",
"->",
"{",
"val",
"sca... | Delete all.
@return the int | [
"Delete",
"all",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java#L89-L99 |
127,176 | apereo/cas | support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java | DynamoDbTicketRegistryFacilitator.get | public Ticket get(final String ticketId, final String encodedTicketId) {
val metadata = this.ticketCatalog.find(ticketId);
if (metadata != null) {
val keys = new HashMap<String, AttributeValue>();
keys.put(ColumnNames.ID.getColumnName(), new AttributeValue(encodedTicketId));
... | java | public Ticket get(final String ticketId, final String encodedTicketId) {
val metadata = this.ticketCatalog.find(ticketId);
if (metadata != null) {
val keys = new HashMap<String, AttributeValue>();
keys.put(ColumnNames.ID.getColumnName(), new AttributeValue(encodedTicketId));
... | [
"public",
"Ticket",
"get",
"(",
"final",
"String",
"ticketId",
",",
"final",
"String",
"encodedTicketId",
")",
"{",
"val",
"metadata",
"=",
"this",
".",
"ticketCatalog",
".",
"find",
"(",
"ticketId",
")",
";",
"if",
"(",
"metadata",
"!=",
"null",
")",
"{... | Get ticket.
@param ticketId the ticket id
@param encodedTicketId the encoded ticket id
@return the ticket | [
"Get",
"ticket",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java#L126-L147 |
127,177 | apereo/cas | support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java | DynamoDbTicketRegistryFacilitator.put | public void put(final Ticket ticket, final Ticket encodedTicket) {
val metadata = this.ticketCatalog.find(ticket);
val values = buildTableAttributeValuesMapFromTicket(ticket, encodedTicket);
LOGGER.debug("Adding ticket id [{}] with attribute values [{}]", encodedTicket.getId(), values);
... | java | public void put(final Ticket ticket, final Ticket encodedTicket) {
val metadata = this.ticketCatalog.find(ticket);
val values = buildTableAttributeValuesMapFromTicket(ticket, encodedTicket);
LOGGER.debug("Adding ticket id [{}] with attribute values [{}]", encodedTicket.getId(), values);
... | [
"public",
"void",
"put",
"(",
"final",
"Ticket",
"ticket",
",",
"final",
"Ticket",
"encodedTicket",
")",
"{",
"val",
"metadata",
"=",
"this",
".",
"ticketCatalog",
".",
"find",
"(",
"ticket",
")",
";",
"val",
"values",
"=",
"buildTableAttributeValuesMapFromTic... | Put ticket.
@param ticket the ticket
@param encodedTicket the encoded ticket | [
"Put",
"ticket",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java#L155-L164 |
127,178 | apereo/cas | support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java | DynamoDbTicketRegistryFacilitator.createTicketTables | public void createTicketTables(final boolean deleteTables) {
val metadata = this.ticketCatalog.findAll();
metadata.forEach(Unchecked.consumer(r -> {
val request = new CreateTableRequest()
.withAttributeDefinitions(new AttributeDefinition(ColumnNames.ID.getColumnName(), Scalar... | java | public void createTicketTables(final boolean deleteTables) {
val metadata = this.ticketCatalog.findAll();
metadata.forEach(Unchecked.consumer(r -> {
val request = new CreateTableRequest()
.withAttributeDefinitions(new AttributeDefinition(ColumnNames.ID.getColumnName(), Scalar... | [
"public",
"void",
"createTicketTables",
"(",
"final",
"boolean",
"deleteTables",
")",
"{",
"val",
"metadata",
"=",
"this",
".",
"ticketCatalog",
".",
"findAll",
"(",
")",
";",
"metadata",
".",
"forEach",
"(",
"Unchecked",
".",
"consumer",
"(",
"r",
"->",
"... | Create ticket tables.
@param deleteTables the delete tables | [
"Create",
"ticket",
"tables",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java#L171-L193 |
127,179 | apereo/cas | support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java | DynamoDbTicketRegistryFacilitator.buildTableAttributeValuesMapFromTicket | public Map<String, AttributeValue> buildTableAttributeValuesMapFromTicket(final Ticket ticket, final Ticket encTicket) {
val values = new HashMap<String, AttributeValue>();
values.put(ColumnNames.ID.getColumnName(), new AttributeValue(encTicket.getId()));
values.put(ColumnNames.PREFIX.getColumnN... | java | public Map<String, AttributeValue> buildTableAttributeValuesMapFromTicket(final Ticket ticket, final Ticket encTicket) {
val values = new HashMap<String, AttributeValue>();
values.put(ColumnNames.ID.getColumnName(), new AttributeValue(encTicket.getId()));
values.put(ColumnNames.PREFIX.getColumnN... | [
"public",
"Map",
"<",
"String",
",",
"AttributeValue",
">",
"buildTableAttributeValuesMapFromTicket",
"(",
"final",
"Ticket",
"ticket",
",",
"final",
"Ticket",
"encTicket",
")",
"{",
"val",
"values",
"=",
"new",
"HashMap",
"<",
"String",
",",
"AttributeValue",
"... | Build table attribute values from ticket map.
@param ticket the ticket
@param encTicket the encoded ticket
@return the map | [
"Build",
"table",
"attribute",
"values",
"from",
"ticket",
"map",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-dynamodb-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/DynamoDbTicketRegistryFacilitator.java#L202-L213 |
127,180 | apereo/cas | api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationTransaction.java | DefaultAuthenticationTransaction.of | public static DefaultAuthenticationTransaction of(final Service service, final Credential... credentials) {
val creds = sanitizeCredentials(credentials);
return new DefaultAuthenticationTransaction(service, creds);
} | java | public static DefaultAuthenticationTransaction of(final Service service, final Credential... credentials) {
val creds = sanitizeCredentials(credentials);
return new DefaultAuthenticationTransaction(service, creds);
} | [
"public",
"static",
"DefaultAuthenticationTransaction",
"of",
"(",
"final",
"Service",
"service",
",",
"final",
"Credential",
"...",
"credentials",
")",
"{",
"val",
"creds",
"=",
"sanitizeCredentials",
"(",
"credentials",
")",
";",
"return",
"new",
"DefaultAuthentic... | Wrap credentials into an authentication transaction, as a factory method,
and return the final result.
@param service the service
@param credentials the credentials
@return the authentication transaction | [
"Wrap",
"credentials",
"into",
"an",
"authentication",
"transaction",
"as",
"a",
"factory",
"method",
"and",
"return",
"the",
"final",
"result",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationTransaction.java#L46-L49 |
127,181 | apereo/cas | api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationTransaction.java | DefaultAuthenticationTransaction.sanitizeCredentials | private static Set<Credential> sanitizeCredentials(final Credential[] credentials) {
if (credentials != null && credentials.length > 0) {
return Arrays.stream(credentials)
.filter(Objects::nonNull)
.collect(Collectors.toCollection(LinkedHashSet::new));
}
... | java | private static Set<Credential> sanitizeCredentials(final Credential[] credentials) {
if (credentials != null && credentials.length > 0) {
return Arrays.stream(credentials)
.filter(Objects::nonNull)
.collect(Collectors.toCollection(LinkedHashSet::new));
}
... | [
"private",
"static",
"Set",
"<",
"Credential",
">",
"sanitizeCredentials",
"(",
"final",
"Credential",
"[",
"]",
"credentials",
")",
"{",
"if",
"(",
"credentials",
"!=",
"null",
"&&",
"credentials",
".",
"length",
">",
"0",
")",
"{",
"return",
"Arrays",
".... | Sanitize credentials set. It's important to keep the order of
the credentials in the final set as they were presented.
@param credentials the credentials
@return the set | [
"Sanitize",
"credentials",
"set",
".",
"It",
"s",
"important",
"to",
"keep",
"the",
"order",
"of",
"the",
"credentials",
"in",
"the",
"final",
"set",
"as",
"they",
"were",
"presented",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationTransaction.java#L69-L76 |
127,182 | apereo/cas | api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/metadata/ConfigurationMetadataUnitParser.java | ConfigurationMetadataUnitParser.parseCompilationUnit | @SneakyThrows
public void parseCompilationUnit(final Set<ConfigurationMetadataProperty> collectedProps,
final Set<ConfigurationMetadataProperty> collectedGroups,
final ConfigurationMetadataProperty p,
fina... | java | @SneakyThrows
public void parseCompilationUnit(final Set<ConfigurationMetadataProperty> collectedProps,
final Set<ConfigurationMetadataProperty> collectedGroups,
final ConfigurationMetadataProperty p,
fina... | [
"@",
"SneakyThrows",
"public",
"void",
"parseCompilationUnit",
"(",
"final",
"Set",
"<",
"ConfigurationMetadataProperty",
">",
"collectedProps",
",",
"final",
"Set",
"<",
"ConfigurationMetadataProperty",
">",
"collectedGroups",
",",
"final",
"ConfigurationMetadataProperty",... | Parse compilation unit.
@param collectedProps the collected props
@param collectedGroups the collected groups
@param p the p
@param typePath the type path
@param typeName the type name
@param indexNameWithBrackets the index name with brackets | [
"Parse",
"compilation",
"unit",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/metadata/ConfigurationMetadataUnitParser.java#L36-L60 |
127,183 | apereo/cas | support/cas-server-support-themes/src/main/java/org/apereo/cas/services/web/RegisteredServiceThemeResolver.java | RegisteredServiceThemeResolver.determineThemeNameToChoose | protected String determineThemeNameToChoose(final HttpServletRequest request,
final Service service,
final RegisteredService rService) {
HttpResponse response = null;
try {
LOGGER.debug("Service [... | java | protected String determineThemeNameToChoose(final HttpServletRequest request,
final Service service,
final RegisteredService rService) {
HttpResponse response = null;
try {
LOGGER.debug("Service [... | [
"protected",
"String",
"determineThemeNameToChoose",
"(",
"final",
"HttpServletRequest",
"request",
",",
"final",
"Service",
"service",
",",
"final",
"RegisteredService",
"rService",
")",
"{",
"HttpResponse",
"response",
"=",
"null",
";",
"try",
"{",
"LOGGER",
".",
... | Determine theme name to choose.
@param request the request
@param service the service
@param rService the r service
@return the string | [
"Determine",
"theme",
"name",
"to",
"choose",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-themes/src/main/java/org/apereo/cas/services/web/RegisteredServiceThemeResolver.java#L130-L167 |
127,184 | apereo/cas | core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/trigger/RestEndpointMultifactorAuthenticationTrigger.java | RestEndpointMultifactorAuthenticationTrigger.callRestEndpointForMultifactor | protected String callRestEndpointForMultifactor(final Principal principal, final Service resolvedService) {
val restTemplate = new RestTemplate();
val restEndpoint = casProperties.getAuthn().getMfa().getRestEndpoint();
val entity = new RestEndpointEntity(principal.getId(), resolvedService.getId(... | java | protected String callRestEndpointForMultifactor(final Principal principal, final Service resolvedService) {
val restTemplate = new RestTemplate();
val restEndpoint = casProperties.getAuthn().getMfa().getRestEndpoint();
val entity = new RestEndpointEntity(principal.getId(), resolvedService.getId(... | [
"protected",
"String",
"callRestEndpointForMultifactor",
"(",
"final",
"Principal",
"principal",
",",
"final",
"Service",
"resolvedService",
")",
"{",
"val",
"restTemplate",
"=",
"new",
"RestTemplate",
"(",
")",
";",
"val",
"restEndpoint",
"=",
"casProperties",
".",... | Call rest endpoint for multifactor.
@param principal the principal
@param resolvedService the resolved service
@return return the rest response, typically the mfa id. | [
"Call",
"rest",
"endpoint",
"for",
"multifactor",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/trigger/RestEndpointMultifactorAuthenticationTrigger.java#L84-L93 |
127,185 | apereo/cas | support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/accesstoken/OAuthAccessTokenExpirationPolicy.java | OAuthAccessTokenExpirationPolicy.isAccessTokenExpired | @JsonIgnore
protected boolean isAccessTokenExpired(final TicketState ticketState) {
val currentSystemTime = ZonedDateTime.now(ZoneOffset.UTC);
val creationTime = ticketState.getCreationTime();
var expirationTime = creationTime.plus(this.maxTimeToLiveInSeconds, ChronoUnit.SECONDS);
i... | java | @JsonIgnore
protected boolean isAccessTokenExpired(final TicketState ticketState) {
val currentSystemTime = ZonedDateTime.now(ZoneOffset.UTC);
val creationTime = ticketState.getCreationTime();
var expirationTime = creationTime.plus(this.maxTimeToLiveInSeconds, ChronoUnit.SECONDS);
i... | [
"@",
"JsonIgnore",
"protected",
"boolean",
"isAccessTokenExpired",
"(",
"final",
"TicketState",
"ticketState",
")",
"{",
"val",
"currentSystemTime",
"=",
"ZonedDateTime",
".",
"now",
"(",
"ZoneOffset",
".",
"UTC",
")",
";",
"val",
"creationTime",
"=",
"ticketState... | Is access token expired ?.
@param ticketState the ticket state
@return the boolean | [
"Is",
"access",
"token",
"expired",
"?",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/accesstoken/OAuthAccessTokenExpirationPolicy.java#L77-L94 |
127,186 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java | OidcAuthorizationRequestSupport.getOidcPromptFromAuthorizationRequest | @SneakyThrows
public static Set<String> getOidcPromptFromAuthorizationRequest(final @NonNull String url) {
return new URIBuilder(url).getQueryParams().stream()
.filter(p -> OidcConstants.PROMPT.equals(p.getName()))
.map(param -> param.getValue().split(" "))
.flatMap(Array... | java | @SneakyThrows
public static Set<String> getOidcPromptFromAuthorizationRequest(final @NonNull String url) {
return new URIBuilder(url).getQueryParams().stream()
.filter(p -> OidcConstants.PROMPT.equals(p.getName()))
.map(param -> param.getValue().split(" "))
.flatMap(Array... | [
"@",
"SneakyThrows",
"public",
"static",
"Set",
"<",
"String",
">",
"getOidcPromptFromAuthorizationRequest",
"(",
"final",
"@",
"NonNull",
"String",
"url",
")",
"{",
"return",
"new",
"URIBuilder",
"(",
"url",
")",
".",
"getQueryParams",
"(",
")",
".",
"stream"... | Gets oidc prompt from authorization request.
@param url the url
@return the oidc prompt from authorization request | [
"Gets",
"oidc",
"prompt",
"from",
"authorization",
"request",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java#L48-L55 |
127,187 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java | OidcAuthorizationRequestSupport.getOidcMaxAgeFromAuthorizationRequest | @SneakyThrows
public static Optional<Long> getOidcMaxAgeFromAuthorizationRequest(final WebContext context) {
val builderContext = new URIBuilder(context.getFullRequestURL());
val parameter = builderContext.getQueryParams()
.stream().filter(p -> OidcConstants.MAX_AGE.equals(p.getName()))
... | java | @SneakyThrows
public static Optional<Long> getOidcMaxAgeFromAuthorizationRequest(final WebContext context) {
val builderContext = new URIBuilder(context.getFullRequestURL());
val parameter = builderContext.getQueryParams()
.stream().filter(p -> OidcConstants.MAX_AGE.equals(p.getName()))
... | [
"@",
"SneakyThrows",
"public",
"static",
"Optional",
"<",
"Long",
">",
"getOidcMaxAgeFromAuthorizationRequest",
"(",
"final",
"WebContext",
"context",
")",
"{",
"val",
"builderContext",
"=",
"new",
"URIBuilder",
"(",
"context",
".",
"getFullRequestURL",
"(",
")",
... | Gets oidc max age from authorization request.
@param context the context
@return the oidc max age from authorization request | [
"Gets",
"oidc",
"max",
"age",
"from",
"authorization",
"request",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java#L73-L85 |
127,188 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java | OidcAuthorizationRequestSupport.isAuthenticationProfileAvailable | public static Optional<CommonProfile> isAuthenticationProfileAvailable(final J2EContext context) {
val manager = new ProfileManager<>(context, context.getSessionStore());
return manager.get(true);
} | java | public static Optional<CommonProfile> isAuthenticationProfileAvailable(final J2EContext context) {
val manager = new ProfileManager<>(context, context.getSessionStore());
return manager.get(true);
} | [
"public",
"static",
"Optional",
"<",
"CommonProfile",
">",
"isAuthenticationProfileAvailable",
"(",
"final",
"J2EContext",
"context",
")",
"{",
"val",
"manager",
"=",
"new",
"ProfileManager",
"<>",
"(",
"context",
",",
"context",
".",
"getSessionStore",
"(",
")",
... | Is authentication profile available?.
@param context the context
@return the optional user profile | [
"Is",
"authentication",
"profile",
"available?",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java#L93-L96 |
127,189 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java | OidcAuthorizationRequestSupport.isCasAuthenticationAvailable | public Optional<Authentication> isCasAuthenticationAvailable(final WebContext context) {
val j2EContext = (J2EContext) context;
if (j2EContext != null) {
val tgtId = ticketGrantingTicketCookieGenerator.retrieveCookieValue(j2EContext.getRequest());
if (StringUtils.isNotBlank(tgtI... | java | public Optional<Authentication> isCasAuthenticationAvailable(final WebContext context) {
val j2EContext = (J2EContext) context;
if (j2EContext != null) {
val tgtId = ticketGrantingTicketCookieGenerator.retrieveCookieValue(j2EContext.getRequest());
if (StringUtils.isNotBlank(tgtI... | [
"public",
"Optional",
"<",
"Authentication",
">",
"isCasAuthenticationAvailable",
"(",
"final",
"WebContext",
"context",
")",
"{",
"val",
"j2EContext",
"=",
"(",
"J2EContext",
")",
"context",
";",
"if",
"(",
"j2EContext",
"!=",
"null",
")",
"{",
"val",
"tgtId"... | Is cas authentication available?
@param context the context
@return the optional authn | [
"Is",
"cas",
"authentication",
"available?"
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java#L104-L117 |
127,190 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java | OidcAuthorizationRequestSupport.isCasAuthenticationOldForMaxAgeAuthorizationRequest | public static boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context,
final ZonedDateTime authenticationDate) {
val maxAge = getOidcMaxAgeFromAuthorizationRequest(context);
if (maxAge.isPresent() ... | java | public static boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context,
final ZonedDateTime authenticationDate) {
val maxAge = getOidcMaxAgeFromAuthorizationRequest(context);
if (maxAge.isPresent() ... | [
"public",
"static",
"boolean",
"isCasAuthenticationOldForMaxAgeAuthorizationRequest",
"(",
"final",
"WebContext",
"context",
",",
"final",
"ZonedDateTime",
"authenticationDate",
")",
"{",
"val",
"maxAge",
"=",
"getOidcMaxAgeFromAuthorizationRequest",
"(",
"context",
")",
";... | Is cas authentication old for max age authorization request boolean.
@param context the context
@param authenticationDate the authentication date
@return true/false | [
"Is",
"cas",
"authentication",
"old",
"for",
"max",
"age",
"authorization",
"request",
"boolean",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java#L126-L140 |
127,191 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java | OidcAuthorizationRequestSupport.isCasAuthenticationOldForMaxAgeAuthorizationRequest | public boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context) {
return isCasAuthenticationAvailable(context)
.filter(a -> isCasAuthenticationOldForMaxAgeAuthorizationRequest(context, a))
.isPresent();
} | java | public boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context) {
return isCasAuthenticationAvailable(context)
.filter(a -> isCasAuthenticationOldForMaxAgeAuthorizationRequest(context, a))
.isPresent();
} | [
"public",
"boolean",
"isCasAuthenticationOldForMaxAgeAuthorizationRequest",
"(",
"final",
"WebContext",
"context",
")",
"{",
"return",
"isCasAuthenticationAvailable",
"(",
"context",
")",
".",
"filter",
"(",
"a",
"->",
"isCasAuthenticationOldForMaxAgeAuthorizationRequest",
"(... | Is cas authentication available and old for max age authorization request?
@param context the context
@return true/false | [
"Is",
"cas",
"authentication",
"available",
"and",
"old",
"for",
"max",
"age",
"authorization",
"request?"
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java#L160-L164 |
127,192 | apereo/cas | support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java | OidcAuthorizationRequestSupport.isCasAuthenticationOldForMaxAgeAuthorizationRequest | public static boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context,
final UserProfile profile) {
val authTime = profile.getAttribute(CasProtocolConstants.VALIDATION_CAS_MODEL_ATTRIBUTE_NAME_AUTHENTICAT... | java | public static boolean isCasAuthenticationOldForMaxAgeAuthorizationRequest(final WebContext context,
final UserProfile profile) {
val authTime = profile.getAttribute(CasProtocolConstants.VALIDATION_CAS_MODEL_ATTRIBUTE_NAME_AUTHENTICAT... | [
"public",
"static",
"boolean",
"isCasAuthenticationOldForMaxAgeAuthorizationRequest",
"(",
"final",
"WebContext",
"context",
",",
"final",
"UserProfile",
"profile",
")",
"{",
"val",
"authTime",
"=",
"profile",
".",
"getAttribute",
"(",
"CasProtocolConstants",
".",
"VALI... | Is cas authentication old for max age authorization request?
@param context the context
@param profile the profile
@return true/false | [
"Is",
"cas",
"authentication",
"old",
"for",
"max",
"age",
"authorization",
"request?"
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/util/OidcAuthorizationRequestSupport.java#L173-L182 |
127,193 | apereo/cas | support/cas-server-support-throttle-core/src/main/java/org/apereo/cas/web/support/InMemoryThrottledSubmissionCleaner.java | InMemoryThrottledSubmissionCleaner.run | @Override
@Scheduled(initialDelayString = "${cas.authn.throttle.schedule.startDelay:PT10S}",
fixedDelayString = "${cas.authn.throttle.schedule.repeatInterval:PT15S}")
public void run() {
val handlers = authenticationThrottlingExecutionPlan.getAuthenticationThrottleInterceptors();
handler... | java | @Override
@Scheduled(initialDelayString = "${cas.authn.throttle.schedule.startDelay:PT10S}",
fixedDelayString = "${cas.authn.throttle.schedule.repeatInterval:PT15S}")
public void run() {
val handlers = authenticationThrottlingExecutionPlan.getAuthenticationThrottleInterceptors();
handler... | [
"@",
"Override",
"@",
"Scheduled",
"(",
"initialDelayString",
"=",
"\"${cas.authn.throttle.schedule.startDelay:PT10S}\"",
",",
"fixedDelayString",
"=",
"\"${cas.authn.throttle.schedule.repeatInterval:PT15S}\"",
")",
"public",
"void",
"run",
"(",
")",
"{",
"val",
"handlers",
... | Kicks off the job that attempts to clean the throttling submission record history. | [
"Kicks",
"off",
"the",
"job",
"that",
"attempts",
"to",
"clean",
"the",
"throttling",
"submission",
"record",
"history",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-throttle-core/src/main/java/org/apereo/cas/web/support/InMemoryThrottledSubmissionCleaner.java#L22-L32 |
127,194 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createLoginFormView | protected void createLoginFormView(final Flow flow) {
val propertiesToBind = CollectionUtils.wrapList("username", "password", "source");
val binder = createStateBinderConfiguration(propertiesToBind);
casProperties.getView().getCustomLoginFormFields()
.forEach((field, props) -> {
... | java | protected void createLoginFormView(final Flow flow) {
val propertiesToBind = CollectionUtils.wrapList("username", "password", "source");
val binder = createStateBinderConfiguration(propertiesToBind);
casProperties.getView().getCustomLoginFormFields()
.forEach((field, props) -> {
... | [
"protected",
"void",
"createLoginFormView",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"propertiesToBind",
"=",
"CollectionUtils",
".",
"wrapList",
"(",
"\"username\"",
",",
"\"password\"",
",",
"\"source\"",
")",
";",
"val",
"binder",
"=",
"createStateBinderC... | Create login form view.
@param flow the flow | [
"Create",
"login",
"form",
"view",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L99-L118 |
127,195 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createAuthenticationWarningMessagesView | protected void createAuthenticationWarningMessagesView(final Flow flow) {
val state = createViewState(flow, CasWebflowConstants.STATE_ID_SHOW_AUTHN_WARNING_MSGS, "casLoginMessageView");
val setAction = createSetAction("requestScope.messages", "messageContext.allMessages");
state.getEntryActionL... | java | protected void createAuthenticationWarningMessagesView(final Flow flow) {
val state = createViewState(flow, CasWebflowConstants.STATE_ID_SHOW_AUTHN_WARNING_MSGS, "casLoginMessageView");
val setAction = createSetAction("requestScope.messages", "messageContext.allMessages");
state.getEntryActionL... | [
"protected",
"void",
"createAuthenticationWarningMessagesView",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"state",
"=",
"createViewState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_SHOW_AUTHN_WARNING_MSGS",
",",
"\"casLoginMessageView\"",
")",
";",
"v... | Create authentication warning messages view.
@param flow the flow | [
"Create",
"authentication",
"warning",
"messages",
"view",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L125-L135 |
127,196 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createRememberMeAuthnWebflowConfig | protected void createRememberMeAuthnWebflowConfig(final Flow flow) {
if (casProperties.getTicket().getTgt().getRememberMe().isEnabled()) {
createFlowVariable(flow, CasWebflowConstants.VAR_ID_CREDENTIAL, RememberMeUsernamePasswordCredential.class);
val state = getState(flow, CasWebflowCon... | java | protected void createRememberMeAuthnWebflowConfig(final Flow flow) {
if (casProperties.getTicket().getTgt().getRememberMe().isEnabled()) {
createFlowVariable(flow, CasWebflowConstants.VAR_ID_CREDENTIAL, RememberMeUsernamePasswordCredential.class);
val state = getState(flow, CasWebflowCon... | [
"protected",
"void",
"createRememberMeAuthnWebflowConfig",
"(",
"final",
"Flow",
"flow",
")",
"{",
"if",
"(",
"casProperties",
".",
"getTicket",
"(",
")",
".",
"getTgt",
"(",
")",
".",
"getRememberMe",
"(",
")",
".",
"isEnabled",
"(",
")",
")",
"{",
"creat... | Create remember me authn webflow config.
@param flow the flow | [
"Create",
"remember",
"me",
"authn",
"webflow",
"config",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L142-L151 |
127,197 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createDefaultActionStates | protected void createDefaultActionStates(final Flow flow) {
createRealSubmitAction(flow);
createInitialAuthenticationRequestValidationCheckAction(flow);
createCreateTicketGrantingTicketAction(flow);
createSendTicketGrantingTicketAction(flow);
createGenerateServiceTicketAction(flo... | java | protected void createDefaultActionStates(final Flow flow) {
createRealSubmitAction(flow);
createInitialAuthenticationRequestValidationCheckAction(flow);
createCreateTicketGrantingTicketAction(flow);
createSendTicketGrantingTicketAction(flow);
createGenerateServiceTicketAction(flo... | [
"protected",
"void",
"createDefaultActionStates",
"(",
"final",
"Flow",
"flow",
")",
"{",
"createRealSubmitAction",
"(",
"flow",
")",
";",
"createInitialAuthenticationRequestValidationCheckAction",
"(",
"flow",
")",
";",
"createCreateTicketGrantingTicketAction",
"(",
"flow"... | Create default action states.
@param flow the flow | [
"Create",
"default",
"action",
"states",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L158-L170 |
127,198 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createRealSubmitAction | protected void createRealSubmitAction(final Flow flow) {
val state = createActionState(flow, CasWebflowConstants.STATE_ID_REAL_SUBMIT, "authenticationViaFormAction");
createTransitionForState(state, CasWebflowConstants.TRANSITION_ID_WARN, CasWebflowConstants.STATE_ID_WARN);
createTransitionForSt... | java | protected void createRealSubmitAction(final Flow flow) {
val state = createActionState(flow, CasWebflowConstants.STATE_ID_REAL_SUBMIT, "authenticationViaFormAction");
createTransitionForState(state, CasWebflowConstants.TRANSITION_ID_WARN, CasWebflowConstants.STATE_ID_WARN);
createTransitionForSt... | [
"protected",
"void",
"createRealSubmitAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"state",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_REAL_SUBMIT",
",",
"\"authenticationViaFormAction\"",
")",
";",
"createTransitionForS... | Create real submit action.
@param flow the flow | [
"Create",
"real",
"submit",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L177-L184 |
127,199 | apereo/cas | core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java | DefaultLoginWebflowConfigurer.createTicketGrantingTicketCheckAction | protected void createTicketGrantingTicketCheckAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_TICKET_GRANTING_TICKET_CHECK,
CasWebflowConstants.ACTION_ID_TICKET_GRANTING_TICKET_CHECK);
createTransitionForState(action, CasWebflowConstants.TRANSITION... | java | protected void createTicketGrantingTicketCheckAction(final Flow flow) {
val action = createActionState(flow, CasWebflowConstants.STATE_ID_TICKET_GRANTING_TICKET_CHECK,
CasWebflowConstants.ACTION_ID_TICKET_GRANTING_TICKET_CHECK);
createTransitionForState(action, CasWebflowConstants.TRANSITION... | [
"protected",
"void",
"createTicketGrantingTicketCheckAction",
"(",
"final",
"Flow",
"flow",
")",
"{",
"val",
"action",
"=",
"createActionState",
"(",
"flow",
",",
"CasWebflowConstants",
".",
"STATE_ID_TICKET_GRANTING_TICKET_CHECK",
",",
"CasWebflowConstants",
".",
"ACTION... | Create ticket granting ticket check action.
@param flow the flow | [
"Create",
"ticket",
"granting",
"ticket",
"check",
"action",
"."
] | b4b306433a8782cef803a39bea5b1f96740e0e9b | https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLoginWebflowConfigurer.java#L191-L197 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.