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
126,900
apereo/cas
support/cas-server-support-gauth-core-mfa/src/main/java/org/apereo/cas/gauth/credential/BaseGoogleAuthenticatorTokenCredentialRepository.java
BaseGoogleAuthenticatorTokenCredentialRepository.create
public OneTimeTokenAccount create(final String username) { val key = getGoogleAuthenticator().createCredentials(); return new GoogleAuthenticatorAccount(username, key.getKey(), key.getVerificationCode(), key.getScratchCodes()); }
java
public OneTimeTokenAccount create(final String username) { val key = getGoogleAuthenticator().createCredentials(); return new GoogleAuthenticatorAccount(username, key.getKey(), key.getVerificationCode(), key.getScratchCodes()); }
[ "public", "OneTimeTokenAccount", "create", "(", "final", "String", "username", ")", "{", "val", "key", "=", "getGoogleAuthenticator", "(", ")", ".", "createCredentials", "(", ")", ";", "return", "new", "GoogleAuthenticatorAccount", "(", "username", ",", "key", "...
Create one time token account. @param username the username @return the one time token account
[ "Create", "one", "time", "token", "account", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-core-mfa/src/main/java/org/apereo/cas/gauth/credential/BaseGoogleAuthenticatorTokenCredentialRepository.java#L38-L41
126,901
apereo/cas
support/cas-server-support-ws-sts-api/src/main/java/org/apereo/cas/support/claims/WrappingSecurityTokenServiceClaimsHandler.java
WrappingSecurityTokenServiceClaimsHandler.createProcessedClaim
protected ProcessedClaim createProcessedClaim(final Claim requestClaim, final ClaimsParameters parameters) { val claim = new ProcessedClaim(); claim.setClaimType(createProcessedClaimType(requestClaim, parameters)); claim.setIssuer(this.issuer); claim.setOriginalIssuer(this.issuer); ...
java
protected ProcessedClaim createProcessedClaim(final Claim requestClaim, final ClaimsParameters parameters) { val claim = new ProcessedClaim(); claim.setClaimType(createProcessedClaimType(requestClaim, parameters)); claim.setIssuer(this.issuer); claim.setOriginalIssuer(this.issuer); ...
[ "protected", "ProcessedClaim", "createProcessedClaim", "(", "final", "Claim", "requestClaim", ",", "final", "ClaimsParameters", "parameters", ")", "{", "val", "claim", "=", "new", "ProcessedClaim", "(", ")", ";", "claim", ".", "setClaimType", "(", "createProcessedCl...
Create processed claim processed claim. @param requestClaim the request claim @param parameters the parameters @return the processed claim
[ "Create", "processed", "claim", "processed", "claim", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ws-sts-api/src/main/java/org/apereo/cas/support/claims/WrappingSecurityTokenServiceClaimsHandler.java#L69-L76
126,902
apereo/cas
support/cas-server-support-rest-services/src/main/java/org/apereo/cas/support/rest/RegisteredServiceResource.java
RegisteredServiceResource.createService
@PostMapping(value = "/v1/services", consumes = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<String> createService(@RequestBody final RegisteredService service, final HttpServletRequest request, final HttpServletResponse response) { try { ...
java
@PostMapping(value = "/v1/services", consumes = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity<String> createService(@RequestBody final RegisteredService service, final HttpServletRequest request, final HttpServletResponse response) { try { ...
[ "@", "PostMapping", "(", "value", "=", "\"/v1/services\"", ",", "consumes", "=", "MediaType", ".", "APPLICATION_JSON_VALUE", ")", "public", "ResponseEntity", "<", "String", ">", "createService", "(", "@", "RequestBody", "final", "RegisteredService", "service", ",", ...
Create new service. @param service the service @param request the request @param response the response @return {@link ResponseEntity} representing RESTful response
[ "Create", "new", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-rest-services/src/main/java/org/apereo/cas/support/rest/RegisteredServiceResource.java#L58-L74
126,903
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/authentication/principal/ShibbolethCompatiblePersistentIdGenerator.java
ShibbolethCompatiblePersistentIdGenerator.determinePrincipalIdFromAttributes
public String determinePrincipalIdFromAttributes(final String defaultId, final Map<String, List<Object>> attributes) { return FunctionUtils.doIf( StringUtils.isNotBlank(this.attribute) && attributes.containsKey(this.attribute), () -> { val attributeValue = attributes.get(...
java
public String determinePrincipalIdFromAttributes(final String defaultId, final Map<String, List<Object>> attributes) { return FunctionUtils.doIf( StringUtils.isNotBlank(this.attribute) && attributes.containsKey(this.attribute), () -> { val attributeValue = attributes.get(...
[ "public", "String", "determinePrincipalIdFromAttributes", "(", "final", "String", "defaultId", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ")", "{", "return", "FunctionUtils", ".", "doIf", "(", "StringUtils", ".", "i...
Determine principal id from attributes. @param defaultId the default id @param attributes the attributes @return the string
[ "Determine", "principal", "id", "from", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/authentication/principal/ShibbolethCompatiblePersistentIdGenerator.java#L91-L104
126,904
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/authentication/principal/ShibbolethCompatiblePersistentIdGenerator.java
ShibbolethCompatiblePersistentIdGenerator.digestAndEncodeWithSalt
protected String digestAndEncodeWithSalt(final MessageDigest md) { val sanitizedSalt = StringUtils.replace(salt, "\n", " "); val digested = md.digest(sanitizedSalt.getBytes(StandardCharsets.UTF_8)); return EncodingUtils.encodeBase64(digested, false); }
java
protected String digestAndEncodeWithSalt(final MessageDigest md) { val sanitizedSalt = StringUtils.replace(salt, "\n", " "); val digested = md.digest(sanitizedSalt.getBytes(StandardCharsets.UTF_8)); return EncodingUtils.encodeBase64(digested, false); }
[ "protected", "String", "digestAndEncodeWithSalt", "(", "final", "MessageDigest", "md", ")", "{", "val", "sanitizedSalt", "=", "StringUtils", ".", "replace", "(", "salt", ",", "\"\\n\"", ",", "\" \"", ")", ";", "val", "digested", "=", "md", ".", "digest", "("...
Digest and encode with salt string. @param md the md @return the string
[ "Digest", "and", "encode", "with", "salt", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/authentication/principal/ShibbolethCompatiblePersistentIdGenerator.java#L112-L116
126,905
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/authentication/principal/ShibbolethCompatiblePersistentIdGenerator.java
ShibbolethCompatiblePersistentIdGenerator.prepareMessageDigest
protected static MessageDigest prepareMessageDigest(final String principal, final String service) throws NoSuchAlgorithmException { val md = MessageDigest.getInstance("SHA"); if (StringUtils.isNotBlank(service)) { md.update(service.getBytes(StandardCharsets.UTF_8)); md.update(CON...
java
protected static MessageDigest prepareMessageDigest(final String principal, final String service) throws NoSuchAlgorithmException { val md = MessageDigest.getInstance("SHA"); if (StringUtils.isNotBlank(service)) { md.update(service.getBytes(StandardCharsets.UTF_8)); md.update(CON...
[ "protected", "static", "MessageDigest", "prepareMessageDigest", "(", "final", "String", "principal", ",", "final", "String", "service", ")", "throws", "NoSuchAlgorithmException", "{", "val", "md", "=", "MessageDigest", ".", "getInstance", "(", "\"SHA\"", ")", ";", ...
Prepare message digest message digest. @param principal the principal @param service the service @return the message digest @throws NoSuchAlgorithmException the no such algorithm exception
[ "Prepare", "message", "digest", "message", "digest", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/authentication/principal/ShibbolethCompatiblePersistentIdGenerator.java#L126-L135
126,906
apereo/cas
support/cas-server-support-influxdb-core/src/main/java/org/apereo/cas/influxdb/InfluxDbConnectionFactory.java
InfluxDbConnectionFactory.write
public void write(final Point point) { this.influxDb.write(influxDbProperties.getDatabase(), influxDbProperties.getRetentionPolicy(), point); }
java
public void write(final Point point) { this.influxDb.write(influxDbProperties.getDatabase(), influxDbProperties.getRetentionPolicy(), point); }
[ "public", "void", "write", "(", "final", "Point", "point", ")", "{", "this", ".", "influxDb", ".", "write", "(", "influxDbProperties", ".", "getDatabase", "(", ")", ",", "influxDbProperties", ".", "getRetentionPolicy", "(", ")", ",", "point", ")", ";", "}"...
Write measurement point. @param point the point
[ "Write", "measurement", "point", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-influxdb-core/src/main/java/org/apereo/cas/influxdb/InfluxDbConnectionFactory.java#L97-L99
126,907
apereo/cas
support/cas-server-support-influxdb-core/src/main/java/org/apereo/cas/influxdb/InfluxDbConnectionFactory.java
InfluxDbConnectionFactory.writeBatch
public void writeBatch(final Point... point) { val batchPoints = BatchPoints .database(influxDbProperties.getDatabase()) .retentionPolicy(influxDbProperties.getRetentionPolicy()) .consistency(InfluxDB.ConsistencyLevel.valueOf(influxDbProperties.getConsistencyLevel())) ...
java
public void writeBatch(final Point... point) { val batchPoints = BatchPoints .database(influxDbProperties.getDatabase()) .retentionPolicy(influxDbProperties.getRetentionPolicy()) .consistency(InfluxDB.ConsistencyLevel.valueOf(influxDbProperties.getConsistencyLevel())) ...
[ "public", "void", "writeBatch", "(", "final", "Point", "...", "point", ")", "{", "val", "batchPoints", "=", "BatchPoints", ".", "database", "(", "influxDbProperties", ".", "getDatabase", "(", ")", ")", ".", "retentionPolicy", "(", "influxDbProperties", ".", "g...
Write synchronized batch. @param point the points to write immediately in sync fashion
[ "Write", "synchronized", "batch", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-influxdb-core/src/main/java/org/apereo/cas/influxdb/InfluxDbConnectionFactory.java#L117-L125
126,908
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/userinfo/OidcRestfulWebFingerUserInfoRepository.java
OidcRestfulWebFingerUserInfoRepository.findAccountViaRestApi
protected Map<String, Object> findAccountViaRestApi(final Map<String, Object> headers) { HttpResponse response = null; try { response = HttpUtils.execute(properties.getUrl(), properties.getMethod(), properties.getBasicAuthUsername(), properties.getBasicAuthPassword(), ...
java
protected Map<String, Object> findAccountViaRestApi(final Map<String, Object> headers) { HttpResponse response = null; try { response = HttpUtils.execute(properties.getUrl(), properties.getMethod(), properties.getBasicAuthUsername(), properties.getBasicAuthPassword(), ...
[ "protected", "Map", "<", "String", ",", "Object", ">", "findAccountViaRestApi", "(", "final", "Map", "<", "String", ",", "Object", ">", "headers", ")", "{", "HttpResponse", "response", "=", "null", ";", "try", "{", "response", "=", "HttpUtils", ".", "execu...
Find account via rest api and return user-info map. @param headers the headers @return the map
[ "Find", "account", "via", "rest", "api", "and", "return", "user", "-", "info", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/userinfo/OidcRestfulWebFingerUserInfoRepository.java#L50-L65
126,909
apereo/cas
support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java
RedisObjectFactory.newRedisTemplate
public static <K, V> RedisTemplate<K, V> newRedisTemplate(final RedisConnectionFactory connectionFactory) { val template = new RedisTemplate<K, V>(); val string = new StringRedisSerializer(); val jdk = new JdkSerializationRedisSerializer(); template.setKeySerializer(string); temp...
java
public static <K, V> RedisTemplate<K, V> newRedisTemplate(final RedisConnectionFactory connectionFactory) { val template = new RedisTemplate<K, V>(); val string = new StringRedisSerializer(); val jdk = new JdkSerializationRedisSerializer(); template.setKeySerializer(string); temp...
[ "public", "static", "<", "K", ",", "V", ">", "RedisTemplate", "<", "K", ",", "V", ">", "newRedisTemplate", "(", "final", "RedisConnectionFactory", "connectionFactory", ")", "{", "val", "template", "=", "new", "RedisTemplate", "<", "K", ",", "V", ">", "(", ...
New redis template. @param <K> the type parameter @param <V> the type parameter @param connectionFactory the connection factory @return the redis template
[ "New", "redis", "template", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java#L45-L55
126,910
apereo/cas
support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java
RedisObjectFactory.newRedisConnectionFactory
public static RedisConnectionFactory newRedisConnectionFactory(final BaseRedisProperties redis) { val redisConfiguration = redis.getSentinel() == null ? (RedisConfiguration) getStandaloneConfig(redis) : getSentinelConfig(redis); val factory = new LettuceConnectionFactory(redisCo...
java
public static RedisConnectionFactory newRedisConnectionFactory(final BaseRedisProperties redis) { val redisConfiguration = redis.getSentinel() == null ? (RedisConfiguration) getStandaloneConfig(redis) : getSentinelConfig(redis); val factory = new LettuceConnectionFactory(redisCo...
[ "public", "static", "RedisConnectionFactory", "newRedisConnectionFactory", "(", "final", "BaseRedisProperties", "redis", ")", "{", "val", "redisConfiguration", "=", "redis", ".", "getSentinel", "(", ")", "==", "null", "?", "(", "RedisConfiguration", ")", "getStandalon...
New redis connection factory. @param redis the redis @return the redis connection factory
[ "New", "redis", "connection", "factory", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java#L63-L71
126,911
apereo/cas
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/ServiceRegistryInitializer.java
ServiceRegistryInitializer.initServiceRegistryIfNecessary
@SuppressFBWarnings("PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS") public void initServiceRegistryIfNecessary() { val size = this.serviceRegistry.size(); LOGGER.trace("Service registry contains [{}] service definition(s)", size); LOGGER.warn("Service registry [{}] will be auto-initialized from JSO...
java
@SuppressFBWarnings("PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS") public void initServiceRegistryIfNecessary() { val size = this.serviceRegistry.size(); LOGGER.trace("Service registry contains [{}] service definition(s)", size); LOGGER.warn("Service registry [{}] will be auto-initialized from JSO...
[ "@", "SuppressFBWarnings", "(", "\"PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS\"", ")", "public", "void", "initServiceRegistryIfNecessary", "(", ")", "{", "val", "size", "=", "this", ".", "serviceRegistry", ".", "size", "(", ")", ";", "LOGGER", ".", "trace", "(", "\"Serv...
Init service registry if necessary.
[ "Init", "service", "registry", "if", "necessary", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/ServiceRegistryInitializer.java#L30-L53
126,912
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/plan/DefaultCasWebflowExecutionPlan.java
DefaultCasWebflowExecutionPlan.execute
public void execute() { OrderComparator.sortIfNecessary(webflowConfigurers); webflowConfigurers.forEach(c -> { LOGGER.trace("Registering webflow configurer [{}]", c.getName()); c.initialize(); }); }
java
public void execute() { OrderComparator.sortIfNecessary(webflowConfigurers); webflowConfigurers.forEach(c -> { LOGGER.trace("Registering webflow configurer [{}]", c.getName()); c.initialize(); }); }
[ "public", "void", "execute", "(", ")", "{", "OrderComparator", ".", "sortIfNecessary", "(", "webflowConfigurers", ")", ";", "webflowConfigurers", ".", "forEach", "(", "c", "->", "{", "LOGGER", ".", "trace", "(", "\"Registering webflow configurer [{}]\"", ",", "c",...
Execute the plan.
[ "Execute", "the", "plan", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/plan/DefaultCasWebflowExecutionPlan.java#L33-L39
126,913
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/WebApplicationServiceFactory.java
WebApplicationServiceFactory.determineWebApplicationFormat
private static AbstractWebApplicationService determineWebApplicationFormat(final HttpServletRequest request, final AbstractWebApplicationService webApplicationService) { val format = request != null ? request.getParameter(CasProtocol...
java
private static AbstractWebApplicationService determineWebApplicationFormat(final HttpServletRequest request, final AbstractWebApplicationService webApplicationService) { val format = request != null ? request.getParameter(CasProtocol...
[ "private", "static", "AbstractWebApplicationService", "determineWebApplicationFormat", "(", "final", "HttpServletRequest", "request", ",", "final", "AbstractWebApplicationService", "webApplicationService", ")", "{", "val", "format", "=", "request", "!=", "null", "?", "reque...
Determine web application format boolean. @param request the request @param webApplicationService the web application service @return the service itself.
[ "Determine", "web", "application", "format", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/WebApplicationServiceFactory.java#L30-L42
126,914
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/WebApplicationServiceFactory.java
WebApplicationServiceFactory.newWebApplicationService
protected static AbstractWebApplicationService newWebApplicationService(final HttpServletRequest request, final String serviceToUse) { val artifactId = request != null ? request.getParameter(CasProtocolConstants.PARAMETER_TICKET) : null...
java
protected static AbstractWebApplicationService newWebApplicationService(final HttpServletRequest request, final String serviceToUse) { val artifactId = request != null ? request.getParameter(CasProtocolConstants.PARAMETER_TICKET) : null...
[ "protected", "static", "AbstractWebApplicationService", "newWebApplicationService", "(", "final", "HttpServletRequest", "request", ",", "final", "String", "serviceToUse", ")", "{", "val", "artifactId", "=", "request", "!=", "null", "?", "request", ".", "getParameter", ...
Build new web application service simple web application service. @param request the request @param serviceToUse the service to use @return the simple web application service
[ "Build", "new", "web", "application", "service", "simple", "web", "application", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/WebApplicationServiceFactory.java#L51-L60
126,915
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/WebApplicationServiceFactory.java
WebApplicationServiceFactory.getRequestedService
protected String getRequestedService(final HttpServletRequest request) { val targetService = request.getParameter(CasProtocolConstants.PARAMETER_TARGET_SERVICE); val service = request.getParameter(CasProtocolConstants.PARAMETER_SERVICE); val serviceAttribute = request.getAttribute(CasProtocolCon...
java
protected String getRequestedService(final HttpServletRequest request) { val targetService = request.getParameter(CasProtocolConstants.PARAMETER_TARGET_SERVICE); val service = request.getParameter(CasProtocolConstants.PARAMETER_SERVICE); val serviceAttribute = request.getAttribute(CasProtocolCon...
[ "protected", "String", "getRequestedService", "(", "final", "HttpServletRequest", "request", ")", "{", "val", "targetService", "=", "request", ".", "getParameter", "(", "CasProtocolConstants", ".", "PARAMETER_TARGET_SERVICE", ")", ";", "val", "service", "=", "request"...
Gets requested service. @param request the request @return the requested service
[ "Gets", "requested", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/WebApplicationServiceFactory.java#L69-L87
126,916
apereo/cas
support/cas-server-support-simple-mfa/src/main/java/org/apereo/cas/mfa/simple/CasSimpleMultifactorAuthenticationTicketFactory.java
CasSimpleMultifactorAuthenticationTicketFactory.create
@Override public TransientSessionTicket create(final Service service, final Map<String, Serializable> properties) { val id = ticketIdGenerator.getNewTicketId("CAS"); return new TransientSessionTicketImpl(id, expirationPolicy, service, properties); }
java
@Override public TransientSessionTicket create(final Service service, final Map<String, Serializable> properties) { val id = ticketIdGenerator.getNewTicketId("CAS"); return new TransientSessionTicketImpl(id, expirationPolicy, service, properties); }
[ "@", "Override", "public", "TransientSessionTicket", "create", "(", "final", "Service", "service", ",", "final", "Map", "<", "String", ",", "Serializable", ">", "properties", ")", "{", "val", "id", "=", "ticketIdGenerator", ".", "getNewTicketId", "(", "\"CAS\"",...
Create delegated authentication request ticket. @param service the service @param properties the properties @return the delegated authentication request ticket
[ "Create", "delegated", "authentication", "request", "ticket", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-simple-mfa/src/main/java/org/apereo/cas/mfa/simple/CasSimpleMultifactorAuthenticationTicketFactory.java#L36-L40
126,917
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/AuthenticationMultifactorAuthenticationProviderBypass.java
AuthenticationMultifactorAuthenticationProviderBypass.locateMatchingAttributeBasedOnAuthenticationAttributes
protected static boolean locateMatchingAttributeBasedOnAuthenticationAttributes( final MultifactorAuthenticationProviderBypassProperties bypass, final Authentication authn) { return locateMatchingAttributeValue(bypass.getAuthenticationAttributeName(), bypass.getAuthenticationAttributeValue()...
java
protected static boolean locateMatchingAttributeBasedOnAuthenticationAttributes( final MultifactorAuthenticationProviderBypassProperties bypass, final Authentication authn) { return locateMatchingAttributeValue(bypass.getAuthenticationAttributeName(), bypass.getAuthenticationAttributeValue()...
[ "protected", "static", "boolean", "locateMatchingAttributeBasedOnAuthenticationAttributes", "(", "final", "MultifactorAuthenticationProviderBypassProperties", "bypass", ",", "final", "Authentication", "authn", ")", "{", "return", "locateMatchingAttributeValue", "(", "bypass", "."...
Skip bypass and support event based on authentication attributes. @param bypass the bypass settings for the provider. @param authn the authn @return the boolean
[ "Skip", "bypass", "and", "support", "event", "based", "on", "authentication", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/AuthenticationMultifactorAuthenticationProviderBypass.java#L73-L77
126,918
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java
AbstractRegisteredServiceAttributeReleasePolicy.postLoad
@PostLoad public void postLoad() { if (principalAttributesRepository == null) { this.principalAttributesRepository = new DefaultPrincipalAttributesRepository(); } if (consentPolicy == null) { this.consentPolicy = new DefaultRegisteredServiceConsentPolicy(); } ...
java
@PostLoad public void postLoad() { if (principalAttributesRepository == null) { this.principalAttributesRepository = new DefaultPrincipalAttributesRepository(); } if (consentPolicy == null) { this.consentPolicy = new DefaultRegisteredServiceConsentPolicy(); } ...
[ "@", "PostLoad", "public", "void", "postLoad", "(", ")", "{", "if", "(", "principalAttributesRepository", "==", "null", ")", "{", "this", ".", "principalAttributesRepository", "=", "new", "DefaultPrincipalAttributesRepository", "(", ")", ";", "}", "if", "(", "co...
Post load, after having loaded the bean via JPA, etc.
[ "Post", "load", "after", "having", "loaded", "the", "bean", "via", "JPA", "etc", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java#L68-L76
126,919
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java
AbstractRegisteredServiceAttributeReleasePolicy.resolveAttributesFromPrincipalAttributeRepository
protected Map<String, List<Object>> resolveAttributesFromPrincipalAttributeRepository(final Principal principal, final RegisteredService registeredService) { val repository = ObjectUtils.defaultIfNull(this.principalAttributesRepository, getPrincipalAttributesRepositoryFromApplicationContext()); ...
java
protected Map<String, List<Object>> resolveAttributesFromPrincipalAttributeRepository(final Principal principal, final RegisteredService registeredService) { val repository = ObjectUtils.defaultIfNull(this.principalAttributesRepository, getPrincipalAttributesRepositoryFromApplicationContext()); ...
[ "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "resolveAttributesFromPrincipalAttributeRepository", "(", "final", "Principal", "principal", ",", "final", "RegisteredService", "registeredService", ")", "{", "val", "repository", "=", "ObjectUti...
Resolve attributes from principal attribute repository. @param principal the principal @param registeredService the registered service @return the map
[ "Resolve", "attributes", "from", "principal", "attribute", "repository", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java#L153-L161
126,920
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java
AbstractRegisteredServiceAttributeReleasePolicy.insertPrincipalIdAsAttributeIfNeeded
protected void insertPrincipalIdAsAttributeIfNeeded(final Principal principal, final Map<String, List<Object>> attributesToRelease, final Service service, final RegisteredService registeredService) { if (StringUtils.isNotBlank(getPrincipalIdAttribute())) {...
java
protected void insertPrincipalIdAsAttributeIfNeeded(final Principal principal, final Map<String, List<Object>> attributesToRelease, final Service service, final RegisteredService registeredService) { if (StringUtils.isNotBlank(getPrincipalIdAttribute())) {...
[ "protected", "void", "insertPrincipalIdAsAttributeIfNeeded", "(", "final", "Principal", "principal", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributesToRelease", ",", "final", "Service", "service", ",", "final", "RegisteredService...
Release principal id as attribute if needed. @param principal the principal @param attributesToRelease the attributes to release @param service the service @param registeredService the registered service
[ "Release", "principal", "id", "as", "attribute", "if", "needed", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java#L183-L191
126,921
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java
AbstractRegisteredServiceAttributeReleasePolicy.returnFinalAttributesCollection
protected Map<String, List<Object>> returnFinalAttributesCollection(final Map<String, List<Object>> attributesToRelease, final RegisteredService service) { LOGGER.debug("Final collection of attributes allowed are: [{}]", attributesToRelease); return attributesToRelease; }
java
protected Map<String, List<Object>> returnFinalAttributesCollection(final Map<String, List<Object>> attributesToRelease, final RegisteredService service) { LOGGER.debug("Final collection of attributes allowed are: [{}]", attributesToRelease); return attributesToRelease; }
[ "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "returnFinalAttributesCollection", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributesToRelease", ",", "final", "RegisteredService", "service", ")", "{",...
Return the final attributes collection. Subclasses may override this minute to impose last minute rules. @param attributesToRelease the attributes to release @param service the service @return the map
[ "Return", "the", "final", "attributes", "collection", ".", "Subclasses", "may", "override", "this", "minute", "to", "impose", "last", "minute", "rules", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java#L201-L204
126,922
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java
AbstractRegisteredServiceAttributeReleasePolicy.getReleasedByDefaultAttributes
protected Map<String, List<Object>> getReleasedByDefaultAttributes(final Principal p, final Map<String, List<Object>> attributes) { val ctx = ApplicationContextProvider.getApplicationContext(); if (ctx != null) { LOGGER.trace("Located application context. Retrieving default attributes for re...
java
protected Map<String, List<Object>> getReleasedByDefaultAttributes(final Principal p, final Map<String, List<Object>> attributes) { val ctx = ApplicationContextProvider.getApplicationContext(); if (ctx != null) { LOGGER.trace("Located application context. Retrieving default attributes for re...
[ "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "getReleasedByDefaultAttributes", "(", "final", "Principal", "p", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ")", "{", "val", "ctx", "="...
Determines a default bundle of attributes that may be released to all services without the explicit mapping for each service. @param p the principal @param attributes the attributes @return the released by default attributes
[ "Determines", "a", "default", "bundle", "of", "attributes", "that", "may", "be", "released", "to", "all", "services", "without", "the", "explicit", "mapping", "for", "each", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/AbstractRegisteredServiceAttributeReleasePolicy.java#L214-L231
126,923
apereo/cas
support/cas-server-support-aws/src/main/java/org/apereo/cas/aws/AmazonEnvironmentAwareClientBuilder.java
AmazonEnvironmentAwareClientBuilder.build
public <T> T build(final AwsClientBuilder builder, final Class<T> clientType) { val cfg = new ClientConfiguration(); try { val localAddress = getSetting("localAddress"); if (StringUtils.isNotBlank(localAddress)) { cfg.setLocalAddress(InetAddress.getByName(localAdd...
java
public <T> T build(final AwsClientBuilder builder, final Class<T> clientType) { val cfg = new ClientConfiguration(); try { val localAddress = getSetting("localAddress"); if (StringUtils.isNotBlank(localAddress)) { cfg.setLocalAddress(InetAddress.getByName(localAdd...
[ "public", "<", "T", ">", "T", "build", "(", "final", "AwsClientBuilder", "builder", ",", "final", "Class", "<", "T", ">", "clientType", ")", "{", "val", "cfg", "=", "new", "ClientConfiguration", "(", ")", ";", "try", "{", "val", "localAddress", "=", "g...
Build the client. @param <T> the type parameter @param builder the builder @param clientType the client type @return the client instance
[ "Build", "the", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aws/src/main/java/org/apereo/cas/aws/AmazonEnvironmentAwareClientBuilder.java#L68-L106
126,924
apereo/cas
support/cas-server-support-throttle-core/src/main/java/org/apereo/cas/web/support/AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter.java
AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter.submissionRate
private static double submissionRate(final ZonedDateTime a, final ZonedDateTime b) { return SUBMISSION_RATE_DIVIDEND / (a.toInstant().toEpochMilli() - b.toInstant().toEpochMilli()); }
java
private static double submissionRate(final ZonedDateTime a, final ZonedDateTime b) { return SUBMISSION_RATE_DIVIDEND / (a.toInstant().toEpochMilli() - b.toInstant().toEpochMilli()); }
[ "private", "static", "double", "submissionRate", "(", "final", "ZonedDateTime", "a", ",", "final", "ZonedDateTime", "b", ")", "{", "return", "SUBMISSION_RATE_DIVIDEND", "/", "(", "a", ".", "toInstant", "(", ")", ".", "toEpochMilli", "(", ")", "-", "b", ".", ...
Computes the instantaneous rate in between two given dates corresponding to two submissions. @param a First date. @param b Second date. @return Instantaneous submission rate in submissions/sec, e.g. {@code a - b}.
[ "Computes", "the", "instantaneous", "rate", "in", "between", "two", "given", "dates", "corresponding", "to", "two", "submissions", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-throttle-core/src/main/java/org/apereo/cas/web/support/AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter.java#L40-L42
126,925
apereo/cas
support/cas-server-support-throttle-core/src/main/java/org/apereo/cas/web/support/AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter.java
AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter.decrement
@Override public void decrement() { LOGGER.info("Beginning audit cleanup..."); val now = ZonedDateTime.now(ZoneOffset.UTC); this.ipMap.entrySet().removeIf(entry -> submissionRate(now, entry.getValue()) < getThresholdRate()); LOGGER.debug("Done decrementing count for throttler."); ...
java
@Override public void decrement() { LOGGER.info("Beginning audit cleanup..."); val now = ZonedDateTime.now(ZoneOffset.UTC); this.ipMap.entrySet().removeIf(entry -> submissionRate(now, entry.getValue()) < getThresholdRate()); LOGGER.debug("Done decrementing count for throttler."); ...
[ "@", "Override", "public", "void", "decrement", "(", ")", "{", "LOGGER", ".", "info", "(", "\"Beginning audit cleanup...\"", ")", ";", "val", "now", "=", "ZonedDateTime", ".", "now", "(", "ZoneOffset", ".", "UTC", ")", ";", "this", ".", "ipMap", ".", "en...
This class relies on an external configuration to clean it up. It ignores the threshold data in the parent class.
[ "This", "class", "relies", "on", "an", "external", "configuration", "to", "clean", "it", "up", ".", "It", "ignores", "the", "threshold", "data", "in", "the", "parent", "class", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-throttle-core/src/main/java/org/apereo/cas/web/support/AbstractInMemoryThrottledSubmissionHandlerInterceptorAdapter.java#L61-L67
126,926
apereo/cas
support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/revocation/RevokedCertificateException.java
RevokedCertificateException.getReasonFromX509Entry
private static Reason getReasonFromX509Entry(final X509CRLEntry entry) { if (entry.hasExtensions()) { try { val code = Integer.parseInt( new String(entry.getExtensionValue(CRL_REASON_OID), "ASCII")); if (code < Reason.values().length) { ...
java
private static Reason getReasonFromX509Entry(final X509CRLEntry entry) { if (entry.hasExtensions()) { try { val code = Integer.parseInt( new String(entry.getExtensionValue(CRL_REASON_OID), "ASCII")); if (code < Reason.values().length) { ...
[ "private", "static", "Reason", "getReasonFromX509Entry", "(", "final", "X509CRLEntry", "entry", ")", "{", "if", "(", "entry", ".", "hasExtensions", "(", ")", ")", "{", "try", "{", "val", "code", "=", "Integer", ".", "parseInt", "(", "new", "String", "(", ...
Get reason from the x509 entry. @param entry the entry @return reason or null
[ "Get", "reason", "from", "the", "x509", "entry", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/revocation/RevokedCertificateException.java#L74-L87
126,927
apereo/cas
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/JpaBeans.java
JpaBeans.newHibernateJpaVendorAdapter
public static HibernateJpaVendorAdapter newHibernateJpaVendorAdapter(final DatabaseProperties databaseProperties) { val bean = new HibernateJpaVendorAdapter(); bean.setGenerateDdl(databaseProperties.isGenDdl()); bean.setShowSql(databaseProperties.isShowSql()); return bean; }
java
public static HibernateJpaVendorAdapter newHibernateJpaVendorAdapter(final DatabaseProperties databaseProperties) { val bean = new HibernateJpaVendorAdapter(); bean.setGenerateDdl(databaseProperties.isGenDdl()); bean.setShowSql(databaseProperties.isShowSql()); return bean; }
[ "public", "static", "HibernateJpaVendorAdapter", "newHibernateJpaVendorAdapter", "(", "final", "DatabaseProperties", "databaseProperties", ")", "{", "val", "bean", "=", "new", "HibernateJpaVendorAdapter", "(", ")", ";", "bean", ".", "setGenerateDdl", "(", "databasePropert...
New hibernate jpa vendor adapter. @param databaseProperties the database properties @return the hibernate jpa vendor adapter
[ "New", "hibernate", "jpa", "vendor", "adapter", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/JpaBeans.java#L102-L107
126,928
apereo/cas
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/JpaBeans.java
JpaBeans.newHibernateEntityManagerFactoryBean
public static LocalContainerEntityManagerFactoryBean newHibernateEntityManagerFactoryBean(final JpaConfigDataHolder config, final AbstractJpaProperties jpaProperties) { val bean = new LocalContainerEntityManagerFactory...
java
public static LocalContainerEntityManagerFactoryBean newHibernateEntityManagerFactoryBean(final JpaConfigDataHolder config, final AbstractJpaProperties jpaProperties) { val bean = new LocalContainerEntityManagerFactory...
[ "public", "static", "LocalContainerEntityManagerFactoryBean", "newHibernateEntityManagerFactoryBean", "(", "final", "JpaConfigDataHolder", "config", ",", "final", "AbstractJpaProperties", "jpaProperties", ")", "{", "val", "bean", "=", "new", "LocalContainerEntityManagerFactoryBea...
New entity manager factory bean. @param config the config @param jpaProperties the jpa properties @return the local container entity manager factory bean
[ "New", "entity", "manager", "factory", "bean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/JpaBeans.java#L117-L152
126,929
apereo/cas
support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java
SamlResponseBuilder.createResponse
public Response createResponse(final String serviceId, final WebApplicationService service) { return this.samlObjectBuilder.newResponse( this.samlObjectBuilder.generateSecureRandomId(), ZonedDateTime.now(ZoneOffset.UTC).minusSeconds(this.skewAllowance), serviceId, service); }
java
public Response createResponse(final String serviceId, final WebApplicationService service) { return this.samlObjectBuilder.newResponse( this.samlObjectBuilder.generateSecureRandomId(), ZonedDateTime.now(ZoneOffset.UTC).minusSeconds(this.skewAllowance), serviceId, service); }
[ "public", "Response", "createResponse", "(", "final", "String", "serviceId", ",", "final", "WebApplicationService", "service", ")", "{", "return", "this", ".", "samlObjectBuilder", ".", "newResponse", "(", "this", ".", "samlObjectBuilder", ".", "generateSecureRandomId...
Create response. @param serviceId the service id @param service the service @return the response
[ "Create", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java#L52-L56
126,930
apereo/cas
support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java
SamlResponseBuilder.setStatusRequestDenied
public void setStatusRequestDenied(final Response response, final String description) { response.setStatus(this.samlObjectBuilder.newStatus(StatusCode.REQUEST_DENIED, description)); }
java
public void setStatusRequestDenied(final Response response, final String description) { response.setStatus(this.samlObjectBuilder.newStatus(StatusCode.REQUEST_DENIED, description)); }
[ "public", "void", "setStatusRequestDenied", "(", "final", "Response", "response", ",", "final", "String", "description", ")", "{", "response", ".", "setStatus", "(", "this", ".", "samlObjectBuilder", ".", "newStatus", "(", "StatusCode", ".", "REQUEST_DENIED", ",",...
Sets status request denied. @param response the response @param description the description
[ "Sets", "status", "request", "denied", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java#L64-L66
126,931
apereo/cas
support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java
SamlResponseBuilder.prepareSuccessfulResponse
public void prepareSuccessfulResponse(final Response response, final Service service, final Authentication authentication, final Principal principal, final Map<String, List<Object>> authnAttributes, ...
java
public void prepareSuccessfulResponse(final Response response, final Service service, final Authentication authentication, final Principal principal, final Map<String, List<Object>> authnAttributes, ...
[ "public", "void", "prepareSuccessfulResponse", "(", "final", "Response", "response", ",", "final", "Service", "service", ",", "final", "Authentication", "authentication", ",", "final", "Principal", "principal", ",", "final", "Map", "<", "String", ",", "List", "<",...
Prepare successful response. @param response the response @param service the service @param authentication the authentication @param principal the principal @param authnAttributes the authn attributes @param principalAttributes the principal attributes
[ "Prepare", "successful", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java#L78-L117
126,932
apereo/cas
support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java
SamlResponseBuilder.encodeSamlResponse
public void encodeSamlResponse(final Response samlResponse, final HttpServletRequest request, final HttpServletResponse response) throws Exception { this.samlObjectBuilder.encodeSamlResponse(response, request, samlResponse); }
java
public void encodeSamlResponse(final Response samlResponse, final HttpServletRequest request, final HttpServletResponse response) throws Exception { this.samlObjectBuilder.encodeSamlResponse(response, request, samlResponse); }
[ "public", "void", "encodeSamlResponse", "(", "final", "Response", "samlResponse", ",", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ")", "throws", "Exception", "{", "this", ".", "samlObjectBuilder", ".", "encodeSamlResponse"...
Encode saml response. @param samlResponse the saml response @param request the request @param response the response @throws Exception the exception
[ "Encode", "saml", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml/src/main/java/org/apereo/cas/support/saml/authentication/SamlResponseBuilder.java#L145-L147
126,933
apereo/cas
support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/saml/GenerateSamlIdPMetadataCommand.java
GenerateSamlIdPMetadataCommand.generate
@ShellMethod(key = "generate-idp-metadata", value = "Generate SAML2 IdP Metadata") public void generate( @ShellOption(value = {"metadataLocation"}, help = "Directory location to hold metadata and relevant keys/certificates", defaultValue = "/etc/cas/saml") final String metadataLocati...
java
@ShellMethod(key = "generate-idp-metadata", value = "Generate SAML2 IdP Metadata") public void generate( @ShellOption(value = {"metadataLocation"}, help = "Directory location to hold metadata and relevant keys/certificates", defaultValue = "/etc/cas/saml") final String metadataLocati...
[ "@", "ShellMethod", "(", "key", "=", "\"generate-idp-metadata\"", ",", "value", "=", "\"Generate SAML2 IdP Metadata\"", ")", "public", "void", "generate", "(", "@", "ShellOption", "(", "value", "=", "{", "\"metadataLocation\"", "}", ",", "help", "=", "\"Directory ...
Generate saml2 idp metadata at the specified location. @param metadataLocation the metadata location @param entityId the entity id @param serverPrefix the server prefix @param scope the scope @param force force generation of metadata
[ "Generate", "saml2", "idp", "metadata", "at", "the", "specified", "location", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/saml/GenerateSamlIdPMetadataCommand.java#L43-L87
126,934
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/io/CommunicationsManager.java
CommunicationsManager.email
public boolean email(final Principal principal, final String attribute, final EmailProperties emailProperties, final String body) { if (StringUtils.isNotBlank(attribute) && principal.getAttributes().containsKey(attribute) && isMailSender...
java
public boolean email(final Principal principal, final String attribute, final EmailProperties emailProperties, final String body) { if (StringUtils.isNotBlank(attribute) && principal.getAttributes().containsKey(attribute) && isMailSender...
[ "public", "boolean", "email", "(", "final", "Principal", "principal", ",", "final", "String", "attribute", ",", "final", "EmailProperties", "emailProperties", ",", "final", "String", "body", ")", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "attribute"...
Email boolean. @param principal the principal @param attribute the email attribute @param emailProperties the email properties @param body the body @return true /false
[ "Email", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/io/CommunicationsManager.java#L45-L57
126,935
apereo/cas
support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/authentication/handler/support/JcifsSpnegoAuthenticationHandler.java
JcifsSpnegoAuthenticationHandler.getPrincipal
protected Principal getPrincipal(final String name, final boolean isNtlm) { if (this.principalWithDomainName) { return this.principalFactory.createPrincipal(name); } if (isNtlm) { if (Pattern.matches("\\S+\\\\\\S+", name)) { val splitList = Splitter.on(Pat...
java
protected Principal getPrincipal(final String name, final boolean isNtlm) { if (this.principalWithDomainName) { return this.principalFactory.createPrincipal(name); } if (isNtlm) { if (Pattern.matches("\\S+\\\\\\S+", name)) { val splitList = Splitter.on(Pat...
[ "protected", "Principal", "getPrincipal", "(", "final", "String", "name", ",", "final", "boolean", "isNtlm", ")", "{", "if", "(", "this", ".", "principalWithDomainName", ")", "{", "return", "this", ".", "principalFactory", ".", "createPrincipal", "(", "name", ...
Gets the principal from the given name. The principal is created by the factory instance. @param name the name @param isNtlm the is ntlm @return the simple principal
[ "Gets", "the", "principal", "from", "the", "given", "name", ".", "The", "principal", "is", "created", "by", "the", "factory", "instance", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/authentication/handler/support/JcifsSpnegoAuthenticationHandler.java#L121-L136
126,936
apereo/cas
support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutor.java
RegisteredServiceJwtTicketCipherExecutor.getTokenTicketCipherExecutorForService
public JwtTicketCipherExecutor getTokenTicketCipherExecutorForService(final RegisteredService registeredService) { val encryptionKey = getEncryptionKey(registeredService).orElse(StringUtils.EMPTY); val signingKey = getSigningKey(registeredService).orElse(StringUtils.EMPTY); return new JwtTicketC...
java
public JwtTicketCipherExecutor getTokenTicketCipherExecutorForService(final RegisteredService registeredService) { val encryptionKey = getEncryptionKey(registeredService).orElse(StringUtils.EMPTY); val signingKey = getSigningKey(registeredService).orElse(StringUtils.EMPTY); return new JwtTicketC...
[ "public", "JwtTicketCipherExecutor", "getTokenTicketCipherExecutorForService", "(", "final", "RegisteredService", "registeredService", ")", "{", "val", "encryptionKey", "=", "getEncryptionKey", "(", "registeredService", ")", ".", "orElse", "(", "StringUtils", ".", "EMPTY", ...
Gets token ticket cipher executor for service. @param registeredService the registered service @return the token ticket cipher executor for service
[ "Gets", "token", "ticket", "cipher", "executor", "for", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutor.java#L66-L71
126,937
apereo/cas
support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutor.java
RegisteredServiceJwtTicketCipherExecutor.getSigningKey
public Optional<String> getSigningKey(final RegisteredService registeredService) { val property = getSigningKeyRegisteredServiceProperty(); if (property.isAssignedTo(registeredService)) { val signingKey = property.getPropertyValue(registeredService).getValue(); return Optional.of...
java
public Optional<String> getSigningKey(final RegisteredService registeredService) { val property = getSigningKeyRegisteredServiceProperty(); if (property.isAssignedTo(registeredService)) { val signingKey = property.getPropertyValue(registeredService).getValue(); return Optional.of...
[ "public", "Optional", "<", "String", ">", "getSigningKey", "(", "final", "RegisteredService", "registeredService", ")", "{", "val", "property", "=", "getSigningKeyRegisteredServiceProperty", "(", ")", ";", "if", "(", "property", ".", "isAssignedTo", "(", "registered...
Gets signing key. @param registeredService the registered service @return the signing key
[ "Gets", "signing", "key", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutor.java#L79-L86
126,938
apereo/cas
support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutor.java
RegisteredServiceJwtTicketCipherExecutor.getEncryptionKey
public Optional<String> getEncryptionKey(final RegisteredService registeredService) { val property = getEncryptionKeyRegisteredServiceProperty(); if (property.isAssignedTo(registeredService)) { val key = property.getPropertyValue(registeredService).getValue(); return Optional.of(...
java
public Optional<String> getEncryptionKey(final RegisteredService registeredService) { val property = getEncryptionKeyRegisteredServiceProperty(); if (property.isAssignedTo(registeredService)) { val key = property.getPropertyValue(registeredService).getValue(); return Optional.of(...
[ "public", "Optional", "<", "String", ">", "getEncryptionKey", "(", "final", "RegisteredService", "registeredService", ")", "{", "val", "property", "=", "getEncryptionKeyRegisteredServiceProperty", "(", ")", ";", "if", "(", "property", ".", "isAssignedTo", "(", "regi...
Gets encryption key. @param registeredService the registered service @return the encryption key
[ "Gets", "encryption", "key", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/cipher/RegisteredServiceJwtTicketCipherExecutor.java#L94-L101
126,939
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseIdTokenGeneratorService.java
BaseIdTokenGeneratorService.encodeAndFinalizeToken
protected String encodeAndFinalizeToken(final JwtClaims claims, final OAuthRegisteredService registeredService, final AccessToken accessToken) { LOGGER.debug("Received claims for the id token [{}] as [{}]", accessToken, claims); val idTokenResult = getConfigu...
java
protected String encodeAndFinalizeToken(final JwtClaims claims, final OAuthRegisteredService registeredService, final AccessToken accessToken) { LOGGER.debug("Received claims for the id token [{}] as [{}]", accessToken, claims); val idTokenResult = getConfigu...
[ "protected", "String", "encodeAndFinalizeToken", "(", "final", "JwtClaims", "claims", ",", "final", "OAuthRegisteredService", "registeredService", ",", "final", "AccessToken", "accessToken", ")", "{", "LOGGER", ".", "debug", "(", "\"Received claims for the id token [{}] as ...
Encode and finalize token. @param claims the claims @param registeredService the registered service @param accessToken the access token @return the string
[ "Encode", "and", "finalize", "token", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseIdTokenGeneratorService.java#L57-L67
126,940
apereo/cas
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/CasReleaseAttributesReportEndpoint.java
CasReleaseAttributesReportEndpoint.releasePrincipalAttributes
@ReadOperation public Map<String, Object> releasePrincipalAttributes(final String username, final String password, final String service) { val selectedService = this.serviceFactory.createSer...
java
@ReadOperation public Map<String, Object> releasePrincipalAttributes(final String username, final String password, final String service) { val selectedService = this.serviceFactory.createSer...
[ "@", "ReadOperation", "public", "Map", "<", "String", ",", "Object", ">", "releasePrincipalAttributes", "(", "final", "String", "username", ",", "final", "String", "password", ",", "final", "String", "service", ")", "{", "val", "selectedService", "=", "this", ...
Release principal attributes map. @param username the username @param password the password @param service the service @return the map
[ "Release", "principal", "attributes", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/CasReleaseAttributesReportEndpoint.java#L56-L91
126,941
apereo/cas
support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/SpnegoCredentialsAction.java
SpnegoCredentialsAction.setResponseHeader
private void setResponseHeader(final RequestContext context) { val credential = WebUtils.getCredential(context); if (credential == null) { LOGGER.debug("No credential was provided. No response header set."); return; } val response = WebUtils.getHttpServletRespon...
java
private void setResponseHeader(final RequestContext context) { val credential = WebUtils.getCredential(context); if (credential == null) { LOGGER.debug("No credential was provided. No response header set."); return; } val response = WebUtils.getHttpServletRespon...
[ "private", "void", "setResponseHeader", "(", "final", "RequestContext", "context", ")", "{", "val", "credential", "=", "WebUtils", ".", "getCredential", "(", "context", ")", ";", "if", "(", "credential", "==", "null", ")", "{", "LOGGER", ".", "debug", "(", ...
Sets the response header based on the retrieved token. @param context the context
[ "Sets", "the", "response", "header", "based", "on", "the", "retrieved", "token", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/SpnegoCredentialsAction.java#L105-L129
126,942
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/BaseRegisteredServiceUsernameAttributeProvider.java
BaseRegisteredServiceUsernameAttributeProvider.encryptResolvedUsername
protected String encryptResolvedUsername(final Principal principal, final Service service, final RegisteredService registeredService, final String username) { val applicationContext = ApplicationContextProvider.getApplicationContext(); val cipher = applicationContext.getBean("registeredServiceCipherExec...
java
protected String encryptResolvedUsername(final Principal principal, final Service service, final RegisteredService registeredService, final String username) { val applicationContext = ApplicationContextProvider.getApplicationContext(); val cipher = applicationContext.getBean("registeredServiceCipherExec...
[ "protected", "String", "encryptResolvedUsername", "(", "final", "Principal", "principal", ",", "final", "Service", "service", ",", "final", "RegisteredService", "registeredService", ",", "final", "String", "username", ")", "{", "val", "applicationContext", "=", "Appli...
Encrypt resolved username. @param principal the principal @param service the service @param registeredService the registered service @param username the username @return the encrypted username or null
[ "Encrypt", "resolved", "username", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/BaseRegisteredServiceUsernameAttributeProvider.java#L68-L72
126,943
apereo/cas
core/cas-server-core-configuration-metadata-repository/src/main/java/org/apereo/cas/metadata/rest/CasConfigurationMetadataServerEndpoint.java
CasConfigurationMetadataServerEndpoint.search
@ReadOperation public List<ConfigurationMetadataSearchResult> search(@Selector final String name) { val allProps = repository.getRepository().getAllProperties(); if (StringUtils.isNotBlank(name) && RegexUtils.isValidRegex(name)) { val names = StreamSupport.stream(RelaxedPropertyNames.fo...
java
@ReadOperation public List<ConfigurationMetadataSearchResult> search(@Selector final String name) { val allProps = repository.getRepository().getAllProperties(); if (StringUtils.isNotBlank(name) && RegexUtils.isValidRegex(name)) { val names = StreamSupport.stream(RelaxedPropertyNames.fo...
[ "@", "ReadOperation", "public", "List", "<", "ConfigurationMetadataSearchResult", ">", "search", "(", "@", "Selector", "final", "String", "name", ")", "{", "val", "allProps", "=", "repository", ".", "getRepository", "(", ")", ".", "getAllProperties", "(", ")", ...
Search for property. @param name the name @return the response entity
[ "Search", "for", "property", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-configuration-metadata-repository/src/main/java/org/apereo/cas/metadata/rest/CasConfigurationMetadataServerEndpoint.java#L55-L72
126,944
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java
Saml10ObjectBuilder.setInResponseToForSamlResponseIfNeeded
private static void setInResponseToForSamlResponseIfNeeded(final Service service, final Response samlResponse) { if (service instanceof SamlService) { val samlService = (SamlService) service; val requestId = samlService.getRequestId(); if (StringUtils.isNotBlank(requestId)) {...
java
private static void setInResponseToForSamlResponseIfNeeded(final Service service, final Response samlResponse) { if (service instanceof SamlService) { val samlService = (SamlService) service; val requestId = samlService.getRequestId(); if (StringUtils.isNotBlank(requestId)) {...
[ "private", "static", "void", "setInResponseToForSamlResponseIfNeeded", "(", "final", "Service", "service", ",", "final", "Response", "samlResponse", ")", "{", "if", "(", "service", "instanceof", "SamlService", ")", "{", "val", "samlService", "=", "(", "SamlService",...
Sets in response to for saml 1 response. @param service the service @param samlResponse the saml 1 response
[ "Sets", "in", "response", "to", "for", "saml", "1", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java#L67-L75
126,945
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java
Saml10ObjectBuilder.newAuthenticationStatement
public AuthenticationStatement newAuthenticationStatement(final ZonedDateTime authenticationDate, final Collection<Object> authenticationMethod, final String subjectId) { val authnStateme...
java
public AuthenticationStatement newAuthenticationStatement(final ZonedDateTime authenticationDate, final Collection<Object> authenticationMethod, final String subjectId) { val authnStateme...
[ "public", "AuthenticationStatement", "newAuthenticationStatement", "(", "final", "ZonedDateTime", "authenticationDate", ",", "final", "Collection", "<", "Object", ">", "authenticationMethod", ",", "final", "String", "subjectId", ")", "{", "val", "authnStatement", "=", "...
New authentication statement. @param authenticationDate the authentication date @param authenticationMethod the authentication method @param subjectId the subject id @return the authentication statement
[ "New", "authentication", "statement", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java#L176-L189
126,946
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java
Saml10ObjectBuilder.newSubject
public Subject newSubject(final String identifier, final String confirmationMethod) { val confirmation = newSamlObject(SubjectConfirmation.class); val method = newSamlObject(ConfirmationMethod.class); method.setConfirmationMethod(confirmationMethod); confirmation.getConfirmationMethods()...
java
public Subject newSubject(final String identifier, final String confirmationMethod) { val confirmation = newSamlObject(SubjectConfirmation.class); val method = newSamlObject(ConfirmationMethod.class); method.setConfirmationMethod(confirmationMethod); confirmation.getConfirmationMethods()...
[ "public", "Subject", "newSubject", "(", "final", "String", "identifier", ",", "final", "String", "confirmationMethod", ")", "{", "val", "confirmation", "=", "newSamlObject", "(", "SubjectConfirmation", ".", "class", ")", ";", "val", "method", "=", "newSamlObject",...
New subject element with given confirmation method. @param identifier the identifier @param confirmationMethod the confirmation method @return the subject
[ "New", "subject", "element", "with", "given", "confirmation", "method", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java#L209-L220
126,947
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java
Saml10ObjectBuilder.addAttributeValuesToSaml1Attribute
public void addAttributeValuesToSaml1Attribute(final String attributeName, final Object attributeValue, final List<XMLObject> attributeList) { addAttributeValuesToSamlAttribute(attributeName, attributeValue, St...
java
public void addAttributeValuesToSaml1Attribute(final String attributeName, final Object attributeValue, final List<XMLObject> attributeList) { addAttributeValuesToSamlAttribute(attributeName, attributeValue, St...
[ "public", "void", "addAttributeValuesToSaml1Attribute", "(", "final", "String", "attributeName", ",", "final", "Object", "attributeValue", ",", "final", "List", "<", "XMLObject", ">", "attributeList", ")", "{", "addAttributeValuesToSamlAttribute", "(", "attributeName", ...
Add saml1 attribute values for attribute. @param attributeName the attribute name @param attributeValue the attribute value @param attributeList the attribute list
[ "Add", "saml1", "attribute", "values", "for", "attribute", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/Saml10ObjectBuilder.java#L229-L234
126,948
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java
DefaultResponse.getPostResponse
public static Response getPostResponse(final String url, final Map<String, String> attributes) { return new DefaultResponse(ResponseType.POST, url, attributes); }
java
public static Response getPostResponse(final String url, final Map<String, String> attributes) { return new DefaultResponse(ResponseType.POST, url, attributes); }
[ "public", "static", "Response", "getPostResponse", "(", "final", "String", "url", ",", "final", "Map", "<", "String", ",", "String", ">", "attributes", ")", "{", "return", "new", "DefaultResponse", "(", "ResponseType", ".", "POST", ",", "url", ",", "attribut...
Gets the post response. @param url the url @param attributes the attributes @return the post response
[ "Gets", "the", "post", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java#L49-L51
126,949
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java
DefaultResponse.getHeaderResponse
public static Response getHeaderResponse(final String url, final Map<String, String> attributes) { return new DefaultResponse(ResponseType.HEADER, url, attributes); }
java
public static Response getHeaderResponse(final String url, final Map<String, String> attributes) { return new DefaultResponse(ResponseType.HEADER, url, attributes); }
[ "public", "static", "Response", "getHeaderResponse", "(", "final", "String", "url", ",", "final", "Map", "<", "String", ",", "String", ">", "attributes", ")", "{", "return", "new", "DefaultResponse", "(", "ResponseType", ".", "HEADER", ",", "url", ",", "attr...
Gets header response. @param url the url @param attributes the attributes @return the header response
[ "Gets", "header", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java#L60-L62
126,950
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java
DefaultResponse.getRedirectResponse
public static Response getRedirectResponse(final String url, final Map<String, String> parameters) { val builder = new StringBuilder(parameters.size() * RESPONSE_INITIAL_CAPACITY); val sanitizedUrl = sanitizeUrl(url); LOGGER.debug("Sanitized URL for redirect response is [{}]", sanitizedUrl); ...
java
public static Response getRedirectResponse(final String url, final Map<String, String> parameters) { val builder = new StringBuilder(parameters.size() * RESPONSE_INITIAL_CAPACITY); val sanitizedUrl = sanitizeUrl(url); LOGGER.debug("Sanitized URL for redirect response is [{}]", sanitizedUrl); ...
[ "public", "static", "Response", "getRedirectResponse", "(", "final", "String", "url", ",", "final", "Map", "<", "String", ",", "String", ">", "parameters", ")", "{", "val", "builder", "=", "new", "StringBuilder", "(", "parameters", ".", "size", "(", ")", "...
Gets the redirect response. @param url the url @param parameters the parameters @return the redirect response
[ "Gets", "the", "redirect", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java#L71-L99
126,951
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java
DefaultResponse.sanitizeUrl
private static String sanitizeUrl(final String url) { val m = NON_PRINTABLE.matcher(url); val sb = new StringBuffer(url.length()); var hasNonPrintable = false; while (m.find()) { m.appendReplacement(sb, " "); hasNonPrintable = true; } m.appendTail(...
java
private static String sanitizeUrl(final String url) { val m = NON_PRINTABLE.matcher(url); val sb = new StringBuffer(url.length()); var hasNonPrintable = false; while (m.find()) { m.appendReplacement(sb, " "); hasNonPrintable = true; } m.appendTail(...
[ "private", "static", "String", "sanitizeUrl", "(", "final", "String", "url", ")", "{", "val", "m", "=", "NON_PRINTABLE", ".", "matcher", "(", "url", ")", ";", "val", "sb", "=", "new", "StringBuffer", "(", "url", ".", "length", "(", ")", ")", ";", "va...
Sanitize a URL provided by a relying party by normalizing non-printable ASCII character sequences into spaces. This functionality protects against CRLF attacks and other similar attacks using invisible characters that could be abused to trick user agents. @param url URL to sanitize. @return Sanitized URL string.
[ "Sanitize", "a", "URL", "provided", "by", "a", "relying", "party", "by", "normalizing", "non", "-", "printable", "ASCII", "character", "sequences", "into", "spaces", ".", "This", "functionality", "protects", "against", "CRLF", "attacks", "and", "other", "similar...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/DefaultResponse.java#L110-L123
126,952
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/metadata/SamlIdPMetadataController.java
SamlIdPMetadataController.generateMetadataForIdp
@GetMapping(path = SamlIdPConstants.ENDPOINT_IDP_METADATA) public void generateMetadataForIdp(final HttpServletResponse response) throws IOException { this.metadataAndCertificatesGenerationService.generate(); val md = this.samlIdPMetadataLocator.getMetadata().getInputStream(); val contents =...
java
@GetMapping(path = SamlIdPConstants.ENDPOINT_IDP_METADATA) public void generateMetadataForIdp(final HttpServletResponse response) throws IOException { this.metadataAndCertificatesGenerationService.generate(); val md = this.samlIdPMetadataLocator.getMetadata().getInputStream(); val contents =...
[ "@", "GetMapping", "(", "path", "=", "SamlIdPConstants", ".", "ENDPOINT_IDP_METADATA", ")", "public", "void", "generateMetadataForIdp", "(", "final", "HttpServletResponse", "response", ")", "throws", "IOException", "{", "this", ".", "metadataAndCertificatesGenerationServi...
Displays the identity provider metadata. Checks to make sure metadata exists, and if not, generates it first. @param response servlet response @throws IOException the iO exception
[ "Displays", "the", "identity", "provider", "metadata", ".", "Checks", "to", "make", "sure", "metadata", "exists", "and", "if", "not", "generates", "it", "first", "." ]
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/metadata/SamlIdPMetadataController.java#L48-L60
126,953
apereo/cas
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/metadata/ConfigurationMetadataPropertyCreator.java
ConfigurationMetadataPropertyCreator.createConfigurationProperty
public ConfigurationMetadataProperty createConfigurationProperty(final FieldDeclaration fieldDecl, final String propName) { val variable = fieldDecl.getVariables().get(0); val name = StreamSupport.stream(RelaxedPropertyNames.forCamelCase(variable.getNameAsString()).spliterator(), false) .map...
java
public ConfigurationMetadataProperty createConfigurationProperty(final FieldDeclaration fieldDecl, final String propName) { val variable = fieldDecl.getVariables().get(0); val name = StreamSupport.stream(RelaxedPropertyNames.forCamelCase(variable.getNameAsString()).spliterator(), false) .map...
[ "public", "ConfigurationMetadataProperty", "createConfigurationProperty", "(", "final", "FieldDeclaration", "fieldDecl", ",", "final", "String", "propName", ")", "{", "val", "variable", "=", "fieldDecl", ".", "getVariables", "(", ")", ".", "get", "(", "0", ")", ";...
Create configuration property. @param fieldDecl the field decl @param propName the prop name @return the configuration metadata property
[ "Create", "configuration", "property", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/metadata/ConfigurationMetadataPropertyCreator.java#L38-L88
126,954
apereo/cas
support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/JwtTokenCipherSigningPublicKeyEndpoint.java
JwtTokenCipherSigningPublicKeyEndpoint.fetchPublicKey
@ReadOperation(produces = MediaType.TEXT_PLAIN_VALUE) public String fetchPublicKey(@Nullable final String service) throws Exception { val factory = KeyFactory.getInstance("RSA"); var signingKey = tokenCipherExecutor.getSigningKey(); if (StringUtils.isNotBlank(service)) { val reg...
java
@ReadOperation(produces = MediaType.TEXT_PLAIN_VALUE) public String fetchPublicKey(@Nullable final String service) throws Exception { val factory = KeyFactory.getInstance("RSA"); var signingKey = tokenCipherExecutor.getSigningKey(); if (StringUtils.isNotBlank(service)) { val reg...
[ "@", "ReadOperation", "(", "produces", "=", "MediaType", ".", "TEXT_PLAIN_VALUE", ")", "public", "String", "fetchPublicKey", "(", "@", "Nullable", "final", "String", "service", ")", "throws", "Exception", "{", "val", "factory", "=", "KeyFactory", ".", "getInstan...
Fetch public key. @param service the service @return the string @throws Exception the exception
[ "Fetch", "public", "key", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/JwtTokenCipherSigningPublicKeyEndpoint.java#L50-L73
126,955
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/metadata/SamlRegisteredServiceCachedMetadataEndpoint.java
SamlRegisteredServiceCachedMetadataEndpoint.getCachedMetadataObject
@ReadOperation public Map<String, Object> getCachedMetadataObject(final String serviceId, @Nullable final String entityId) { try { val registeredService = findRegisteredService(serviceId); val issuer = StringUtils.defaultIfBlank(entityId, registeredService.getServiceId()); ...
java
@ReadOperation public Map<String, Object> getCachedMetadataObject(final String serviceId, @Nullable final String entityId) { try { val registeredService = findRegisteredService(serviceId); val issuer = StringUtils.defaultIfBlank(entityId, registeredService.getServiceId()); ...
[ "@", "ReadOperation", "public", "Map", "<", "String", ",", "Object", ">", "getCachedMetadataObject", "(", "final", "String", "serviceId", ",", "@", "Nullable", "final", "String", "entityId", ")", "{", "try", "{", "val", "registeredService", "=", "findRegisteredS...
Gets cached metadata object. @param serviceId the service id @param entityId the entity id @return the cached metadata object
[ "Gets", "cached", "metadata", "object", "." ]
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/metadata/SamlRegisteredServiceCachedMetadataEndpoint.java#L85-L102
126,956
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java
ResourceUtils.prepareClasspathResourceIfNeeded
public static Resource prepareClasspathResourceIfNeeded(final Resource resource) { if (resource == null) { LOGGER.debug("No resource defined to prepare. Returning null"); return null; } return prepareClasspathResourceIfNeeded(resource, false, resource.getFilename()); ...
java
public static Resource prepareClasspathResourceIfNeeded(final Resource resource) { if (resource == null) { LOGGER.debug("No resource defined to prepare. Returning null"); return null; } return prepareClasspathResourceIfNeeded(resource, false, resource.getFilename()); ...
[ "public", "static", "Resource", "prepareClasspathResourceIfNeeded", "(", "final", "Resource", "resource", ")", "{", "if", "(", "resource", "==", "null", ")", "{", "LOGGER", ".", "debug", "(", "\"No resource defined to prepare. Returning null\"", ")", ";", "return", ...
Prepare classpath resource if needed file. @param resource the resource @return the file
[ "Prepare", "classpath", "resource", "if", "needed", "file", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java#L138-L144
126,957
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java
ResourceUtils.prepareClasspathResourceIfNeeded
@SneakyThrows public static Resource prepareClasspathResourceIfNeeded(final Resource resource, final boolean isDirectory, final String containsName) { LOGGER.trace("Preparing possible clas...
java
@SneakyThrows public static Resource prepareClasspathResourceIfNeeded(final Resource resource, final boolean isDirectory, final String containsName) { LOGGER.trace("Preparing possible clas...
[ "@", "SneakyThrows", "public", "static", "Resource", "prepareClasspathResourceIfNeeded", "(", "final", "Resource", "resource", ",", "final", "boolean", "isDirectory", ",", "final", "String", "containsName", ")", "{", "LOGGER", ".", "trace", "(", "\"Preparing possible ...
If the provided resource is a classpath resource, running inside an embedded container, and if the container is running in a non-exploded form, classpath resources become non-accessible. So, this method will attempt to move resources out of classpath and onto a physical location outside the context, typically in the "c...
[ "If", "the", "provided", "resource", "is", "a", "classpath", "resource", "running", "inside", "an", "embedded", "container", "and", "if", "the", "container", "is", "running", "in", "a", "non", "-", "exploded", "form", "classpath", "resources", "become", "non",...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java#L157-L208
126,958
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java
ResourceUtils.buildInputStreamResourceFrom
public static InputStreamResource buildInputStreamResourceFrom(final String value, final String description) { val reader = new StringReader(value); val is = new ReaderInputStream(reader, StandardCharsets.UTF_8); return new InputStreamResource(is, description); }
java
public static InputStreamResource buildInputStreamResourceFrom(final String value, final String description) { val reader = new StringReader(value); val is = new ReaderInputStream(reader, StandardCharsets.UTF_8); return new InputStreamResource(is, description); }
[ "public", "static", "InputStreamResource", "buildInputStreamResourceFrom", "(", "final", "String", "value", ",", "final", "String", "description", ")", "{", "val", "reader", "=", "new", "StringReader", "(", "value", ")", ";", "val", "is", "=", "new", "ReaderInpu...
Build input stream resource from string value. @param value the value @param description the description @return the input stream resource
[ "Build", "input", "stream", "resource", "from", "string", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java#L218-L222
126,959
apereo/cas
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/AuditLogEndpoint.java
AuditLogEndpoint.getAuditLog
@ReadOperation public Set<AuditActionContext> getAuditLog() { val sinceDate = LocalDate.now().minusDays(casProperties.getAudit().getNumberOfDaysInHistory()); return this.auditTrailManager.getAuditRecordsSince(sinceDate); }
java
@ReadOperation public Set<AuditActionContext> getAuditLog() { val sinceDate = LocalDate.now().minusDays(casProperties.getAudit().getNumberOfDaysInHistory()); return this.auditTrailManager.getAuditRecordsSince(sinceDate); }
[ "@", "ReadOperation", "public", "Set", "<", "AuditActionContext", ">", "getAuditLog", "(", ")", "{", "val", "sinceDate", "=", "LocalDate", ".", "now", "(", ")", ".", "minusDays", "(", "casProperties", ".", "getAudit", "(", ")", ".", "getNumberOfDaysInHistory",...
Gets audit log. @return the audit log
[ "Gets", "audit", "log", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/AuditLogEndpoint.java#L38-L42
126,960
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/authentication/principal/WsFederationCredential.java
WsFederationCredential.isValid
public boolean isValid(final String expectedAudience, final String expectedIssuer, final long timeDrift) { if (!this.audience.equalsIgnoreCase(expectedAudience)) { LOGGER.warn("Audience [{}] is invalid where the expected audience should be [{}]", this.audience, expectedAudience); return ...
java
public boolean isValid(final String expectedAudience, final String expectedIssuer, final long timeDrift) { if (!this.audience.equalsIgnoreCase(expectedAudience)) { LOGGER.warn("Audience [{}] is invalid where the expected audience should be [{}]", this.audience, expectedAudience); return ...
[ "public", "boolean", "isValid", "(", "final", "String", "expectedAudience", ",", "final", "String", "expectedIssuer", ",", "final", "long", "timeDrift", ")", "{", "if", "(", "!", "this", ".", "audience", ".", "equalsIgnoreCase", "(", "expectedAudience", ")", "...
isValid validates the credential. @param expectedAudience the audience that the token was issued to (CAS Server) @param expectedIssuer the issuer of the token (the IdP) @param timeDrift the amount of acceptable time drift @return true if the credentials are valid, otherwise false
[ "isValid", "validates", "the", "credential", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/authentication/principal/WsFederationCredential.java#L60-L85
126,961
apereo/cas
support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyVerifyAction.java
AcceptableUsagePolicyVerifyAction.verify
private Event verify(final RequestContext context, final Credential credential, final MessageContext messageContext) { val res = repository.verify(context, credential); WebUtils.putPrincipal(context, res.getPrincipal()); WebUtils.putAcceptableUsagePolicyStatusIntoFlowSco...
java
private Event verify(final RequestContext context, final Credential credential, final MessageContext messageContext) { val res = repository.verify(context, credential); WebUtils.putPrincipal(context, res.getPrincipal()); WebUtils.putAcceptableUsagePolicyStatusIntoFlowSco...
[ "private", "Event", "verify", "(", "final", "RequestContext", "context", ",", "final", "Credential", "credential", ",", "final", "MessageContext", "messageContext", ")", "{", "val", "res", "=", "repository", ".", "verify", "(", "context", ",", "credential", ")",...
Verify whether the policy is accepted. @param context the context @param credential the credential @param messageContext the message context @return success if policy is accepted. {@link CasWebflowConstants#TRANSITION_ID_AUP_MUST_ACCEPT} otherwise.
[ "Verify", "whether", "the", "policy", "is", "accepted", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyVerifyAction.java#L34-L43
126,962
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/authn/OidcAccessTokenAuthenticator.java
OidcAccessTokenAuthenticator.validateIdTokenIfAny
protected void validateIdTokenIfAny(final AccessToken accessToken, final CommonProfile profile) throws MalformedClaimException { if (StringUtils.isNotBlank(accessToken.getIdToken())) { val idTokenResult = idTokenSigningAndEncryptionService.validate(accessToken.getIdToken()); profile.setI...
java
protected void validateIdTokenIfAny(final AccessToken accessToken, final CommonProfile profile) throws MalformedClaimException { if (StringUtils.isNotBlank(accessToken.getIdToken())) { val idTokenResult = idTokenSigningAndEncryptionService.validate(accessToken.getIdToken()); profile.setI...
[ "protected", "void", "validateIdTokenIfAny", "(", "final", "AccessToken", "accessToken", ",", "final", "CommonProfile", "profile", ")", "throws", "MalformedClaimException", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "accessToken", ".", "getIdToken", "(", ...
Validate id token if any. @param accessToken the access token @param profile the profile @throws MalformedClaimException the malformed claim exception
[ "Validate", "id", "token", "if", "any", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/authn/OidcAccessTokenAuthenticator.java#L50-L56
126,963
apereo/cas
support/cas-server-support-pm/src/main/java/org/apereo/cas/pm/BasePasswordManagementService.java
BasePasswordManagementService.canonicalizeSecurityQuestions
public static List<String> canonicalizeSecurityQuestions(final Map<String, String> questionMap) { val keys = new ArrayList<String>(questionMap.keySet()); keys.sort(String.CASE_INSENSITIVE_ORDER); return keys; }
java
public static List<String> canonicalizeSecurityQuestions(final Map<String, String> questionMap) { val keys = new ArrayList<String>(questionMap.keySet()); keys.sort(String.CASE_INSENSITIVE_ORDER); return keys; }
[ "public", "static", "List", "<", "String", ">", "canonicalizeSecurityQuestions", "(", "final", "Map", "<", "String", ",", "String", ">", "questionMap", ")", "{", "val", "keys", "=", "new", "ArrayList", "<", "String", ">", "(", "questionMap", ".", "keySet", ...
Orders security questions consistently. @param questionMap A map of question/answer key/value pairs @return A list of questions in a consistent order
[ "Orders", "security", "questions", "consistently", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm/src/main/java/org/apereo/cas/pm/BasePasswordManagementService.java#L47-L51
126,964
apereo/cas
support/cas-server-support-hazelcast-core/src/main/java/org/apereo/cas/hz/HazelcastConfigurationFactory.java
HazelcastConfigurationFactory.buildMapConfig
public MapConfig buildMapConfig(final BaseHazelcastProperties hz, final String mapName, final long timeoutSeconds) { val cluster = hz.getCluster(); val evictionPolicy = EvictionPolicy.valueOf(cluster.getEvictionPolicy()); LOGGER.trace("Creating Hazelcast map configuration for [{}] with idle tim...
java
public MapConfig buildMapConfig(final BaseHazelcastProperties hz, final String mapName, final long timeoutSeconds) { val cluster = hz.getCluster(); val evictionPolicy = EvictionPolicy.valueOf(cluster.getEvictionPolicy()); LOGGER.trace("Creating Hazelcast map configuration for [{}] with idle tim...
[ "public", "MapConfig", "buildMapConfig", "(", "final", "BaseHazelcastProperties", "hz", ",", "final", "String", "mapName", ",", "final", "long", "timeoutSeconds", ")", "{", "val", "cluster", "=", "hz", ".", "getCluster", "(", ")", ";", "val", "evictionPolicy", ...
Build map config map config. @param hz the hz @param mapName the storage name @param timeoutSeconds the timeoutSeconds @return the map config
[ "Build", "map", "config", "map", "config", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-hazelcast-core/src/main/java/org/apereo/cas/hz/HazelcastConfigurationFactory.java#L49-L71
126,965
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlProfileCallbackHandlerController.java
SSOSamlProfileCallbackHandlerController.buildAuthenticationContextPair
protected static Pair<AuthnRequest, MessageContext> buildAuthenticationContextPair(final HttpServletRequest request, final AuthnRequest authnRequest) { val messageContext = bindRelayStateParameter(request); return Pai...
java
protected static Pair<AuthnRequest, MessageContext> buildAuthenticationContextPair(final HttpServletRequest request, final AuthnRequest authnRequest) { val messageContext = bindRelayStateParameter(request); return Pai...
[ "protected", "static", "Pair", "<", "AuthnRequest", ",", "MessageContext", ">", "buildAuthenticationContextPair", "(", "final", "HttpServletRequest", "request", ",", "final", "AuthnRequest", "authnRequest", ")", "{", "val", "messageContext", "=", "bindRelayStateParameter"...
Build authentication context pair pair. @param request the request @param authnRequest the authn request @return the pair
[ "Build", "authentication", "context", "pair", "pair", "." ]
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/sso/SSOSamlProfileCallbackHandlerController.java#L46-L50
126,966
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlProfileCallbackHandlerController.java
SSOSamlProfileCallbackHandlerController.handleCallbackProfileRequest
@GetMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SSO_PROFILE_POST_CALLBACK) protected void handleCallbackProfileRequest(final HttpServletResponse response, final HttpServletRequest request) throws Exception { LOGGER.info("Received SAML callback profile request [{}]", request.getRequestURI()); val ...
java
@GetMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SSO_PROFILE_POST_CALLBACK) protected void handleCallbackProfileRequest(final HttpServletResponse response, final HttpServletRequest request) throws Exception { LOGGER.info("Received SAML callback profile request [{}]", request.getRequestURI()); val ...
[ "@", "GetMapping", "(", "path", "=", "SamlIdPConstants", ".", "ENDPOINT_SAML2_SSO_PROFILE_POST_CALLBACK", ")", "protected", "void", "handleCallbackProfileRequest", "(", "final", "HttpServletResponse", "response", ",", "final", "HttpServletRequest", "request", ")", "throws",...
Handle callback profile request. @param response the response @param request the request @throws Exception the exception
[ "Handle", "callback", "profile", "request", "." ]
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/sso/SSOSamlProfileCallbackHandlerController.java#L67-L88
126,967
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlProfileCallbackHandlerController.java
SSOSamlProfileCallbackHandlerController.determineProfileBinding
protected String determineProfileBinding(final Pair<AuthnRequest, MessageContext> authenticationContext, final Assertion assertion) { val authnRequest = authenticationContext.getKey(); val pair = getRegisteredServiceAndFacade(authnRequest); val facad...
java
protected String determineProfileBinding(final Pair<AuthnRequest, MessageContext> authenticationContext, final Assertion assertion) { val authnRequest = authenticationContext.getKey(); val pair = getRegisteredServiceAndFacade(authnRequest); val facad...
[ "protected", "String", "determineProfileBinding", "(", "final", "Pair", "<", "AuthnRequest", ",", "MessageContext", ">", "authenticationContext", ",", "final", "Assertion", "assertion", ")", "{", "val", "authnRequest", "=", "authenticationContext", ".", "getKey", "(",...
Determine profile binding. @param authenticationContext the authentication context @param assertion the assertion @return the string
[ "Determine", "profile", "binding", "." ]
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/sso/SSOSamlProfileCallbackHandlerController.java#L110-L125
126,968
apereo/cas
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java
BaseAuthenticationRequestRiskCalculator.calculateScore
protected BigDecimal calculateScore(final HttpServletRequest request, final Authentication authentication, final RegisteredService service, final Collection<? extends CasEvent> events) { retur...
java
protected BigDecimal calculateScore(final HttpServletRequest request, final Authentication authentication, final RegisteredService service, final Collection<? extends CasEvent> events) { retur...
[ "protected", "BigDecimal", "calculateScore", "(", "final", "HttpServletRequest", "request", ",", "final", "Authentication", "authentication", ",", "final", "RegisteredService", "service", ",", "final", "Collection", "<", "?", "extends", "CasEvent", ">", "events", ")",...
Calculate score authentication risk score. @param request the request @param authentication the authentication @param service the service @param events the events @return the authentication risk score
[ "Calculate", "score", "authentication", "risk", "score", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java#L67-L72
126,969
apereo/cas
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java
BaseAuthenticationRequestRiskCalculator.getCasTicketGrantingTicketCreatedEventsFor
protected Collection<? extends CasEvent> getCasTicketGrantingTicketCreatedEventsFor(final String principal) { val type = CasTicketGrantingTicketCreatedEvent.class.getName(); LOGGER.debug("Retrieving events of type [{}] for [{}]", type, principal); val date = ZonedDateTime.now(ZoneOffset.UTC) ...
java
protected Collection<? extends CasEvent> getCasTicketGrantingTicketCreatedEventsFor(final String principal) { val type = CasTicketGrantingTicketCreatedEvent.class.getName(); LOGGER.debug("Retrieving events of type [{}] for [{}]", type, principal); val date = ZonedDateTime.now(ZoneOffset.UTC) ...
[ "protected", "Collection", "<", "?", "extends", "CasEvent", ">", "getCasTicketGrantingTicketCreatedEventsFor", "(", "final", "String", "principal", ")", "{", "val", "type", "=", "CasTicketGrantingTicketCreatedEvent", ".", "class", ".", "getName", "(", ")", ";", "LOG...
Gets cas ticket granting ticket created events. @param principal the principal @return the cas ticket granting ticket created events for
[ "Gets", "cas", "ticket", "granting", "ticket", "created", "events", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java#L80-L87
126,970
apereo/cas
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java
BaseAuthenticationRequestRiskCalculator.calculateScoreBasedOnEventsCount
protected BigDecimal calculateScoreBasedOnEventsCount(final Authentication authentication, final Collection<? extends CasEvent> events, final long count) { if (count == events.size()) { ...
java
protected BigDecimal calculateScoreBasedOnEventsCount(final Authentication authentication, final Collection<? extends CasEvent> events, final long count) { if (count == events.size()) { ...
[ "protected", "BigDecimal", "calculateScoreBasedOnEventsCount", "(", "final", "Authentication", "authentication", ",", "final", "Collection", "<", "?", "extends", "CasEvent", ">", "events", ",", "final", "long", "count", ")", "{", "if", "(", "count", "==", "events"...
Calculate score based on events count big decimal. @param authentication the authentication @param events the events @param count the count @return the big decimal
[ "Calculate", "score", "based", "on", "events", "count", "big", "decimal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java#L97-L105
126,971
apereo/cas
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java
BaseAuthenticationRequestRiskCalculator.getFinalAveragedScore
protected BigDecimal getFinalAveragedScore(final long eventCount, final long total) { val score = BigDecimal.valueOf(eventCount) .divide(BigDecimal.valueOf(total), 2, RoundingMode.HALF_UP); return HIGHEST_RISK_SCORE.subtract(score); }
java
protected BigDecimal getFinalAveragedScore(final long eventCount, final long total) { val score = BigDecimal.valueOf(eventCount) .divide(BigDecimal.valueOf(total), 2, RoundingMode.HALF_UP); return HIGHEST_RISK_SCORE.subtract(score); }
[ "protected", "BigDecimal", "getFinalAveragedScore", "(", "final", "long", "eventCount", ",", "final", "long", "total", ")", "{", "val", "score", "=", "BigDecimal", ".", "valueOf", "(", "eventCount", ")", ".", "divide", "(", "BigDecimal", ".", "valueOf", "(", ...
Gets final averaged score. @param eventCount the event count @param total the total @return the final averaged score
[ "Gets", "final", "averaged", "score", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/calcs/BaseAuthenticationRequestRiskCalculator.java#L114-L118
126,972
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/crypto/CertUtils.java
CertUtils.isExpired
public static boolean isExpired(final X509CRL crl, final ZonedDateTime reference) { return reference.isAfter(DateTimeUtils.zonedDateTimeOf(crl.getNextUpdate())); }
java
public static boolean isExpired(final X509CRL crl, final ZonedDateTime reference) { return reference.isAfter(DateTimeUtils.zonedDateTimeOf(crl.getNextUpdate())); }
[ "public", "static", "boolean", "isExpired", "(", "final", "X509CRL", "crl", ",", "final", "ZonedDateTime", "reference", ")", "{", "return", "reference", ".", "isAfter", "(", "DateTimeUtils", ".", "zonedDateTimeOf", "(", "crl", ".", "getNextUpdate", "(", ")", "...
Determines whether the given CRL is expired by comparing the nextUpdate field with a given date. @param crl CRL to examine. @param reference Reference date for comparison. @return True if reference date is after CRL next update, false otherwise.
[ "Determines", "whether", "the", "given", "CRL", "is", "expired", "by", "comparing", "the", "nextUpdate", "field", "with", "a", "given", "date", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/crypto/CertUtils.java#L55-L57
126,973
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/crypto/CertUtils.java
CertUtils.readCertificate
public static X509Certificate readCertificate(final InputStreamSource resource) { try (val in = resource.getInputStream()) { return CertUtil.readCertificate(in); } catch (final IOException e) { throw new IllegalArgumentException("Error reading certificate " + resource, e); ...
java
public static X509Certificate readCertificate(final InputStreamSource resource) { try (val in = resource.getInputStream()) { return CertUtil.readCertificate(in); } catch (final IOException e) { throw new IllegalArgumentException("Error reading certificate " + resource, e); ...
[ "public", "static", "X509Certificate", "readCertificate", "(", "final", "InputStreamSource", "resource", ")", "{", "try", "(", "val", "in", "=", "resource", ".", "getInputStream", "(", ")", ")", "{", "return", "CertUtil", ".", "readCertificate", "(", "in", ")"...
Read certificate. @param resource the resource to read the cert from @return the x 509 certificate
[ "Read", "certificate", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/crypto/CertUtils.java#L65-L71
126,974
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/ecp/ECPProfileHandlerController.java
ECPProfileHandlerController.buildEcpFaultResponse
protected void buildEcpFaultResponse(final HttpServletResponse response, final HttpServletRequest request, final Pair<RequestAbstractType, String> authenticationContext) { request.setAttribute(SamlIdPConstants.REQUEST_ATTRIBUTE_ER...
java
protected void buildEcpFaultResponse(final HttpServletResponse response, final HttpServletRequest request, final Pair<RequestAbstractType, String> authenticationContext) { request.setAttribute(SamlIdPConstants.REQUEST_ATTRIBUTE_ER...
[ "protected", "void", "buildEcpFaultResponse", "(", "final", "HttpServletResponse", "response", ",", "final", "HttpServletRequest", "request", ",", "final", "Pair", "<", "RequestAbstractType", ",", "String", ">", "authenticationContext", ")", "{", "request", ".", "setA...
Build ecp fault response. @param response the response @param request the request @param authenticationContext the authentication context
[ "Build", "ecp", "fault", "response", "." ]
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/ecp/ECPProfileHandlerController.java#L126-L134
126,975
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/ecp/ECPProfileHandlerController.java
ECPProfileHandlerController.authenticateEcpRequest
protected Authentication authenticateEcpRequest(final Credential credential, final Pair<AuthnRequest, MessageContext> authnRequest) { val issuer = SamlIdPUtils.getIssuerFromSamlObject(authnRequest.getKey()); LOGGER.debug("Located issuer [{}] from reque...
java
protected Authentication authenticateEcpRequest(final Credential credential, final Pair<AuthnRequest, MessageContext> authnRequest) { val issuer = SamlIdPUtils.getIssuerFromSamlObject(authnRequest.getKey()); LOGGER.debug("Located issuer [{}] from reque...
[ "protected", "Authentication", "authenticateEcpRequest", "(", "final", "Credential", "credential", ",", "final", "Pair", "<", "AuthnRequest", ",", "MessageContext", ">", "authnRequest", ")", "{", "val", "issuer", "=", "SamlIdPUtils", ".", "getIssuerFromSamlObject", "(...
Authenticate ecp request. @param credential the credential @param authnRequest the authn request @return the authentication
[ "Authenticate", "ecp", "request", "." ]
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/ecp/ECPProfileHandlerController.java#L143-L153
126,976
apereo/cas
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/AttributeConsentReportEndpoint.java
AttributeConsentReportEndpoint.consentDecisions
@ReadOperation public Collection<Map<String, Object>> consentDecisions(@Selector final String principal) { val result = new HashSet<Map<String, Object>>(); LOGGER.debug("Fetching consent decisions for principal [{}]", principal); val consentDecisions = this.consentRepository.findConsentDecis...
java
@ReadOperation public Collection<Map<String, Object>> consentDecisions(@Selector final String principal) { val result = new HashSet<Map<String, Object>>(); LOGGER.debug("Fetching consent decisions for principal [{}]", principal); val consentDecisions = this.consentRepository.findConsentDecis...
[ "@", "ReadOperation", "public", "Collection", "<", "Map", "<", "String", ",", "Object", ">", ">", "consentDecisions", "(", "@", "Selector", "final", "String", "principal", ")", "{", "val", "result", "=", "new", "HashSet", "<", "Map", "<", "String", ",", ...
Consent decisions collection. @param principal the principal @return the collection
[ "Consent", "decisions", "collection", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/AttributeConsentReportEndpoint.java#L44-L58
126,977
apereo/cas
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/AttributeConsentReportEndpoint.java
AttributeConsentReportEndpoint.revokeConsents
@DeleteOperation public boolean revokeConsents(@Selector final String principal, @Selector final long decisionId) { LOGGER.debug("Deleting consent decisions for principal [{}].", principal); return this.consentRepository.deleteConsentDecision(decisionId, principal); }
java
@DeleteOperation public boolean revokeConsents(@Selector final String principal, @Selector final long decisionId) { LOGGER.debug("Deleting consent decisions for principal [{}].", principal); return this.consentRepository.deleteConsentDecision(decisionId, principal); }
[ "@", "DeleteOperation", "public", "boolean", "revokeConsents", "(", "@", "Selector", "final", "String", "principal", ",", "@", "Selector", "final", "long", "decisionId", ")", "{", "LOGGER", ".", "debug", "(", "\"Deleting consent decisions for principal [{}].\"", ",", ...
Revoke consents. @param principal the principal @param decisionId the decision id @return the boolean
[ "Revoke", "consents", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/AttributeConsentReportEndpoint.java#L68-L72
126,978
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceProperty.java
DefaultRegisteredServiceProperty.setValues
public void setValues(final Set<String> values) { getValues().clear(); if (values == null) { return; } getValues().addAll(values); }
java
public void setValues(final Set<String> values) { getValues().clear(); if (values == null) { return; } getValues().addAll(values); }
[ "public", "void", "setValues", "(", "final", "Set", "<", "String", ">", "values", ")", "{", "getValues", "(", ")", ".", "clear", "(", ")", ";", "if", "(", "values", "==", "null", ")", "{", "return", ";", "}", "getValues", "(", ")", ".", "addAll", ...
Sets values. @param values the values
[ "Sets", "values", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceProperty.java#L61-L67
126,979
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.convertAttributeValuesToMultiValuedObjects
public static Map<String, List<Object>> convertAttributeValuesToMultiValuedObjects(final Map<String, Object> attributes) { val entries = attributes.entrySet(); return entries .stream() .collect(Collectors.toMap(Map.Entry::getKey, entry -> { val value = entry.getVa...
java
public static Map<String, List<Object>> convertAttributeValuesToMultiValuedObjects(final Map<String, Object> attributes) { val entries = attributes.entrySet(); return entries .stream() .collect(Collectors.toMap(Map.Entry::getKey, entry -> { val value = entry.getVa...
[ "public", "static", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "convertAttributeValuesToMultiValuedObjects", "(", "final", "Map", "<", "String", ",", "Object", ">", "attributes", ")", "{", "val", "entries", "=", "attributes", ".", "entrySet", ...
Convert attribute values to multi valued objects. @param attributes the attributes @return the map of attributes to return
[ "Convert", "attribute", "values", "to", "multi", "valued", "objects", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L68-L76
126,980
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.retrieveAttributesFromAttributeRepository
public static Map<String, List<Object>> retrieveAttributesFromAttributeRepository(final IPersonAttributeDao attributeRepository, final String principalId, ...
java
public static Map<String, List<Object>> retrieveAttributesFromAttributeRepository(final IPersonAttributeDao attributeRepository, final String principalId, ...
[ "public", "static", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "retrieveAttributesFromAttributeRepository", "(", "final", "IPersonAttributeDao", "attributeRepository", ",", "final", "String", "principalId", ",", "final", "Set", "<", "String", ">", ...
Retrieve attributes from attribute repository and return map. @param attributeRepository the attribute repository @param principalId the principal id @param activeAttributeRepositoryIdentifiers the active attribute repository identifiers @return the map or null
[ "Retrieve", "attributes", "from", "attribute", "repository", "and", "return", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L86-L103
126,981
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.getAttributeMerger
public static IAttributeMerger getAttributeMerger(final String mergingPolicy) { switch (mergingPolicy.toLowerCase()) { case "multivalued": case "multi_valued": case "combine": return new MultivaluedAttributeMerger(); case "add": ret...
java
public static IAttributeMerger getAttributeMerger(final String mergingPolicy) { switch (mergingPolicy.toLowerCase()) { case "multivalued": case "multi_valued": case "combine": return new MultivaluedAttributeMerger(); case "add": ret...
[ "public", "static", "IAttributeMerger", "getAttributeMerger", "(", "final", "String", "mergingPolicy", ")", "{", "switch", "(", "mergingPolicy", ".", "toLowerCase", "(", ")", ")", "{", "case", "\"multivalued\"", ":", "case", "\"multi_valued\"", ":", "case", "\"com...
Gets attribute merger. @param mergingPolicy the merging policy @return the attribute merger
[ "Gets", "attribute", "merger", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L111-L132
126,982
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.mergeAttributes
public static Map<String, List<Object>> mergeAttributes(final Map<String, List<Object>> currentAttributes, final Map<String, List<Object>> attributesToMerge) { val merger = new MultivaluedAttributeMerger(); val toModify = currentAttributes.entrySet() .stream() .map(entry -> Pair...
java
public static Map<String, List<Object>> mergeAttributes(final Map<String, List<Object>> currentAttributes, final Map<String, List<Object>> attributesToMerge) { val merger = new MultivaluedAttributeMerger(); val toModify = currentAttributes.entrySet() .stream() .map(entry -> Pair...
[ "public", "static", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "mergeAttributes", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "currentAttributes", ",", "final", "Map", "<", "String", ",", "List", "<", "Obj...
Merge attributes map. @param currentAttributes the current attributes @param attributesToMerge the attributes to merge @return the map
[ "Merge", "attributes", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L156-L173
126,983
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.transformPrincipalAttributesListIntoMap
public static Map<String, Object> transformPrincipalAttributesListIntoMap(final List<String> list) { val map = transformPrincipalAttributesListIntoMultiMap(list); return CollectionUtils.wrap(map); }
java
public static Map<String, Object> transformPrincipalAttributesListIntoMap(final List<String> list) { val map = transformPrincipalAttributesListIntoMultiMap(list); return CollectionUtils.wrap(map); }
[ "public", "static", "Map", "<", "String", ",", "Object", ">", "transformPrincipalAttributesListIntoMap", "(", "final", "List", "<", "String", ">", "list", ")", "{", "val", "map", "=", "transformPrincipalAttributesListIntoMultiMap", "(", "list", ")", ";", "return",...
Transform principal attributes list into map map. @param list the list @return the map
[ "Transform", "principal", "attributes", "list", "into", "map", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L181-L184
126,984
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.newCredentialSelectionPredicate
public static Predicate<Credential> newCredentialSelectionPredicate(final String selectionCriteria) { try { if (StringUtils.isBlank(selectionCriteria)) { return credential -> true; } if (selectionCriteria.endsWith(".groovy")) { val loader = ne...
java
public static Predicate<Credential> newCredentialSelectionPredicate(final String selectionCriteria) { try { if (StringUtils.isBlank(selectionCriteria)) { return credential -> true; } if (selectionCriteria.endsWith(".groovy")) { val loader = ne...
[ "public", "static", "Predicate", "<", "Credential", ">", "newCredentialSelectionPredicate", "(", "final", "String", "selectionCriteria", ")", "{", "try", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "selectionCriteria", ")", ")", "{", "return", "credential"...
Gets credential selection predicate. @param selectionCriteria the selection criteria @return the credential selection predicate
[ "Gets", "credential", "selection", "predicate", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L222-L248
126,985
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.newPasswordPolicyHandlingStrategy
public static AuthenticationPasswordPolicyHandlingStrategy newPasswordPolicyHandlingStrategy(final PasswordPolicyProperties properties) { if (properties.getStrategy() == PasswordPolicyProperties.PasswordPolicyHandlingOptions.REJECT_RESULT_CODE) { LOGGER.debug("Created password policy handling strate...
java
public static AuthenticationPasswordPolicyHandlingStrategy newPasswordPolicyHandlingStrategy(final PasswordPolicyProperties properties) { if (properties.getStrategy() == PasswordPolicyProperties.PasswordPolicyHandlingOptions.REJECT_RESULT_CODE) { LOGGER.debug("Created password policy handling strate...
[ "public", "static", "AuthenticationPasswordPolicyHandlingStrategy", "newPasswordPolicyHandlingStrategy", "(", "final", "PasswordPolicyProperties", "properties", ")", "{", "if", "(", "properties", ".", "getStrategy", "(", ")", "==", "PasswordPolicyProperties", ".", "PasswordPo...
New password policy handling strategy. @param properties the properties @return the authentication password policy handling strategy
[ "New", "password", "policy", "handling", "strategy", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L256-L270
126,986
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java
CoreAuthenticationUtils.newPersonDirectoryPrincipalResolver
public static PrincipalResolver newPersonDirectoryPrincipalResolver( final PrincipalFactory principalFactory, final IPersonAttributeDao attributeRepository, final PersonDirectoryPrincipalResolverProperties personDirectory) { return new PersonDirectoryPrincipalResolver( attributeRepo...
java
public static PrincipalResolver newPersonDirectoryPrincipalResolver( final PrincipalFactory principalFactory, final IPersonAttributeDao attributeRepository, final PersonDirectoryPrincipalResolverProperties personDirectory) { return new PersonDirectoryPrincipalResolver( attributeRepo...
[ "public", "static", "PrincipalResolver", "newPersonDirectoryPrincipalResolver", "(", "final", "PrincipalFactory", "principalFactory", ",", "final", "IPersonAttributeDao", "attributeRepository", ",", "final", "PersonDirectoryPrincipalResolverProperties", "personDirectory", ")", "{",...
New person directory principal resolver. @param principalFactory the principal factory @param attributeRepository the attribute repository @param personDirectory the person directory @return the principal resolver
[ "New", "person", "directory", "principal", "resolver", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java#L280-L293
126,987
apereo/cas
support/cas-server-support-session-hazelcast/src/main/java/org/apereo/cas/config/HazelcastSessionConfiguration.java
HazelcastSessionConfiguration.hazelcastInstance
@Bean @SneakyThrows public HazelcastInstance hazelcastInstance() { val hzConfigResource = casProperties.getWebflow().getSession().getHzLocation(); val configUrl = hzConfigResource.getURL(); val config = new XmlConfigBuilder(hzConfigResource.getInputStream()).build(); config.setCo...
java
@Bean @SneakyThrows public HazelcastInstance hazelcastInstance() { val hzConfigResource = casProperties.getWebflow().getSession().getHzLocation(); val configUrl = hzConfigResource.getURL(); val config = new XmlConfigBuilder(hzConfigResource.getInputStream()).build(); config.setCo...
[ "@", "Bean", "@", "SneakyThrows", "public", "HazelcastInstance", "hazelcastInstance", "(", ")", "{", "val", "hzConfigResource", "=", "casProperties", ".", "getWebflow", "(", ")", ".", "getSession", "(", ")", ".", "getHzLocation", "(", ")", ";", "val", "configU...
Hazelcast instance that is used by the spring session repository to broadcast session events. The name of this bean must be left untouched. @return the hazelcast instance
[ "Hazelcast", "instance", "that", "is", "used", "by", "the", "spring", "session", "repository", "to", "broadcast", "session", "events", ".", "The", "name", "of", "this", "bean", "must", "be", "left", "untouched", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-session-hazelcast/src/main/java/org/apereo/cas/config/HazelcastSessionConfiguration.java#L37-L48
126,988
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.putPasswordResetToken
public void putPasswordResetToken(final RequestContext requestContext, final String token) { val flowScope = requestContext.getFlowScope(); flowScope.put(FLOWSCOPE_PARAMETER_NAME_TOKEN, token); }
java
public void putPasswordResetToken(final RequestContext requestContext, final String token) { val flowScope = requestContext.getFlowScope(); flowScope.put(FLOWSCOPE_PARAMETER_NAME_TOKEN, token); }
[ "public", "void", "putPasswordResetToken", "(", "final", "RequestContext", "requestContext", ",", "final", "String", "token", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "flowScope", ".", "put", "(", "FLOWSCOPE_PARAMETE...
Put password reset token. @param requestContext the request context @param token the token
[ "Put", "password", "reset", "token", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L35-L38
126,989
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.putPasswordResetSecurityQuestions
public void putPasswordResetSecurityQuestions(final RequestContext requestContext, final List<String> value) { val flowScope = requestContext.getFlowScope(); flowScope.put("questions", value); }
java
public void putPasswordResetSecurityQuestions(final RequestContext requestContext, final List<String> value) { val flowScope = requestContext.getFlowScope(); flowScope.put("questions", value); }
[ "public", "void", "putPasswordResetSecurityQuestions", "(", "final", "RequestContext", "requestContext", ",", "final", "List", "<", "String", ">", "value", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "flowScope", ".", ...
Put password reset security questions. @param requestContext the request context @param value the value
[ "Put", "password", "reset", "security", "questions", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L46-L49
126,990
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.getPasswordResetQuestions
public static List<String> getPasswordResetQuestions(final RequestContext requestContext) { val flowScope = requestContext.getFlowScope(); return flowScope.get("questions", List.class); }
java
public static List<String> getPasswordResetQuestions(final RequestContext requestContext) { val flowScope = requestContext.getFlowScope(); return flowScope.get("questions", List.class); }
[ "public", "static", "List", "<", "String", ">", "getPasswordResetQuestions", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "return", "flowScope", ".", "get", "(", "\"que...
Gets password reset questions. @param requestContext the request context @return the password reset questions
[ "Gets", "password", "reset", "questions", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L57-L60
126,991
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.putPasswordResetSecurityQuestionsEnabled
public static void putPasswordResetSecurityQuestionsEnabled(final RequestContext requestContext, final boolean value) { val flowScope = requestContext.getFlowScope(); flowScope.put("questionsEnabled", value); }
java
public static void putPasswordResetSecurityQuestionsEnabled(final RequestContext requestContext, final boolean value) { val flowScope = requestContext.getFlowScope(); flowScope.put("questionsEnabled", value); }
[ "public", "static", "void", "putPasswordResetSecurityQuestionsEnabled", "(", "final", "RequestContext", "requestContext", ",", "final", "boolean", "value", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "flowScope", ".", "pu...
Put password reset security questions enabled. @param requestContext the request context @param value the value
[ "Put", "password", "reset", "security", "questions", "enabled", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L68-L71
126,992
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.putPasswordResetUsername
public static void putPasswordResetUsername(final RequestContext requestContext, final String username) { val flowScope = requestContext.getFlowScope(); flowScope.put("username", username); }
java
public static void putPasswordResetUsername(final RequestContext requestContext, final String username) { val flowScope = requestContext.getFlowScope(); flowScope.put("username", username); }
[ "public", "static", "void", "putPasswordResetUsername", "(", "final", "RequestContext", "requestContext", ",", "final", "String", "username", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "flowScope", ".", "put", "(", "...
Put password reset username. @param requestContext the request context @param username the username
[ "Put", "password", "reset", "username", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L90-L93
126,993
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.getPasswordResetUsername
public static String getPasswordResetUsername(final RequestContext requestContext) { val flowScope = requestContext.getFlowScope(); return flowScope.getString("username"); }
java
public static String getPasswordResetUsername(final RequestContext requestContext) { val flowScope = requestContext.getFlowScope(); return flowScope.getString("username"); }
[ "public", "static", "String", "getPasswordResetUsername", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "return", "flowScope", ".", "getString", "(", "\"username\"", ")", ...
Gets password reset username. @param requestContext the request context @return the password reset username
[ "Gets", "password", "reset", "username", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L101-L104
126,994
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.getPasswordResetToken
public static String getPasswordResetToken(final RequestContext requestContext) { val flowScope = requestContext.getFlowScope(); return flowScope.getString(FLOWSCOPE_PARAMETER_NAME_TOKEN); }
java
public static String getPasswordResetToken(final RequestContext requestContext) { val flowScope = requestContext.getFlowScope(); return flowScope.getString(FLOWSCOPE_PARAMETER_NAME_TOKEN); }
[ "public", "static", "String", "getPasswordResetToken", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "return", "flowScope", ".", "getString", "(", "FLOWSCOPE_PARAMETER_NAME_TO...
Gets password reset token. @param requestContext the request context @return the password reset token
[ "Gets", "password", "reset", "token", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L112-L115
126,995
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java
PasswordManagementWebflowUtils.putPasswordResetPasswordPolicyPattern
public static String putPasswordResetPasswordPolicyPattern(final RequestContext requestContext, final String policyPattern) { val flowScope = requestContext.getFlowScope(); return flowScope.getString("policyPattern"); }
java
public static String putPasswordResetPasswordPolicyPattern(final RequestContext requestContext, final String policyPattern) { val flowScope = requestContext.getFlowScope(); return flowScope.getString("policyPattern"); }
[ "public", "static", "String", "putPasswordResetPasswordPolicyPattern", "(", "final", "RequestContext", "requestContext", ",", "final", "String", "policyPattern", ")", "{", "val", "flowScope", "=", "requestContext", ".", "getFlowScope", "(", ")", ";", "return", "flowSc...
Put password reset password policy pattern string. @param requestContext the request context @param policyPattern the policy pattern @return the string
[ "Put", "password", "reset", "password", "policy", "pattern", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/PasswordManagementWebflowUtils.java#L124-L127
126,996
apereo/cas
support/cas-server-support-generic-remote-webflow/src/main/java/org/apereo/cas/adaptors/generic/remote/RemoteAddressAuthenticationHandler.java
RemoteAddressAuthenticationHandler.containsAddress
private static boolean containsAddress(final InetAddress network, final InetAddress netmask, final InetAddress ip) { LOGGER.debug("Checking IP address: [{}] in [{}] by [{}]", ip, network, netmask); val networkBytes = network.getAddress(); val netmaskBytes = netmask.getAddress(); val ipBy...
java
private static boolean containsAddress(final InetAddress network, final InetAddress netmask, final InetAddress ip) { LOGGER.debug("Checking IP address: [{}] in [{}] by [{}]", ip, network, netmask); val networkBytes = network.getAddress(); val netmaskBytes = netmask.getAddress(); val ipBy...
[ "private", "static", "boolean", "containsAddress", "(", "final", "InetAddress", "network", ",", "final", "InetAddress", "netmask", ",", "final", "InetAddress", "ip", ")", "{", "LOGGER", ".", "debug", "(", "\"Checking IP address: [{}] in [{}] by [{}]\"", ",", "ip", "...
Checks if a subnet contains a specific IP address. @param network The network address. @param netmask The subnet mask. @param ip The IP address to check. @return A boolean value.
[ "Checks", "if", "a", "subnet", "contains", "a", "specific", "IP", "address", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-generic-remote-webflow/src/main/java/org/apereo/cas/adaptors/generic/remote/RemoteAddressAuthenticationHandler.java#L60-L80
126,997
apereo/cas
support/cas-server-support-generic-remote-webflow/src/main/java/org/apereo/cas/adaptors/generic/remote/RemoteAddressAuthenticationHandler.java
RemoteAddressAuthenticationHandler.configureIpNetworkRange
public void configureIpNetworkRange(final String ipAddressRange) { if (StringUtils.isNotBlank(ipAddressRange)) { val splitAddress = Splitter.on("/").splitToList(ipAddressRange); if (splitAddress.size() == 2) { val network = splitAddress.get(0).trim(); val ...
java
public void configureIpNetworkRange(final String ipAddressRange) { if (StringUtils.isNotBlank(ipAddressRange)) { val splitAddress = Splitter.on("/").splitToList(ipAddressRange); if (splitAddress.size() == 2) { val network = splitAddress.get(0).trim(); val ...
[ "public", "void", "configureIpNetworkRange", "(", "final", "String", "ipAddressRange", ")", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "ipAddressRange", ")", ")", "{", "val", "splitAddress", "=", "Splitter", ".", "on", "(", "\"/\"", ")", ".", "sp...
Sets ip network range. @param ipAddressRange the IP address range that should be allowed trusted logins
[ "Sets", "ip", "network", "range", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-generic-remote-webflow/src/main/java/org/apereo/cas/adaptors/generic/remote/RemoteAddressAuthenticationHandler.java#L113-L135
126,998
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/callback/OAuth20TokenAuthorizationResponseBuilder.java
OAuth20TokenAuthorizationResponseBuilder.buildCallbackUrlResponseType
protected ModelAndView buildCallbackUrlResponseType(final AccessTokenRequestDataHolder holder, final String redirectUri, final AccessToken accessToken, ...
java
protected ModelAndView buildCallbackUrlResponseType(final AccessTokenRequestDataHolder holder, final String redirectUri, final AccessToken accessToken, ...
[ "protected", "ModelAndView", "buildCallbackUrlResponseType", "(", "final", "AccessTokenRequestDataHolder", "holder", ",", "final", "String", "redirectUri", ",", "final", "AccessToken", "accessToken", ",", "final", "List", "<", "NameValuePair", ">", "params", ",", "final...
Build callback url response type string. @param holder the holder @param redirectUri the redirect uri @param accessToken the access token @param params the params @param refreshToken the refresh token @param context the context @return the string @throws Exception the exception
[ "Build", "callback", "url", "response", "type", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/callback/OAuth20TokenAuthorizationResponseBuilder.java#L67-L131
126,999
apereo/cas
support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/TicketGrantingTicketCheckAction.java
TicketGrantingTicketCheckAction.doExecute
@Override public Event doExecute(final RequestContext requestContext) { val tgtId = WebUtils.getTicketGrantingTicketId(requestContext); if (StringUtils.isBlank(tgtId)) { return new Event(this, CasWebflowConstants.TRANSITION_ID_TGT_NOT_EXISTS); } try { val tick...
java
@Override public Event doExecute(final RequestContext requestContext) { val tgtId = WebUtils.getTicketGrantingTicketId(requestContext); if (StringUtils.isBlank(tgtId)) { return new Event(this, CasWebflowConstants.TRANSITION_ID_TGT_NOT_EXISTS); } try { val tick...
[ "@", "Override", "public", "Event", "doExecute", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "tgtId", "=", "WebUtils", ".", "getTicketGrantingTicketId", "(", "requestContext", ")", ";", "if", "(", "StringUtils", ".", "isBlank", "(", "tgtId...
Determines whether the TGT in the flow request context is valid. @param requestContext Flow request context. @return webflow transition to indicate TGT status.
[ "Determines", "whether", "the", "TGT", "in", "the", "flow", "request", "context", "is", "valid", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/TicketGrantingTicketCheckAction.java#L35-L50