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,500
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putAuthenticationResult
public static void putAuthenticationResult(final AuthenticationResult authenticationResult, final RequestContext context) { context.getConversationScope().put(PARAMETER_AUTHENTICATION_RESULT, authenticationResult); }
java
public static void putAuthenticationResult(final AuthenticationResult authenticationResult, final RequestContext context) { context.getConversationScope().put(PARAMETER_AUTHENTICATION_RESULT, authenticationResult); }
[ "public", "static", "void", "putAuthenticationResult", "(", "final", "AuthenticationResult", "authenticationResult", ",", "final", "RequestContext", "context", ")", "{", "context", ".", "getConversationScope", "(", ")", ".", "put", "(", "PARAMETER_AUTHENTICATION_RESULT", ...
Put authentication result. @param authenticationResult the authentication result @param context the context
[ "Put", "authentication", "result", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L533-L535
126,501
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getHttpServletRequestUserAgentFromRequestContext
public static String getHttpServletRequestUserAgentFromRequestContext(final RequestContext context) { val request = getHttpServletRequestFromExternalWebflowContext(context); return getHttpServletRequestUserAgentFromRequestContext(request); }
java
public static String getHttpServletRequestUserAgentFromRequestContext(final RequestContext context) { val request = getHttpServletRequestFromExternalWebflowContext(context); return getHttpServletRequestUserAgentFromRequestContext(request); }
[ "public", "static", "String", "getHttpServletRequestUserAgentFromRequestContext", "(", "final", "RequestContext", "context", ")", "{", "val", "request", "=", "getHttpServletRequestFromExternalWebflowContext", "(", "context", ")", ";", "return", "getHttpServletRequestUserAgentFr...
Gets http servlet request user agent from request context. @param context the context @return the http servlet request user agent from request context
[ "Gets", "http", "servlet", "request", "user", "agent", "from", "request", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L563-L566
126,502
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getHttpServletRequestGeoLocationFromRequestContext
public static GeoLocationRequest getHttpServletRequestGeoLocationFromRequestContext(final RequestContext context) { val servletRequest = getHttpServletRequestFromExternalWebflowContext(context); return getHttpServletRequestGeoLocation(servletRequest); }
java
public static GeoLocationRequest getHttpServletRequestGeoLocationFromRequestContext(final RequestContext context) { val servletRequest = getHttpServletRequestFromExternalWebflowContext(context); return getHttpServletRequestGeoLocation(servletRequest); }
[ "public", "static", "GeoLocationRequest", "getHttpServletRequestGeoLocationFromRequestContext", "(", "final", "RequestContext", "context", ")", "{", "val", "servletRequest", "=", "getHttpServletRequestFromExternalWebflowContext", "(", "context", ")", ";", "return", "getHttpServ...
Gets http servlet request geo location from request context. @param context the context @return the http servlet request geo location from request context
[ "Gets", "http", "servlet", "request", "geo", "location", "from", "request", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L594-L597
126,503
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putRecaptchaPropertiesFlowScope
public static void putRecaptchaPropertiesFlowScope(final RequestContext context, final GoogleRecaptchaProperties googleRecaptcha) { val flowScope = context.getFlowScope(); flowScope.put("recaptchaSiteKey", googleRecaptcha.getSiteKey()); flowScope.put("recaptchaInvisible", googleRecaptcha.isInvis...
java
public static void putRecaptchaPropertiesFlowScope(final RequestContext context, final GoogleRecaptchaProperties googleRecaptcha) { val flowScope = context.getFlowScope(); flowScope.put("recaptchaSiteKey", googleRecaptcha.getSiteKey()); flowScope.put("recaptchaInvisible", googleRecaptcha.isInvis...
[ "public", "static", "void", "putRecaptchaPropertiesFlowScope", "(", "final", "RequestContext", "context", ",", "final", "GoogleRecaptchaProperties", "googleRecaptcha", ")", "{", "val", "flowScope", "=", "context", ".", "getFlowScope", "(", ")", ";", "flowScope", ".", ...
Put recaptcha settings flow scope. @param context the context @param googleRecaptcha the properties
[ "Put", "recaptcha", "settings", "flow", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L629-L635
126,504
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putResolvedMultifactorAuthenticationProviders
public static void putResolvedMultifactorAuthenticationProviders(final RequestContext context, final Collection<MultifactorAuthenticationProvider> value) { val providerIds = value.stream().map(MultifactorAuthenticationProvider::getId).collect(...
java
public static void putResolvedMultifactorAuthenticationProviders(final RequestContext context, final Collection<MultifactorAuthenticationProvider> value) { val providerIds = value.stream().map(MultifactorAuthenticationProvider::getId).collect(...
[ "public", "static", "void", "putResolvedMultifactorAuthenticationProviders", "(", "final", "RequestContext", "context", ",", "final", "Collection", "<", "MultifactorAuthenticationProvider", ">", "value", ")", "{", "val", "providerIds", "=", "value", ".", "stream", "(", ...
Put resolved multifactor authentication providers into scope. @param context the context @param value the value
[ "Put", "resolved", "multifactor", "authentication", "providers", "into", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L703-L707
126,505
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putServiceUserInterfaceMetadata
public static void putServiceUserInterfaceMetadata(final RequestContext requestContext, final Serializable mdui) { if (mdui != null) { requestContext.getFlowScope().put(PARAMETER_SERVICE_UI_METADATA, mdui); } }
java
public static void putServiceUserInterfaceMetadata(final RequestContext requestContext, final Serializable mdui) { if (mdui != null) { requestContext.getFlowScope().put(PARAMETER_SERVICE_UI_METADATA, mdui); } }
[ "public", "static", "void", "putServiceUserInterfaceMetadata", "(", "final", "RequestContext", "requestContext", ",", "final", "Serializable", "mdui", ")", "{", "if", "(", "mdui", "!=", "null", ")", "{", "requestContext", ".", "getFlowScope", "(", ")", ".", "put...
Sets service user interface metadata. @param requestContext the request context @param mdui the mdui
[ "Sets", "service", "user", "interface", "metadata", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L725-L729
126,506
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getServiceUserInterfaceMetadata
public static <T> T getServiceUserInterfaceMetadata(final RequestContext requestContext, final Class<T> clz) { if (requestContext.getFlowScope().contains(PARAMETER_SERVICE_UI_METADATA)) { return requestContext.getFlowScope().get(PARAMETER_SERVICE_UI_METADATA, clz); } return null; ...
java
public static <T> T getServiceUserInterfaceMetadata(final RequestContext requestContext, final Class<T> clz) { if (requestContext.getFlowScope().contains(PARAMETER_SERVICE_UI_METADATA)) { return requestContext.getFlowScope().get(PARAMETER_SERVICE_UI_METADATA, clz); } return null; ...
[ "public", "static", "<", "T", ">", "T", "getServiceUserInterfaceMetadata", "(", "final", "RequestContext", "requestContext", ",", "final", "Class", "<", "T", ">", "clz", ")", "{", "if", "(", "requestContext", ".", "getFlowScope", "(", ")", ".", "contains", "...
Gets service user interface metadata. @param <T> the type parameter @param requestContext the request context @param clz the clz @return the service user interface metadata
[ "Gets", "service", "user", "interface", "metadata", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L739-L744
126,507
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putServiceResponseIntoRequestScope
public static void putServiceResponseIntoRequestScope(final RequestContext requestContext, final Response response) { requestContext.getRequestScope().put("parameters", response.getAttributes()); putServiceRedirectUrl(requestContext, response.getUrl()); }
java
public static void putServiceResponseIntoRequestScope(final RequestContext requestContext, final Response response) { requestContext.getRequestScope().put("parameters", response.getAttributes()); putServiceRedirectUrl(requestContext, response.getUrl()); }
[ "public", "static", "void", "putServiceResponseIntoRequestScope", "(", "final", "RequestContext", "requestContext", ",", "final", "Response", "response", ")", "{", "requestContext", ".", "getRequestScope", "(", ")", ".", "put", "(", "\"parameters\"", ",", "response", ...
Put service response into request scope. @param requestContext the request context @param response the response
[ "Put", "service", "response", "into", "request", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L762-L765
126,508
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putServiceOriginalUrlIntoRequestScope
public static void putServiceOriginalUrlIntoRequestScope(final RequestContext requestContext, final WebApplicationService service) { requestContext.getRequestScope().put("originalUrl", service.getOriginalUrl()); }
java
public static void putServiceOriginalUrlIntoRequestScope(final RequestContext requestContext, final WebApplicationService service) { requestContext.getRequestScope().put("originalUrl", service.getOriginalUrl()); }
[ "public", "static", "void", "putServiceOriginalUrlIntoRequestScope", "(", "final", "RequestContext", "requestContext", ",", "final", "WebApplicationService", "service", ")", "{", "requestContext", ".", "getRequestScope", "(", ")", ".", "put", "(", "\"originalUrl\"", ","...
Put service original url into request scope. @param requestContext the request context @param service the service
[ "Put", "service", "original", "url", "into", "request", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L773-L775
126,509
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getInProgressAuthentication
public static Authentication getInProgressAuthentication() { val context = RequestContextHolder.getRequestContext(); val authentication = context != null ? WebUtils.getAuthentication(context) : null; if (authentication == null) { return AuthenticationCredentialsThreadLocalBinder.getI...
java
public static Authentication getInProgressAuthentication() { val context = RequestContextHolder.getRequestContext(); val authentication = context != null ? WebUtils.getAuthentication(context) : null; if (authentication == null) { return AuthenticationCredentialsThreadLocalBinder.getI...
[ "public", "static", "Authentication", "getInProgressAuthentication", "(", ")", "{", "val", "context", "=", "RequestContextHolder", ".", "getRequestContext", "(", ")", ";", "val", "authentication", "=", "context", "!=", "null", "?", "WebUtils", ".", "getAuthenticatio...
Gets in progress authentication. @return the in progress authentication
[ "Gets", "in", "progress", "authentication", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L812-L819
126,510
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putSurrogateAuthenticationAccounts
public static void putSurrogateAuthenticationAccounts(final RequestContext requestContext, final List<String> surrogates) { requestContext.getFlowScope().put("surrogates", surrogates); }
java
public static void putSurrogateAuthenticationAccounts(final RequestContext requestContext, final List<String> surrogates) { requestContext.getFlowScope().put("surrogates", surrogates); }
[ "public", "static", "void", "putSurrogateAuthenticationAccounts", "(", "final", "RequestContext", "requestContext", ",", "final", "List", "<", "String", ">", "surrogates", ")", "{", "requestContext", ".", "getFlowScope", "(", ")", ".", "put", "(", "\"surrogates\"", ...
Put surrogate authentication accounts. @param requestContext the request context @param surrogates the surrogates
[ "Put", "surrogate", "authentication", "accounts", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L910-L912
126,511
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putAvailableAuthenticationHandleNames
public static void putAvailableAuthenticationHandleNames(final RequestContext context, final Collection<String> availableHandlers) { context.getFlowScope().put("availableAuthenticationHandlerNames", availableHandlers); }
java
public static void putAvailableAuthenticationHandleNames(final RequestContext context, final Collection<String> availableHandlers) { context.getFlowScope().put("availableAuthenticationHandlerNames", availableHandlers); }
[ "public", "static", "void", "putAvailableAuthenticationHandleNames", "(", "final", "RequestContext", "context", ",", "final", "Collection", "<", "String", ">", "availableHandlers", ")", "{", "context", ".", "getFlowScope", "(", ")", ".", "put", "(", "\"availableAuth...
Put available authentication handle names. @param context the context @param availableHandlers the available handlers
[ "Put", "available", "authentication", "handle", "names", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L990-L992
126,512
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putInitialHttpRequestPostParameters
public static void putInitialHttpRequestPostParameters(final RequestContext context) { val request = getHttpServletRequestFromExternalWebflowContext(context); context.getFlashScope().put("httpRequestInitialPostParameters", request.getParameterMap()); }
java
public static void putInitialHttpRequestPostParameters(final RequestContext context) { val request = getHttpServletRequestFromExternalWebflowContext(context); context.getFlashScope().put("httpRequestInitialPostParameters", request.getParameterMap()); }
[ "public", "static", "void", "putInitialHttpRequestPostParameters", "(", "final", "RequestContext", "context", ")", "{", "val", "request", "=", "getHttpServletRequestFromExternalWebflowContext", "(", "context", ")", ";", "context", ".", "getFlashScope", "(", ")", ".", ...
Put initial http request post parameters. @param context the context
[ "Put", "initial", "http", "request", "post", "parameters", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L1019-L1022
126,513
apereo/cas
support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/revocation/checker/ResourceCRLRevocationChecker.java
ResourceCRLRevocationChecker.init
@SneakyThrows @SuppressWarnings("FutureReturnValueIgnored") public void init() { if (!validateConfiguration()) { return; } val results = this.fetcher.fetch(getResources()); ResourceCRLRevocationChecker.this.addCrls(results); final Runnable scheduledFetcher =...
java
@SneakyThrows @SuppressWarnings("FutureReturnValueIgnored") public void init() { if (!validateConfiguration()) { return; } val results = this.fetcher.fetch(getResources()); ResourceCRLRevocationChecker.this.addCrls(results); final Runnable scheduledFetcher =...
[ "@", "SneakyThrows", "@", "SuppressWarnings", "(", "\"FutureReturnValueIgnored\"", ")", "public", "void", "init", "(", ")", "{", "if", "(", "!", "validateConfiguration", "(", ")", ")", "{", "return", ";", "}", "val", "results", "=", "this", ".", "fetcher", ...
Initializes the process that periodically fetches CRL data.
[ "Initializes", "the", "process", "that", "periodically", "fetches", "CRL", "data", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/revocation/checker/ResourceCRLRevocationChecker.java#L132-L157
126,514
apereo/cas
support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/revocation/checker/ResourceCRLRevocationChecker.java
ResourceCRLRevocationChecker.addCrls
private void addCrls(final Collection<X509CRL> results) { results.forEach(entry -> addCRL(entry.getIssuerX500Principal(), entry)); }
java
private void addCrls(final Collection<X509CRL> results) { results.forEach(entry -> addCRL(entry.getIssuerX500Principal(), entry)); }
[ "private", "void", "addCrls", "(", "final", "Collection", "<", "X509CRL", ">", "results", ")", "{", "results", ".", "forEach", "(", "entry", "->", "addCRL", "(", "entry", ".", "getIssuerX500Principal", "(", ")", ",", "entry", ")", ")", ";", "}" ]
Add fetched crls to the map. @param results the results
[ "Add", "fetched", "crls", "to", "the", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/revocation/checker/ResourceCRLRevocationChecker.java#L185-L187
126,515
apereo/cas
api/cas-server-core-api-events/src/main/java/org/apereo/cas/support/events/config/CasConfigurationModifiedEvent.java
CasConfigurationModifiedEvent.isEligibleForContextRefresh
public boolean isEligibleForContextRefresh() { if (this.override) { return true; } if (getFile() != null) { return CONFIG_FILE_PATTERN.matcher(getFile().toFile().getName()).find(); } return false; }
java
public boolean isEligibleForContextRefresh() { if (this.override) { return true; } if (getFile() != null) { return CONFIG_FILE_PATTERN.matcher(getFile().toFile().getName()).find(); } return false; }
[ "public", "boolean", "isEligibleForContextRefresh", "(", ")", "{", "if", "(", "this", ".", "override", ")", "{", "return", "true", ";", "}", "if", "(", "getFile", "(", ")", "!=", "null", ")", "{", "return", "CONFIG_FILE_PATTERN", ".", "matcher", "(", "ge...
Is eligible for context refresh ? @return the boolean
[ "Is", "eligible", "for", "context", "refresh", "?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-events/src/main/java/org/apereo/cas/support/events/config/CasConfigurationModifiedEvent.java#L67-L75
126,516
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/authn/DefaultAuthnContextClassRefBuilder.java
DefaultAuthnContextClassRefBuilder.getAuthenticationContextByAssertion
protected String getAuthenticationContextByAssertion(final Object assertion, final RequestedAuthnContext requestedAuthnContext, final List<AuthnContextClassRef> authnContextClassRefs) { LOGGER.debug...
java
protected String getAuthenticationContextByAssertion(final Object assertion, final RequestedAuthnContext requestedAuthnContext, final List<AuthnContextClassRef> authnContextClassRefs) { LOGGER.debug...
[ "protected", "String", "getAuthenticationContextByAssertion", "(", "final", "Object", "assertion", ",", "final", "RequestedAuthnContext", "requestedAuthnContext", ",", "final", "List", "<", "AuthnContextClassRef", ">", "authnContextClassRefs", ")", "{", "LOGGER", ".", "de...
Gets authentication context by assertion. This is more of a template method for the time being, and may be enhanced later to support more advanced parsing of classes from the assertion. @param assertion the assertion @param requestedAuthnContext the requested authn context @param authnContextClassRefs the ...
[ "Gets", "authentication", "context", "by", "assertion", ".", "This", "is", "more", "of", "a", "template", "method", "for", "the", "time", "being", "and", "may", "be", "enhanced", "later", "to", "support", "more", "advanced", "parsing", "of", "classes", "from...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/authn/DefaultAuthnContextClassRefBuilder.java#L76-L82
126,517
apereo/cas
support/cas-server-support-dynamodb-service-registry/src/main/java/org/apereo/cas/services/DynamoDbServiceRegistryFacilitator.java
DynamoDbServiceRegistryFacilitator.createServicesTable
@SneakyThrows public void createServicesTable(final boolean deleteTables) { LOGGER.debug("Attempting to create DynamoDb services table"); val request = new CreateTableRequest().withAttributeDefinitions( new AttributeDefinition(ColumnNames.ID.getColumnName(), ScalarAttributeType.S)) ...
java
@SneakyThrows public void createServicesTable(final boolean deleteTables) { LOGGER.debug("Attempting to create DynamoDb services table"); val request = new CreateTableRequest().withAttributeDefinitions( new AttributeDefinition(ColumnNames.ID.getColumnName(), ScalarAttributeType.S)) ...
[ "@", "SneakyThrows", "public", "void", "createServicesTable", "(", "final", "boolean", "deleteTables", ")", "{", "LOGGER", ".", "debug", "(", "\"Attempting to create DynamoDb services table\"", ")", ";", "val", "request", "=", "new", "CreateTableRequest", "(", ")", ...
Create tables. @param deleteTables the delete tables
[ "Create", "tables", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-dynamodb-service-registry/src/main/java/org/apereo/cas/services/DynamoDbServiceRegistryFacilitator.java#L181-L202
126,518
apereo/cas
support/cas-server-support-dynamodb-service-registry/src/main/java/org/apereo/cas/services/DynamoDbServiceRegistryFacilitator.java
DynamoDbServiceRegistryFacilitator.buildTableAttributeValuesMapFromService
public Map<String, AttributeValue> buildTableAttributeValuesMapFromService(final RegisteredService service) { val values = new HashMap<String, AttributeValue>(); values.put(ColumnNames.ID.getColumnName(), new AttributeValue(String.valueOf(service.getId()))); values.put(ColumnNames.NAME.getColumn...
java
public Map<String, AttributeValue> buildTableAttributeValuesMapFromService(final RegisteredService service) { val values = new HashMap<String, AttributeValue>(); values.put(ColumnNames.ID.getColumnName(), new AttributeValue(String.valueOf(service.getId()))); values.put(ColumnNames.NAME.getColumn...
[ "public", "Map", "<", "String", ",", "AttributeValue", ">", "buildTableAttributeValuesMapFromService", "(", "final", "RegisteredService", "service", ")", "{", "val", "values", "=", "new", "HashMap", "<", "String", ",", "AttributeValue", ">", "(", ")", ";", "valu...
Build table attribute values from map. @param service the service @return the map
[ "Build", "table", "attribute", "values", "from", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-dynamodb-service-registry/src/main/java/org/apereo/cas/services/DynamoDbServiceRegistryFacilitator.java#L210-L221
126,519
apereo/cas
support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/web/flow/fingerprint/CookieDeviceFingerprintComponentExtractor.java
CookieDeviceFingerprintComponentExtractor.createDeviceFingerPrintCookie
protected void createDeviceFingerPrintCookie(final RequestContext context, final HttpServletRequest request, final String cookieValue) { val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(context); cookieGenerator.addCookie(request, response, cookieValue); }
java
protected void createDeviceFingerPrintCookie(final RequestContext context, final HttpServletRequest request, final String cookieValue) { val response = WebUtils.getHttpServletResponseFromExternalWebflowContext(context); cookieGenerator.addCookie(request, response, cookieValue); }
[ "protected", "void", "createDeviceFingerPrintCookie", "(", "final", "RequestContext", "context", ",", "final", "HttpServletRequest", "request", ",", "final", "String", "cookieValue", ")", "{", "val", "response", "=", "WebUtils", ".", "getHttpServletResponseFromExternalWeb...
Create device finger print cookie. @param context the context @param request the request @param cookieValue the cookie value
[ "Create", "device", "finger", "print", "cookie", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/web/flow/fingerprint/CookieDeviceFingerprintComponentExtractor.java#L52-L55
126,520
apereo/cas
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/CasResolveAttributesReportEndpoint.java
CasResolveAttributesReportEndpoint.resolvePrincipalAttributes
@ReadOperation public Map<String, Object> resolvePrincipalAttributes(@Selector final String uid) { val p = defaultPrincipalResolver.resolve(new BasicIdentifiableCredential(uid)); val map = new HashMap<String, Object>(); map.put("uid", p.getId()); map.put("attributes", p.getAttributes...
java
@ReadOperation public Map<String, Object> resolvePrincipalAttributes(@Selector final String uid) { val p = defaultPrincipalResolver.resolve(new BasicIdentifiableCredential(uid)); val map = new HashMap<String, Object>(); map.put("uid", p.getId()); map.put("attributes", p.getAttributes...
[ "@", "ReadOperation", "public", "Map", "<", "String", ",", "Object", ">", "resolvePrincipalAttributes", "(", "@", "Selector", "final", "String", "uid", ")", "{", "val", "p", "=", "defaultPrincipalResolver", ".", "resolve", "(", "new", "BasicIdentifiableCredential"...
Resolve principal attributes map. @param uid the uid @return the map
[ "Resolve", "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/CasResolveAttributesReportEndpoint.java#L39-L46
126,521
apereo/cas
support/cas-server-support-surrogate-authentication-couchdb/src/main/java/org/apereo/cas/couchdb/surrogate/SurrogateAuthorizationCouchDbRepository.java
SurrogateAuthorizationCouchDbRepository.findByPrincipal
@View(name = "by_surrogate", map = "function(doc) { if(doc.surrogate && doc.principal) { emit(doc.principal, doc.surrogate) } }") public List<String> findByPrincipal(final String surrogate) { val view = createQuery("by_surrogate").key(surrogate); return db.queryView(view, String.class); }
java
@View(name = "by_surrogate", map = "function(doc) { if(doc.surrogate && doc.principal) { emit(doc.principal, doc.surrogate) } }") public List<String> findByPrincipal(final String surrogate) { val view = createQuery("by_surrogate").key(surrogate); return db.queryView(view, String.class); }
[ "@", "View", "(", "name", "=", "\"by_surrogate\"", ",", "map", "=", "\"function(doc) { if(doc.surrogate && doc.principal) { emit(doc.principal, doc.surrogate) } }\"", ")", "public", "List", "<", "String", ">", "findByPrincipal", "(", "final", "String", "surrogate", ")", "...
Find by surrogate. @param surrogate username to retrieve authorized principals @return list of surrogate documents
[ "Find", "by", "surrogate", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-surrogate-authentication-couchdb/src/main/java/org/apereo/cas/couchdb/surrogate/SurrogateAuthorizationCouchDbRepository.java#L28-L32
126,522
apereo/cas
support/cas-server-support-surrogate-authentication-couchdb/src/main/java/org/apereo/cas/couchdb/surrogate/SurrogateAuthorizationCouchDbRepository.java
SurrogateAuthorizationCouchDbRepository.findBySurrogatePrincipal
@View(name = "by_surrogate_principal", map = "function(doc) { if(doc.surrogate && doc.principal) { emit([doc.principal, doc.surrogate], doc) } }") public List<CouchDbSurrogateAuthorization> findBySurrogatePrincipal(final String surrogate, final String principal) { return queryView("by_surrogate_principal", ...
java
@View(name = "by_surrogate_principal", map = "function(doc) { if(doc.surrogate && doc.principal) { emit([doc.principal, doc.surrogate], doc) } }") public List<CouchDbSurrogateAuthorization> findBySurrogatePrincipal(final String surrogate, final String principal) { return queryView("by_surrogate_principal", ...
[ "@", "View", "(", "name", "=", "\"by_surrogate_principal\"", ",", "map", "=", "\"function(doc) { if(doc.surrogate && doc.principal) { emit([doc.principal, doc.surrogate], doc) } }\"", ")", "public", "List", "<", "CouchDbSurrogateAuthorization", ">", "findBySurrogatePrincipal", "(",...
Find by surrogate, principal, service touple for authorization check. @param surrogate Surrogate user to validate access. @param principal Principal to validate the surrogate can access. @return Surrogate/principal if authorized
[ "Find", "by", "surrogate", "principal", "service", "touple", "for", "authorization", "check", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-surrogate-authentication-couchdb/src/main/java/org/apereo/cas/couchdb/surrogate/SurrogateAuthorizationCouchDbRepository.java#L40-L43
126,523
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultCasSslContext.java
DefaultCasSslContext.getKeyManager
private static X509KeyManager getKeyManager(final String algorithm, final KeyStore keystore, final char[] password) throws Exception { val factory = KeyManagerFactory.getInstance(algorithm); factory.init(keystore, password); return (X509KeyManager)...
java
private static X509KeyManager getKeyManager(final String algorithm, final KeyStore keystore, final char[] password) throws Exception { val factory = KeyManagerFactory.getInstance(algorithm); factory.init(keystore, password); return (X509KeyManager)...
[ "private", "static", "X509KeyManager", "getKeyManager", "(", "final", "String", "algorithm", ",", "final", "KeyStore", "keystore", ",", "final", "char", "[", "]", "password", ")", "throws", "Exception", "{", "val", "factory", "=", "KeyManagerFactory", ".", "getI...
Gets key manager. @param algorithm the algorithm @param keystore the keystore @param password the password @return the key manager @throws Exception the exception
[ "Gets", "key", "manager", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultCasSslContext.java#L91-L96
126,524
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultCasSslContext.java
DefaultCasSslContext.getTrustManager
private static Collection<X509TrustManager> getTrustManager(final String algorithm, final KeyStore keystore) throws Exception { val factory = TrustManagerFactory.getInstance(algorithm); factory.init(keystore); return Arrays.stream(factory.getTrustManagers()) .filter(e -> e instanceof...
java
private static Collection<X509TrustManager> getTrustManager(final String algorithm, final KeyStore keystore) throws Exception { val factory = TrustManagerFactory.getInstance(algorithm); factory.init(keystore); return Arrays.stream(factory.getTrustManagers()) .filter(e -> e instanceof...
[ "private", "static", "Collection", "<", "X509TrustManager", ">", "getTrustManager", "(", "final", "String", "algorithm", ",", "final", "KeyStore", "keystore", ")", "throws", "Exception", "{", "val", "factory", "=", "TrustManagerFactory", ".", "getInstance", "(", "...
Gets trust manager. @param algorithm the algorithm @param keystore the keystore @return the trust manager @throws Exception the exception
[ "Gets", "trust", "manager", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultCasSslContext.java#L106-L113
126,525
apereo/cas
support/cas-server-support-oidc-services/src/main/java/org/apereo/cas/services/OidcRegisteredService.java
OidcRegisteredService.setDynamicallyRegistered
public void setDynamicallyRegistered(final boolean dynamicallyRegistered) { if (dynamicallyRegistered && !this.dynamicallyRegistered && dynamicRegistrationDateTime == null) { setDynamicRegistrationDateTime(ZonedDateTime.now(ZoneOffset.UTC)); } this.dynamicallyRegistered = dynamically...
java
public void setDynamicallyRegistered(final boolean dynamicallyRegistered) { if (dynamicallyRegistered && !this.dynamicallyRegistered && dynamicRegistrationDateTime == null) { setDynamicRegistrationDateTime(ZonedDateTime.now(ZoneOffset.UTC)); } this.dynamicallyRegistered = dynamically...
[ "public", "void", "setDynamicallyRegistered", "(", "final", "boolean", "dynamicallyRegistered", ")", "{", "if", "(", "dynamicallyRegistered", "&&", "!", "this", ".", "dynamicallyRegistered", "&&", "dynamicRegistrationDateTime", "==", "null", ")", "{", "setDynamicRegistr...
Indicates the service was dynamically registered. Records the registration time automatically. @param dynamicallyRegistered dynamically registered.
[ "Indicates", "the", "service", "was", "dynamically", "registered", ".", "Records", "the", "registration", "time", "automatically", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-services/src/main/java/org/apereo/cas/services/OidcRegisteredService.java#L100-L105
126,526
apereo/cas
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/web/controllers/resource/UmaResourceRegistrationRequest.java
UmaResourceRegistrationRequest.asResourceSet
@JsonIgnore public ResourceSet asResourceSet(final CommonProfile profileResult) { val resourceSet = new ResourceSet(); resourceSet.setIconUri(getIconUri()); resourceSet.setId(getId()); resourceSet.setName(getName()); resourceSet.setScopes(new HashSet<>(getScopes())); ...
java
@JsonIgnore public ResourceSet asResourceSet(final CommonProfile profileResult) { val resourceSet = new ResourceSet(); resourceSet.setIconUri(getIconUri()); resourceSet.setId(getId()); resourceSet.setName(getName()); resourceSet.setScopes(new HashSet<>(getScopes())); ...
[ "@", "JsonIgnore", "public", "ResourceSet", "asResourceSet", "(", "final", "CommonProfile", "profileResult", ")", "{", "val", "resourceSet", "=", "new", "ResourceSet", "(", ")", ";", "resourceSet", ".", "setIconUri", "(", "getIconUri", "(", ")", ")", ";", "res...
As resource set. @param profileResult the profile result @return the resource set
[ "As", "resource", "set", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/web/controllers/resource/UmaResourceRegistrationRequest.java#L51-L63
126,527
apereo/cas
support/cas-server-support-couchdb-core/src/main/java/org/apereo/cas/couchdb/core/CouchDbProfileDocument.java
CouchDbProfileDocument.setAttribute
@JsonIgnore public void setAttribute(final String key, final Object value) { attributes.put(key, CollectionUtils.toCollection(value, ArrayList.class)); }
java
@JsonIgnore public void setAttribute(final String key, final Object value) { attributes.put(key, CollectionUtils.toCollection(value, ArrayList.class)); }
[ "@", "JsonIgnore", "public", "void", "setAttribute", "(", "final", "String", "key", ",", "final", "Object", "value", ")", "{", "attributes", ".", "put", "(", "key", ",", "CollectionUtils", ".", "toCollection", "(", "value", ",", "ArrayList", ".", "class", ...
Sets a single attribute. @param key the attribute key to set @param value the value to be set
[ "Sets", "a", "single", "attribute", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-core/src/main/java/org/apereo/cas/couchdb/core/CouchDbProfileDocument.java#L73-L76
126,528
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/OAuth20DefaultCasClientRedirectActionBuilder.java
OAuth20DefaultCasClientRedirectActionBuilder.build
protected RedirectAction build(final CasClient casClient, final WebContext context, final boolean renew, final boolean gateway) { val serviceUrl = casClient.computeFinalCallbackUrl(context); val casServerLoginUrl = casClient.getConfiguration().getLoginUrl(); val redirectionUrl = casServerLoginUr...
java
protected RedirectAction build(final CasClient casClient, final WebContext context, final boolean renew, final boolean gateway) { val serviceUrl = casClient.computeFinalCallbackUrl(context); val casServerLoginUrl = casClient.getConfiguration().getLoginUrl(); val redirectionUrl = casServerLoginUr...
[ "protected", "RedirectAction", "build", "(", "final", "CasClient", "casClient", ",", "final", "WebContext", "context", ",", "final", "boolean", "renew", ",", "final", "boolean", "gateway", ")", "{", "val", "serviceUrl", "=", "casClient", ".", "computeFinalCallback...
Build with predefined renew and gateway parameters. @param casClient the cas client config @param context the context @param renew ask for credentials again @param gateway skip asking for credentials @return the redirect action
[ "Build", "with", "predefined", "renew", "and", "gateway", "parameters", "." ]
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/OAuth20DefaultCasClientRedirectActionBuilder.java#L38-L47
126,529
apereo/cas
core/cas-server-core-events-configuration-cloud-bus/src/main/java/org/apereo/cas/support/events/listener/CasCloudBusConfigurationEventListener.java
CasCloudBusConfigurationEventListener.handleRefreshEvent
@EventListener public void handleRefreshEvent(final RefreshRemoteApplicationEvent event) { LOGGER.trace("Received event [{}]", event); configurationPropertiesEnvironmentManager.rebindCasConfigurationProperties(this.applicationContext); }
java
@EventListener public void handleRefreshEvent(final RefreshRemoteApplicationEvent event) { LOGGER.trace("Received event [{}]", event); configurationPropertiesEnvironmentManager.rebindCasConfigurationProperties(this.applicationContext); }
[ "@", "EventListener", "public", "void", "handleRefreshEvent", "(", "final", "RefreshRemoteApplicationEvent", "event", ")", "{", "LOGGER", ".", "trace", "(", "\"Received event [{}]\"", ",", "event", ")", ";", "configurationPropertiesEnvironmentManager", ".", "rebindCasConf...
Handle refresh event when issued by the cloud bus. @param event the event
[ "Handle", "refresh", "event", "when", "issued", "by", "the", "cloud", "bus", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-events-configuration-cloud-bus/src/main/java/org/apereo/cas/support/events/listener/CasCloudBusConfigurationEventListener.java#L28-L32
126,530
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/assertion/SamlProfileSamlAssertionBuilder.java
SamlProfileSamlAssertionBuilder.signAssertion
protected void signAssertion(final Assertion assertion, final HttpServletRequest request, final HttpServletResponse response, final SamlRegisteredService service, final SamlRegisteredServi...
java
protected void signAssertion(final Assertion assertion, final HttpServletRequest request, final HttpServletResponse response, final SamlRegisteredService service, final SamlRegisteredServi...
[ "protected", "void", "signAssertion", "(", "final", "Assertion", "assertion", ",", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ",", "final", "SamlRegisteredService", "service", ",", "final", "SamlRegisteredServiceServiceProvide...
Sign assertion. @param assertion the assertion @param request the request @param response the response @param service the service @param adaptor the adaptor @param binding the binding @param authnRequest the authn request @throws SamlException the saml exception
[ "Sign", "assertion", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/assertion/SamlProfileSamlAssertionBuilder.java#L117-L131
126,531
apereo/cas
core/cas-server-core-logging-api/src/main/java/org/apereo/cas/logging/LoggingUtils.java
LoggingUtils.prepareLogEvent
public static LogEvent prepareLogEvent(final LogEvent logEvent) { val messageModified = TicketIdSanitizationUtils.sanitize(logEvent.getMessage().getFormattedMessage()); val message = new SimpleMessage(messageModified); val newLogEventBuilder = Log4jLogEvent.newBuilder() .setLevel(log...
java
public static LogEvent prepareLogEvent(final LogEvent logEvent) { val messageModified = TicketIdSanitizationUtils.sanitize(logEvent.getMessage().getFormattedMessage()); val message = new SimpleMessage(messageModified); val newLogEventBuilder = Log4jLogEvent.newBuilder() .setLevel(log...
[ "public", "static", "LogEvent", "prepareLogEvent", "(", "final", "LogEvent", "logEvent", ")", "{", "val", "messageModified", "=", "TicketIdSanitizationUtils", ".", "sanitize", "(", "logEvent", ".", "getMessage", "(", ")", ".", "getFormattedMessage", "(", ")", ")",...
Prepare log event log event. @param logEvent the log event @return the log event
[ "Prepare", "log", "event", "log", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logging-api/src/main/java/org/apereo/cas/logging/LoggingUtils.java#L28-L53
126,532
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/AsciiArtUtils.java
AsciiArtUtils.printAsciiArtInfo
@SneakyThrows public static void printAsciiArtInfo(final Logger out, final String asciiArt, final String additional) { out.info(ANSI_CYAN); out.info("\n\n".concat(FigletFont.convertOneLine(asciiArt)).concat(additional)); out.info(ANSI_RESET); }
java
@SneakyThrows public static void printAsciiArtInfo(final Logger out, final String asciiArt, final String additional) { out.info(ANSI_CYAN); out.info("\n\n".concat(FigletFont.convertOneLine(asciiArt)).concat(additional)); out.info(ANSI_RESET); }
[ "@", "SneakyThrows", "public", "static", "void", "printAsciiArtInfo", "(", "final", "Logger", "out", ",", "final", "String", "asciiArt", ",", "final", "String", "additional", ")", "{", "out", ".", "info", "(", "ANSI_CYAN", ")", ";", "out", ".", "info", "("...
Print ascii art info. @param out the out @param asciiArt the ascii art @param additional the additional
[ "Print", "ascii", "art", "info", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/AsciiArtUtils.java#L72-L77
126,533
apereo/cas
core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java
CookieUtils.getTicketGrantingTicketFromRequest
public static TicketGrantingTicket getTicketGrantingTicketFromRequest(final CasCookieBuilder ticketGrantingTicketCookieGenerator, final TicketRegistry ticketRegistry, final HttpServletRequest request) { val cookieValue = ticketGrantingTic...
java
public static TicketGrantingTicket getTicketGrantingTicketFromRequest(final CasCookieBuilder ticketGrantingTicketCookieGenerator, final TicketRegistry ticketRegistry, final HttpServletRequest request) { val cookieValue = ticketGrantingTic...
[ "public", "static", "TicketGrantingTicket", "getTicketGrantingTicketFromRequest", "(", "final", "CasCookieBuilder", "ticketGrantingTicketCookieGenerator", ",", "final", "TicketRegistry", "ticketRegistry", ",", "final", "HttpServletRequest", "request", ")", "{", "val", "cookieVa...
Gets ticket granting ticket from request. @param ticketGrantingTicketCookieGenerator the ticket granting ticket cookie generator @param ticketRegistry the ticket registry @param request the request @return the ticket granting ticket from request
[ "Gets", "ticket", "granting", "ticket", "from", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java#L37-L47
126,534
apereo/cas
core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java
CookieUtils.getCookieFromRequest
public static Optional<Cookie> getCookieFromRequest(final String cookieName, final HttpServletRequest request) { val cookies = request.getCookies(); if (cookies == null) { return Optional.empty(); } return Arrays.stream(cookies).filter(c -> c.getName().equalsIgnoreCase(cookie...
java
public static Optional<Cookie> getCookieFromRequest(final String cookieName, final HttpServletRequest request) { val cookies = request.getCookies(); if (cookies == null) { return Optional.empty(); } return Arrays.stream(cookies).filter(c -> c.getName().equalsIgnoreCase(cookie...
[ "public", "static", "Optional", "<", "Cookie", ">", "getCookieFromRequest", "(", "final", "String", "cookieName", ",", "final", "HttpServletRequest", "request", ")", "{", "val", "cookies", "=", "request", ".", "getCookies", "(", ")", ";", "if", "(", "cookies",...
Gets cookie from request. @param cookieName the cookie name @param request the request @return the cookie from request
[ "Gets", "cookie", "from", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java#L56-L62
126,535
apereo/cas
core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java
CookieUtils.buildCookieGenerationContext
public static CookieGenerationContext buildCookieGenerationContext(final TicketGrantingCookieProperties cookie) { val rememberMeMaxAge = (int) Beans.newDuration(cookie.getRememberMeMaxAge()).getSeconds(); val builder = buildCookieGenerationContextBuilder(cookie); return builder.rememberMeMaxAge(...
java
public static CookieGenerationContext buildCookieGenerationContext(final TicketGrantingCookieProperties cookie) { val rememberMeMaxAge = (int) Beans.newDuration(cookie.getRememberMeMaxAge()).getSeconds(); val builder = buildCookieGenerationContextBuilder(cookie); return builder.rememberMeMaxAge(...
[ "public", "static", "CookieGenerationContext", "buildCookieGenerationContext", "(", "final", "TicketGrantingCookieProperties", "cookie", ")", "{", "val", "rememberMeMaxAge", "=", "(", "int", ")", "Beans", ".", "newDuration", "(", "cookie", ".", "getRememberMeMaxAge", "(...
Build cookie generation context cookie. @param cookie the cookie @return the cookie generation context
[ "Build", "cookie", "generation", "context", "cookie", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-cookie-api/src/main/java/org/apereo/cas/web/support/CookieUtils.java#L80-L84
126,536
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationResultBuilder.java
DefaultAuthenticationResultBuilder.getPrimaryPrincipal
private static Principal getPrimaryPrincipal(final PrincipalElectionStrategy principalElectionStrategy, final Set<Authentication> authentications, final Map<String, List<Object>> principalAttributes) { return princ...
java
private static Principal getPrimaryPrincipal(final PrincipalElectionStrategy principalElectionStrategy, final Set<Authentication> authentications, final Map<String, List<Object>> principalAttributes) { return princ...
[ "private", "static", "Principal", "getPrimaryPrincipal", "(", "final", "PrincipalElectionStrategy", "principalElectionStrategy", ",", "final", "Set", "<", "Authentication", ">", "authentications", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ...
Principal id is and must be enforced to be the same for all authentications. Based on that restriction, it's safe to simply grab the first principal id in the chain when composing the authentication chain for the caller.
[ "Principal", "id", "is", "and", "must", "be", "enforced", "to", "be", "the", "same", "for", "all", "authentications", ".", "Based", "on", "that", "restriction", "it", "s", "safe", "to", "simply", "grab", "the", "first", "principal", "id", "in", "the", "c...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationResultBuilder.java#L144-L148
126,537
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.addAuthenticationMethodAttribute
protected void addAuthenticationMethodAttribute(final AuthenticationBuilder builder, final Authentication authentication) { authentication.getSuccesses().values().forEach(result -> builder.addAttribute(AUTHENTICATION_METHOD_ATTRIBUTE, result.getHandlerName()))...
java
protected void addAuthenticationMethodAttribute(final AuthenticationBuilder builder, final Authentication authentication) { authentication.getSuccesses().values().forEach(result -> builder.addAttribute(AUTHENTICATION_METHOD_ATTRIBUTE, result.getHandlerName()))...
[ "protected", "void", "addAuthenticationMethodAttribute", "(", "final", "AuthenticationBuilder", "builder", ",", "final", "Authentication", "authentication", ")", "{", "authentication", ".", "getSuccesses", "(", ")", ".", "values", "(", ")", ".", "forEach", "(", "res...
Add authentication method attribute. @param builder the builder @param authentication the authentication
[ "Add", "authentication", "method", "attribute", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L92-L95
126,538
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.resolvePrincipal
protected Principal resolvePrincipal(final AuthenticationHandler handler, final PrincipalResolver resolver, final Credential credential, final Principal principal) { if (resolver.supports(credential)) { try { val p = resolver.resolve(credentia...
java
protected Principal resolvePrincipal(final AuthenticationHandler handler, final PrincipalResolver resolver, final Credential credential, final Principal principal) { if (resolver.supports(credential)) { try { val p = resolver.resolve(credentia...
[ "protected", "Principal", "resolvePrincipal", "(", "final", "AuthenticationHandler", "handler", ",", "final", "PrincipalResolver", "resolver", ",", "final", "Credential", "credential", ",", "final", "Principal", "principal", ")", "{", "if", "(", "resolver", ".", "su...
Resolve principal. @param handler the handler name @param resolver the resolver @param credential the credential @param principal the current authenticated principal from a handler, if any. @return the principal
[ "Resolve", "principal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L106-L122
126,539
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.invokeAuthenticationPreProcessors
protected boolean invokeAuthenticationPreProcessors(final AuthenticationTransaction transaction) { LOGGER.trace("Invoking authentication pre processors for authentication transaction"); val pops = authenticationEventExecutionPlan.getAuthenticationPreProcessors(transaction); final Collection<Aut...
java
protected boolean invokeAuthenticationPreProcessors(final AuthenticationTransaction transaction) { LOGGER.trace("Invoking authentication pre processors for authentication transaction"); val pops = authenticationEventExecutionPlan.getAuthenticationPreProcessors(transaction); final Collection<Aut...
[ "protected", "boolean", "invokeAuthenticationPreProcessors", "(", "final", "AuthenticationTransaction", "transaction", ")", "{", "LOGGER", ".", "trace", "(", "\"Invoking authentication pre processors for authentication transaction\"", ")", ";", "val", "pops", "=", "authenticati...
Invoke authentication pre processors. @param transaction the transaction @return the boolean
[ "Invoke", "authentication", "pre", "processors", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L162-L179
126,540
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.authenticateAndResolvePrincipal
protected void authenticateAndResolvePrincipal(final AuthenticationBuilder builder, final Credential credential, final PrincipalResolver resolver, final Authentication...
java
protected void authenticateAndResolvePrincipal(final AuthenticationBuilder builder, final Credential credential, final PrincipalResolver resolver, final Authentication...
[ "protected", "void", "authenticateAndResolvePrincipal", "(", "final", "AuthenticationBuilder", "builder", ",", "final", "Credential", "credential", ",", "final", "PrincipalResolver", "resolver", ",", "final", "AuthenticationHandler", "handler", ")", "throws", "GeneralSecuri...
Authenticate and resolve principal. @param builder the builder @param credential the credential @param resolver the resolver @param handler the handler @throws GeneralSecurityException the general security exception @throws PreventedException the prevented exception
[ "Authenticate", "and", "resolve", "principal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L191-L230
126,541
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.getPrincipalResolverLinkedToHandlerIfAny
protected PrincipalResolver getPrincipalResolverLinkedToHandlerIfAny(final AuthenticationHandler handler, final AuthenticationTransaction transaction) { return this.authenticationEventExecutionPlan.getPrincipalResolverForAuthenticationTransaction(handler, transaction); }
java
protected PrincipalResolver getPrincipalResolverLinkedToHandlerIfAny(final AuthenticationHandler handler, final AuthenticationTransaction transaction) { return this.authenticationEventExecutionPlan.getPrincipalResolverForAuthenticationTransaction(handler, transaction); }
[ "protected", "PrincipalResolver", "getPrincipalResolverLinkedToHandlerIfAny", "(", "final", "AuthenticationHandler", "handler", ",", "final", "AuthenticationTransaction", "transaction", ")", "{", "return", "this", ".", "authenticationEventExecutionPlan", ".", "getPrincipalResolve...
Gets principal resolver linked to the handler if any. @param handler the handler @param transaction the transaction @return the principal resolver linked to handler if any, or null.
[ "Gets", "principal", "resolver", "linked", "to", "the", "handler", "if", "any", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L240-L242
126,542
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.authenticateInternal
protected AuthenticationBuilder authenticateInternal(final AuthenticationTransaction transaction) throws AuthenticationException { val credentials = transaction.getCredentials(); LOGGER.debug("Authentication credentials provided for this transaction are [{}]", credentials); if (credentials.isEm...
java
protected AuthenticationBuilder authenticateInternal(final AuthenticationTransaction transaction) throws AuthenticationException { val credentials = transaction.getCredentials(); LOGGER.debug("Authentication credentials provided for this transaction are [{}]", credentials); if (credentials.isEm...
[ "protected", "AuthenticationBuilder", "authenticateInternal", "(", "final", "AuthenticationTransaction", "transaction", ")", "throws", "AuthenticationException", "{", "val", "credentials", "=", "transaction", ".", "getCredentials", "(", ")", ";", "LOGGER", ".", "debug", ...
Authenticate internal authentication builder. @param transaction the transaction @return the authentication builder @throws AuthenticationException the authentication exception
[ "Authenticate", "internal", "authentication", "builder", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L273-L333
126,543
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.evaluateFinalAuthentication
protected void evaluateFinalAuthentication(final AuthenticationBuilder builder, final AuthenticationTransaction transaction, final Set<AuthenticationHandler> authenticationHandlers) throws AuthenticationException { if ...
java
protected void evaluateFinalAuthentication(final AuthenticationBuilder builder, final AuthenticationTransaction transaction, final Set<AuthenticationHandler> authenticationHandlers) throws AuthenticationException { if ...
[ "protected", "void", "evaluateFinalAuthentication", "(", "final", "AuthenticationBuilder", "builder", ",", "final", "AuthenticationTransaction", "transaction", ",", "final", "Set", "<", "AuthenticationHandler", ">", "authenticationHandlers", ")", "throws", "AuthenticationExce...
Evaluate produced authentication context. We apply an implicit security policy of at least one successful authentication. Then, we apply the configured security policy. @param builder the builder @param transaction the transaction @param authenticationHandlers the authentication handlers @thr...
[ "Evaluate", "produced", "authentication", "context", ".", "We", "apply", "an", "implicit", "security", "policy", "of", "at", "least", "one", "successful", "authentication", ".", "Then", "we", "apply", "the", "configured", "security", "policy", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L345-L360
126,544
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.evaluateAuthenticationPolicies
protected Pair<Boolean, Set<Throwable>> evaluateAuthenticationPolicies(final Authentication authentication, final AuthenticationTransaction transaction, final Set<Authent...
java
protected Pair<Boolean, Set<Throwable>> evaluateAuthenticationPolicies(final Authentication authentication, final AuthenticationTransaction transaction, final Set<Authent...
[ "protected", "Pair", "<", "Boolean", ",", "Set", "<", "Throwable", ">", ">", "evaluateAuthenticationPolicies", "(", "final", "Authentication", "authentication", ",", "final", "AuthenticationTransaction", "transaction", ",", "final", "Set", "<", "AuthenticationHandler", ...
Evaluate authentication policies. @param authentication the authentication @param transaction the transaction @param authenticationHandlers the authentication handlers @return true /false
[ "Evaluate", "authentication", "policies", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L370-L397
126,545
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java
PolicyBasedAuthenticationManager.handleAuthenticationException
protected void handleAuthenticationException(final Throwable ex, final String name, final AuthenticationBuilder builder) { var e = ex; if (ex instanceof UndeclaredThrowableException) { e = ((UndeclaredThrowableException) ex).getUndeclaredThrowable(); } LOGGER.trace(e.getMess...
java
protected void handleAuthenticationException(final Throwable ex, final String name, final AuthenticationBuilder builder) { var e = ex; if (ex instanceof UndeclaredThrowableException) { e = ((UndeclaredThrowableException) ex).getUndeclaredThrowable(); } LOGGER.trace(e.getMess...
[ "protected", "void", "handleAuthenticationException", "(", "final", "Throwable", "ex", ",", "final", "String", "name", ",", "final", "AuthenticationBuilder", "builder", ")", "{", "var", "e", "=", "ex", ";", "if", "(", "ex", "instanceof", "UndeclaredThrowableExcept...
Handle authentication exception. @param ex the exception @param name the name @param builder the builder
[ "Handle", "authentication", "exception", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java#L406-L425
126,546
apereo/cas
support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/SamlIdPMetadataCouchDbRepository.java
SamlIdPMetadataCouchDbRepository.getOne
public CouchDbSamlIdPMetadataDocument getOne() { val view = createQuery("all").limit(1); return db.queryView(view, CouchDbSamlIdPMetadataDocument.class).stream().findFirst().orElse(null); }
java
public CouchDbSamlIdPMetadataDocument getOne() { val view = createQuery("all").limit(1); return db.queryView(view, CouchDbSamlIdPMetadataDocument.class).stream().findFirst().orElse(null); }
[ "public", "CouchDbSamlIdPMetadataDocument", "getOne", "(", ")", "{", "val", "view", "=", "createQuery", "(", "\"all\"", ")", ".", "limit", "(", "1", ")", ";", "return", "db", ".", "queryView", "(", "view", ",", "CouchDbSamlIdPMetadataDocument", ".", "class", ...
Get one SAML metadata document. @return first found SAML metatdata doc
[ "Get", "one", "SAML", "metadata", "document", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/SamlIdPMetadataCouchDbRepository.java#L24-L27
126,547
apereo/cas
support/cas-server-support-shibboleth/src/main/java/org/apereo/cas/support/saml/ShibbolethIdPEntityIdAuthenticationServiceSelectionStrategy.java
ShibbolethIdPEntityIdAuthenticationServiceSelectionStrategy.resolveServiceFrom
@Override public Service resolveServiceFrom(final Service service) { val result = getEntityIdAsParameter(service); if (result.isPresent()) { val entityId = result.get(); LOGGER.debug("Located entity id [{}] from service authentication request at [{}]", entityId, service.getId...
java
@Override public Service resolveServiceFrom(final Service service) { val result = getEntityIdAsParameter(service); if (result.isPresent()) { val entityId = result.get(); LOGGER.debug("Located entity id [{}] from service authentication request at [{}]", entityId, service.getId...
[ "@", "Override", "public", "Service", "resolveServiceFrom", "(", "final", "Service", "service", ")", "{", "val", "result", "=", "getEntityIdAsParameter", "(", "service", ")", ";", "if", "(", "result", ".", "isPresent", "(", ")", ")", "{", "val", "entityId", ...
Method attempts to resolve the service from the entityId parameter. If present, an attempt is made to find a service corresponding to the entityId in the Service Registry. If a service is not resolved from a passed entity id, the service= parameter of the request will be returned instead. This is usually the callbac...
[ "Method", "attempts", "to", "resolve", "the", "service", "from", "the", "entityId", "parameter", ".", "If", "present", "an", "attempt", "is", "made", "to", "find", "a", "service", "corresponding", "to", "the", "entityId", "in", "the", "Service", "Registry", ...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shibboleth/src/main/java/org/apereo/cas/support/saml/ShibbolethIdPEntityIdAuthenticationServiceSelectionStrategy.java#L91-L104
126,548
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/encoder/BaseHttpServletAwareSamlObjectEncoder.java
BaseHttpServletAwareSamlObjectEncoder.getEncoderMessageContext
protected MessageContext getEncoderMessageContext(final RequestAbstractType request, final T samlObject, final String relayState) { val ctx = new MessageContext<SAMLObject>(); ctx.setMessage(samlObject); SAMLBindingSupport.setRelayState(ctx, relayState); SamlIdPUtils.preparePeerEntitySam...
java
protected MessageContext getEncoderMessageContext(final RequestAbstractType request, final T samlObject, final String relayState) { val ctx = new MessageContext<SAMLObject>(); ctx.setMessage(samlObject); SAMLBindingSupport.setRelayState(ctx, relayState); SamlIdPUtils.preparePeerEntitySam...
[ "protected", "MessageContext", "getEncoderMessageContext", "(", "final", "RequestAbstractType", "request", ",", "final", "T", "samlObject", ",", "final", "String", "relayState", ")", "{", "val", "ctx", "=", "new", "MessageContext", "<", "SAMLObject", ">", "(", ")"...
Build encoder message context. @param request the authn request @param samlObject the saml response @param relayState the relay state @return the message context
[ "Build", "encoder", "message", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/encoder/BaseHttpServletAwareSamlObjectEncoder.java#L78-L86
126,549
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/encoder/BaseHttpServletAwareSamlObjectEncoder.java
BaseHttpServletAwareSamlObjectEncoder.finalizeEncode
protected void finalizeEncode(final RequestAbstractType authnRequest, final BaseSAML2MessageEncoder encoder, final T samlResponse, final String relayState) throws Exception { encoder.initialize(); encod...
java
protected void finalizeEncode(final RequestAbstractType authnRequest, final BaseSAML2MessageEncoder encoder, final T samlResponse, final String relayState) throws Exception { encoder.initialize(); encod...
[ "protected", "void", "finalizeEncode", "(", "final", "RequestAbstractType", "authnRequest", ",", "final", "BaseSAML2MessageEncoder", "encoder", ",", "final", "T", "samlResponse", ",", "final", "String", "relayState", ")", "throws", "Exception", "{", "encoder", ".", ...
Finalize encode response. @param authnRequest the authn request @param encoder the encoder @param samlResponse the saml response @param relayState the relay stateSurrogateAuthenticationPostProcessor.java @throws Exception the saml exception
[ "Finalize", "encode", "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/builders/enc/encoder/BaseHttpServletAwareSamlObjectEncoder.java#L97-L103
126,550
apereo/cas
support/cas-server-support-saml-sp-integrations/src/main/java/org/apereo/cas/util/SamlSPUtils.java
SamlSPUtils.newSamlServiceProviderService
@SneakyThrows public static SamlRegisteredService newSamlServiceProviderService(final AbstractSamlSPProperties sp, final SamlRegisteredServiceCachingMetadataResolver resolver) { if (StringUtils.isBlank(sp.getMetadata())) { LOG...
java
@SneakyThrows public static SamlRegisteredService newSamlServiceProviderService(final AbstractSamlSPProperties sp, final SamlRegisteredServiceCachingMetadataResolver resolver) { if (StringUtils.isBlank(sp.getMetadata())) { LOG...
[ "@", "SneakyThrows", "public", "static", "SamlRegisteredService", "newSamlServiceProviderService", "(", "final", "AbstractSamlSPProperties", "sp", ",", "final", "SamlRegisteredServiceCachingMetadataResolver", "resolver", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "...
New saml service provider registration. @param sp the properties @param resolver the resolver @return the saml registered service
[ "New", "saml", "service", "provider", "registration", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-sp-integrations/src/main/java/org/apereo/cas/util/SamlSPUtils.java#L51-L103
126,551
apereo/cas
support/cas-server-support-saml-sp-integrations/src/main/java/org/apereo/cas/util/SamlSPUtils.java
SamlSPUtils.saveService
public static void saveService(final RegisteredService service, final ServicesManager servicesManager) { servicesManager.load(); if (servicesManager.findServiceBy(registeredService -> registeredService instanceof SamlRegisteredService && registeredService.getServiceId().equals(service.getSe...
java
public static void saveService(final RegisteredService service, final ServicesManager servicesManager) { servicesManager.load(); if (servicesManager.findServiceBy(registeredService -> registeredService instanceof SamlRegisteredService && registeredService.getServiceId().equals(service.getSe...
[ "public", "static", "void", "saveService", "(", "final", "RegisteredService", "service", ",", "final", "ServicesManager", "servicesManager", ")", "{", "servicesManager", ".", "load", "(", ")", ";", "if", "(", "servicesManager", ".", "findServiceBy", "(", "register...
Save service only if it's not already found in the registry. @param service the service @param servicesManager the services manager
[ "Save", "service", "only", "if", "it", "s", "not", "already", "found", "in", "the", "registry", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-sp-integrations/src/main/java/org/apereo/cas/util/SamlSPUtils.java#L146-L157
126,552
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createStateDefaultTransition
public void createStateDefaultTransition(final TransitionableState state, final String targetState) { if (state == null) { LOGGER.trace("Cannot add default transition of [{}] to the given state is null and cannot be found in the flow.", targetState); return; } val transit...
java
public void createStateDefaultTransition(final TransitionableState state, final String targetState) { if (state == null) { LOGGER.trace("Cannot add default transition of [{}] to the given state is null and cannot be found in the flow.", targetState); return; } val transit...
[ "public", "void", "createStateDefaultTransition", "(", "final", "TransitionableState", "state", ",", "final", "String", "targetState", ")", "{", "if", "(", "state", "==", "null", ")", "{", "LOGGER", ".", "trace", "(", "\"Cannot add default transition of [{}] to the gi...
Add a default transition to a given state. @param state the state to include the default transition @param targetState the id of the destination state to which the flow should transfer
[ "Add", "a", "default", "transition", "to", "a", "given", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L268-L275
126,553
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createTransitionForState
public Transition createTransitionForState(final TransitionableState state, final String criteriaOutcome, final String targetState) { return createTransitionForState(state, criteriaOutcome, targetState, false); }
java
public Transition createTransitionForState(final TransitionableState state, final String criteriaOutcome, final String targetState) { return createTransitionForState(state, criteriaOutcome, targetState, false); }
[ "public", "Transition", "createTransitionForState", "(", "final", "TransitionableState", "state", ",", "final", "String", "criteriaOutcome", ",", "final", "String", "targetState", ")", "{", "return", "createTransitionForState", "(", "state", ",", "criteriaOutcome", ",",...
Create transition for state transition. @param state the state @param criteriaOutcome the criteria outcome @param targetState the target state @return the transition
[ "Create", "transition", "for", "state", "transition", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L295-L297
126,554
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createTransitionForState
public Transition createTransitionForState(final TransitionableState state, final String criteriaOutcome, final String targetState, final boolean removeExisting) { try { if (removeExisting) { val success = (Transition) state.getTransition(criteriaOutcome); if (success...
java
public Transition createTransitionForState(final TransitionableState state, final String criteriaOutcome, final String targetState, final boolean removeExisting) { try { if (removeExisting) { val success = (Transition) state.getTransition(criteriaOutcome); if (success...
[ "public", "Transition", "createTransitionForState", "(", "final", "TransitionableState", "state", ",", "final", "String", "criteriaOutcome", ",", "final", "String", "targetState", ",", "final", "boolean", "removeExisting", ")", "{", "try", "{", "if", "(", "removeExi...
Add transition to action state. @param state the action state @param criteriaOutcome the criteria outcome @param targetState the target state @param removeExisting the remove existing @return the transition
[ "Add", "transition", "to", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L308-L324
126,555
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createExpression
public Expression createExpression(final String expression, final Class expectedType) { val parserContext = new FluentParserContext().expectResult(expectedType); return getSpringExpressionParser().parseExpression(expression, parserContext); }
java
public Expression createExpression(final String expression, final Class expectedType) { val parserContext = new FluentParserContext().expectResult(expectedType); return getSpringExpressionParser().parseExpression(expression, parserContext); }
[ "public", "Expression", "createExpression", "(", "final", "String", "expression", ",", "final", "Class", "expectedType", ")", "{", "val", "parserContext", "=", "new", "FluentParserContext", "(", ")", ".", "expectResult", "(", "expectedType", ")", ";", "return", ...
Create expression expression. @param expression the expression @param expectedType the expected type @return the expression
[ "Create", "expression", "expression", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L363-L366
126,556
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.getSpringExpressionParser
public SpringELExpressionParser getSpringExpressionParser() { val configuration = new SpelParserConfiguration(); val spelExpressionParser = new SpelExpressionParser(configuration); val parser = new SpringELExpressionParser(spelExpressionParser, this.flowBuilderServices.getConversionService()); ...
java
public SpringELExpressionParser getSpringExpressionParser() { val configuration = new SpelParserConfiguration(); val spelExpressionParser = new SpelExpressionParser(configuration); val parser = new SpringELExpressionParser(spelExpressionParser, this.flowBuilderServices.getConversionService()); ...
[ "public", "SpringELExpressionParser", "getSpringExpressionParser", "(", ")", "{", "val", "configuration", "=", "new", "SpelParserConfiguration", "(", ")", ";", "val", "spelExpressionParser", "=", "new", "SpelExpressionParser", "(", "configuration", ")", ";", "val", "p...
Gets spring expression parser. @return the spring expression parser
[ "Gets", "spring", "expression", "parser", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L383-L399
126,557
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createMapperToSubflowState
public Mapper createMapperToSubflowState(final List<DefaultMapping> mappings) { val inputMapper = new DefaultMapper(); mappings.forEach(inputMapper::addMapping); return inputMapper; }
java
public Mapper createMapperToSubflowState(final List<DefaultMapping> mappings) { val inputMapper = new DefaultMapper(); mappings.forEach(inputMapper::addMapping); return inputMapper; }
[ "public", "Mapper", "createMapperToSubflowState", "(", "final", "List", "<", "DefaultMapping", ">", "mappings", ")", "{", "val", "inputMapper", "=", "new", "DefaultMapper", "(", ")", ";", "mappings", ".", "forEach", "(", "inputMapper", "::", "addMapping", ")", ...
Create mapper to subflow state. @param mappings the mappings @return the mapper
[ "Create", "mapper", "to", "subflow", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L502-L506
126,558
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createMappingToSubflowState
public DefaultMapping createMappingToSubflowState(final String name, final String value, final boolean required, final Class type) { val parser = this.flowBuilderServices.getExpressionParser(); val source = parser.parseExpression(value, new FluentParserContext()); val target = parser.parseExpres...
java
public DefaultMapping createMappingToSubflowState(final String name, final String value, final boolean required, final Class type) { val parser = this.flowBuilderServices.getExpressionParser(); val source = parser.parseExpression(value, new FluentParserContext()); val target = parser.parseExpres...
[ "public", "DefaultMapping", "createMappingToSubflowState", "(", "final", "String", "name", ",", "final", "String", "value", ",", "final", "boolean", "required", ",", "final", "Class", "type", ")", "{", "val", "parser", "=", "this", ".", "flowBuilderServices", "....
Create mapping to subflow state. @param name the name @param value the value @param required the required @param type the type @return the default mapping
[ "Create", "mapping", "to", "subflow", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L517-L526
126,559
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.containsFlowState
public boolean containsFlowState(final Flow flow, final String stateId) { if (flow == null) { LOGGER.error("Flow is not configured correctly and cannot be null."); return false; } return flow.containsState(stateId); }
java
public boolean containsFlowState(final Flow flow, final String stateId) { if (flow == null) { LOGGER.error("Flow is not configured correctly and cannot be null."); return false; } return flow.containsState(stateId); }
[ "public", "boolean", "containsFlowState", "(", "final", "Flow", "flow", ",", "final", "String", "stateId", ")", "{", "if", "(", "flow", "==", "null", ")", "{", "LOGGER", ".", "error", "(", "\"Flow is not configured correctly and cannot be null.\"", ")", ";", "re...
Contains flow state? @param flow the flow @param stateId the state id @return true if flow contains the state.
[ "Contains", "flow", "state?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L546-L552
126,560
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.containsSubflowState
public boolean containsSubflowState(final Flow flow, final String stateId) { if (containsFlowState(flow, stateId)) { return getState(flow, stateId, SubflowState.class) != null; } return false; }
java
public boolean containsSubflowState(final Flow flow, final String stateId) { if (containsFlowState(flow, stateId)) { return getState(flow, stateId, SubflowState.class) != null; } return false; }
[ "public", "boolean", "containsSubflowState", "(", "final", "Flow", "flow", ",", "final", "String", "stateId", ")", "{", "if", "(", "containsFlowState", "(", "flow", ",", "stateId", ")", ")", "{", "return", "getState", "(", "flow", ",", "stateId", ",", "Sub...
Contains subflow state. @param flow the flow @param stateId the state id @return the boolean
[ "Contains", "subflow", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L561-L566
126,561
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.containsTransition
public boolean containsTransition(final TransitionableState state, final String transition) { if (state == null) { LOGGER.error("State is not configured correctly and cannot be null."); return false; } return state.getTransition(transition) != null; }
java
public boolean containsTransition(final TransitionableState state, final String transition) { if (state == null) { LOGGER.error("State is not configured correctly and cannot be null."); return false; } return state.getTransition(transition) != null; }
[ "public", "boolean", "containsTransition", "(", "final", "TransitionableState", "state", ",", "final", "String", "transition", ")", "{", "if", "(", "state", "==", "null", ")", "{", "LOGGER", ".", "error", "(", "\"State is not configured correctly and cannot be null.\"...
Contains transition boolean. @param state the state @param transition the transition @return the boolean
[ "Contains", "transition", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L575-L581
126,562
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createFlowVariable
public FlowVariable createFlowVariable(final Flow flow, final String id, final Class type) { val opt = Arrays.stream(flow.getVariables()).filter(v -> v.getName().equalsIgnoreCase(id)).findFirst(); if (opt.isPresent()) { return opt.get(); } val flowVar = new FlowVariable(id, n...
java
public FlowVariable createFlowVariable(final Flow flow, final String id, final Class type) { val opt = Arrays.stream(flow.getVariables()).filter(v -> v.getName().equalsIgnoreCase(id)).findFirst(); if (opt.isPresent()) { return opt.get(); } val flowVar = new FlowVariable(id, n...
[ "public", "FlowVariable", "createFlowVariable", "(", "final", "Flow", "flow", ",", "final", "String", "id", ",", "final", "Class", "type", ")", "{", "val", "opt", "=", "Arrays", ".", "stream", "(", "flow", ".", "getVariables", "(", ")", ")", ".", "filter...
Create flow variable flow variable. @param flow the flow @param id the id @param type the type @return the flow variable
[ "Create", "flow", "variable", "flow", "variable", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L591-L599
126,563
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createStateBinderConfiguration
public BinderConfiguration createStateBinderConfiguration(final List<String> properties) { val binder = new BinderConfiguration(); properties.forEach(p -> binder.addBinding(new BinderConfiguration.Binding(p, null, true))); return binder; }
java
public BinderConfiguration createStateBinderConfiguration(final List<String> properties) { val binder = new BinderConfiguration(); properties.forEach(p -> binder.addBinding(new BinderConfiguration.Binding(p, null, true))); return binder; }
[ "public", "BinderConfiguration", "createStateBinderConfiguration", "(", "final", "List", "<", "String", ">", "properties", ")", "{", "val", "binder", "=", "new", "BinderConfiguration", "(", ")", ";", "properties", ".", "forEach", "(", "p", "->", "binder", ".", ...
Create state model bindings. @param properties the properties @return the binder configuration
[ "Create", "state", "model", "bindings", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L607-L611
126,564
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createStateModelBinding
public void createStateModelBinding(final TransitionableState state, final String modelName, final Class modelType) { state.getAttributes().put("model", createExpression(modelName, modelType)); }
java
public void createStateModelBinding(final TransitionableState state, final String modelName, final Class modelType) { state.getAttributes().put("model", createExpression(modelName, modelType)); }
[ "public", "void", "createStateModelBinding", "(", "final", "TransitionableState", "state", ",", "final", "String", "modelName", ",", "final", "Class", "modelType", ")", "{", "state", ".", "getAttributes", "(", ")", ".", "put", "(", "\"model\"", ",", "createExpre...
Create state model binding. @param state the state @param modelName the model name @param modelType the model type
[ "Create", "state", "model", "binding", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L620-L622
126,565
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.getViewStateBinderConfiguration
public BinderConfiguration getViewStateBinderConfiguration(final ViewState state) { val field = ReflectionUtils.findField(state.getViewFactory().getClass(), "binderConfiguration"); ReflectionUtils.makeAccessible(field); return (BinderConfiguration) ReflectionUtils.getField(field, state.getViewFa...
java
public BinderConfiguration getViewStateBinderConfiguration(final ViewState state) { val field = ReflectionUtils.findField(state.getViewFactory().getClass(), "binderConfiguration"); ReflectionUtils.makeAccessible(field); return (BinderConfiguration) ReflectionUtils.getField(field, state.getViewFa...
[ "public", "BinderConfiguration", "getViewStateBinderConfiguration", "(", "final", "ViewState", "state", ")", "{", "val", "field", "=", "ReflectionUtils", ".", "findField", "(", "state", ".", "getViewFactory", "(", ")", ".", "getClass", "(", ")", ",", "\"binderConf...
Gets state binder configuration. @param state the state @return the state binder configuration
[ "Gets", "state", "binder", "configuration", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L630-L634
126,566
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.cloneActionState
public void cloneActionState(final ActionState source, final ActionState target) { source.getActionList().forEach(a -> target.getActionList().add(a)); source.getExitActionList().forEach(a -> target.getExitActionList().add(a)); source.getAttributes().asMap().forEach((k, v) -> target.getAttributes...
java
public void cloneActionState(final ActionState source, final ActionState target) { source.getActionList().forEach(a -> target.getActionList().add(a)); source.getExitActionList().forEach(a -> target.getExitActionList().add(a)); source.getAttributes().asMap().forEach((k, v) -> target.getAttributes...
[ "public", "void", "cloneActionState", "(", "final", "ActionState", "source", ",", "final", "ActionState", "target", ")", "{", "source", ".", "getActionList", "(", ")", ".", "forEach", "(", "a", "->", "target", ".", "getActionList", "(", ")", ".", "add", "(...
Clone action state. @param source the source @param target the target
[ "Clone", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L642-L653
126,567
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.getTransitionExecutionCriteriaChainForTransition
public List<TransitionCriteria> getTransitionExecutionCriteriaChainForTransition(final Transition def) { if (def.getExecutionCriteria() instanceof TransitionCriteriaChain) { val chain = (TransitionCriteriaChain) def.getExecutionCriteria(); val field = ReflectionUtils.findField(chain.getC...
java
public List<TransitionCriteria> getTransitionExecutionCriteriaChainForTransition(final Transition def) { if (def.getExecutionCriteria() instanceof TransitionCriteriaChain) { val chain = (TransitionCriteriaChain) def.getExecutionCriteria(); val field = ReflectionUtils.findField(chain.getC...
[ "public", "List", "<", "TransitionCriteria", ">", "getTransitionExecutionCriteriaChainForTransition", "(", "final", "Transition", "def", ")", "{", "if", "(", "def", ".", "getExecutionCriteria", "(", ")", "instanceof", "TransitionCriteriaChain", ")", "{", "val", "chain...
Gets transition execution criteria chain for transition. @param def the def @return the transition execution criteria chain for transition
[ "Gets", "transition", "execution", "criteria", "chain", "for", "transition", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L661-L672
126,568
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.getExpressionStringFromAction
public Expression getExpressionStringFromAction(final EvaluateAction act) { val field = ReflectionUtils.findField(act.getClass(), "expression"); ReflectionUtils.makeAccessible(field); return (Expression) ReflectionUtils.getField(field, act); }
java
public Expression getExpressionStringFromAction(final EvaluateAction act) { val field = ReflectionUtils.findField(act.getClass(), "expression"); ReflectionUtils.makeAccessible(field); return (Expression) ReflectionUtils.getField(field, act); }
[ "public", "Expression", "getExpressionStringFromAction", "(", "final", "EvaluateAction", "act", ")", "{", "val", "field", "=", "ReflectionUtils", ".", "findField", "(", "act", ".", "getClass", "(", ")", ",", "\"expression\"", ")", ";", "ReflectionUtils", ".", "m...
Gets expression string from action. @param act the act @return the expression string from action
[ "Gets", "expression", "string", "from", "action", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L680-L684
126,569
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createEvaluateActionForExistingActionState
public Action createEvaluateActionForExistingActionState(final Flow flow, final String actionStateId, final String evaluateActionId) { val action = getState(flow, actionStateId, ActionState.class); val actions = action.getActionList().toArray(); Arrays.stream(actions).forEach(action.getActionLis...
java
public Action createEvaluateActionForExistingActionState(final Flow flow, final String actionStateId, final String evaluateActionId) { val action = getState(flow, actionStateId, ActionState.class); val actions = action.getActionList().toArray(); Arrays.stream(actions).forEach(action.getActionLis...
[ "public", "Action", "createEvaluateActionForExistingActionState", "(", "final", "Flow", "flow", ",", "final", "String", "actionStateId", ",", "final", "String", "evaluateActionId", ")", "{", "val", "action", "=", "getState", "(", "flow", ",", "actionStateId", ",", ...
Create evaluate action for action state action. @param flow the flow @param actionStateId the action state id @param evaluateActionId the evaluate action id @return the action
[ "Create", "evaluate", "action", "for", "action", "state", "action", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L694-L702
126,570
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createClonedActionState
public void createClonedActionState(final Flow flow, final String actionStateId, final String actionStateIdToClone) { val generateServiceTicket = getState(flow, actionStateIdToClone, ActionState.class); val consentTicketAction = createActionState(flow, actionStateId); cloneActionState(generateSe...
java
public void createClonedActionState(final Flow flow, final String actionStateId, final String actionStateIdToClone) { val generateServiceTicket = getState(flow, actionStateIdToClone, ActionState.class); val consentTicketAction = createActionState(flow, actionStateId); cloneActionState(generateSe...
[ "public", "void", "createClonedActionState", "(", "final", "Flow", "flow", ",", "final", "String", "actionStateId", ",", "final", "String", "actionStateIdToClone", ")", "{", "val", "generateServiceTicket", "=", "getState", "(", "flow", ",", "actionStateIdToClone", "...
Clone and create action state. @param flow the flow @param actionStateId the action state id @param actionStateIdToClone the action state id to clone
[ "Clone", "and", "create", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L711-L715
126,571
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.getTransitionableState
public TransitionableState getTransitionableState(final Flow flow, final String stateId) { if (containsFlowState(flow, stateId)) { return (TransitionableState) flow.getTransitionableState(stateId); } return null; }
java
public TransitionableState getTransitionableState(final Flow flow, final String stateId) { if (containsFlowState(flow, stateId)) { return (TransitionableState) flow.getTransitionableState(stateId); } return null; }
[ "public", "TransitionableState", "getTransitionableState", "(", "final", "Flow", "flow", ",", "final", "String", "stateId", ")", "{", "if", "(", "containsFlowState", "(", "flow", ",", "stateId", ")", ")", "{", "return", "(", "TransitionableState", ")", "flow", ...
Gets transitionable state. @param flow the flow @param stateId the state id @return the transitionable state
[ "Gets", "transitionable", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L769-L774
126,572
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.createTransitionsForState
public void createTransitionsForState(final Flow flow, final String stateId, final Map<String, String> criteriaAndTargets) { if (containsFlowState(flow, stateId)) { val state = getState(flow, stateId); criteriaAndTargets.forEach((k, v) -> createTransitionForState(state, k, v)); }...
java
public void createTransitionsForState(final Flow flow, final String stateId, final Map<String, String> criteriaAndTargets) { if (containsFlowState(flow, stateId)) { val state = getState(flow, stateId); criteriaAndTargets.forEach((k, v) -> createTransitionForState(state, k, v)); }...
[ "public", "void", "createTransitionsForState", "(", "final", "Flow", "flow", ",", "final", "String", "stateId", ",", "final", "Map", "<", "String", ",", "String", ">", "criteriaAndTargets", ")", "{", "if", "(", "containsFlowState", "(", "flow", ",", "stateId",...
Create transitions for state. @param flow the flow @param stateId the state id @param criteriaAndTargets the criteria and targets
[ "Create", "transitions", "for", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L783-L788
126,573
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.appendActionsToActionStateExecutionList
public void appendActionsToActionStateExecutionList(final Flow flow, final String actionStateId, final EvaluateAction... actions) { addActionsToActionStateExecutionListAt(flow, actionStateId, Integer.MAX_VALUE, actions); }
java
public void appendActionsToActionStateExecutionList(final Flow flow, final String actionStateId, final EvaluateAction... actions) { addActionsToActionStateExecutionListAt(flow, actionStateId, Integer.MAX_VALUE, actions); }
[ "public", "void", "appendActionsToActionStateExecutionList", "(", "final", "Flow", "flow", ",", "final", "String", "actionStateId", ",", "final", "EvaluateAction", "...", "actions", ")", "{", "addActionsToActionStateExecutionListAt", "(", "flow", ",", "actionStateId", "...
Append actions to action state execution list. @param flow the flow @param actionStateId the action state id @param actions the actions
[ "Append", "actions", "to", "action", "state", "execution", "list", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L844-L846
126,574
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java
AbstractCasWebflowConfigurer.addActionsToActionStateExecutionListAt
public void addActionsToActionStateExecutionListAt(final Flow flow, final String actionStateId, final int position, final EvaluateAction... actions) { val actionState = getState(flow, actionStateId, ActionState.class); val currentActions = new ArrayList<Action>(); val actionList = actionState.ge...
java
public void addActionsToActionStateExecutionListAt(final Flow flow, final String actionStateId, final int position, final EvaluateAction... actions) { val actionState = getState(flow, actionStateId, ActionState.class); val currentActions = new ArrayList<Action>(); val actionList = actionState.ge...
[ "public", "void", "addActionsToActionStateExecutionListAt", "(", "final", "Flow", "flow", ",", "final", "String", "actionStateId", ",", "final", "int", "position", ",", "final", "EvaluateAction", "...", "actions", ")", "{", "val", "actionState", "=", "getState", "...
Add actions to action state execution list at. @param flow the flow @param actionStateId the action state id @param position the position @param actions the actions
[ "Add", "actions", "to", "action", "state", "execution", "list", "at", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java#L856-L865
126,575
apereo/cas
support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/publisher/BaseCasRegisteredServiceStreamPublisher.java
BaseCasRegisteredServiceStreamPublisher.publishInternal
protected void publishInternal(final RegisteredService service, final ApplicationEvent event) { if (event instanceof CasRegisteredServiceDeletedEvent) { handleCasRegisteredServiceDeletedEvent(service, event); return; } if (event instanceof CasRegisteredServiceSavedEvent ...
java
protected void publishInternal(final RegisteredService service, final ApplicationEvent event) { if (event instanceof CasRegisteredServiceDeletedEvent) { handleCasRegisteredServiceDeletedEvent(service, event); return; } if (event instanceof CasRegisteredServiceSavedEvent ...
[ "protected", "void", "publishInternal", "(", "final", "RegisteredService", "service", ",", "final", "ApplicationEvent", "event", ")", "{", "if", "(", "event", "instanceof", "CasRegisteredServiceDeletedEvent", ")", "{", "handleCasRegisteredServiceDeletedEvent", "(", "servi...
Publish internal. @param service the service @param event the event
[ "Publish", "internal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/publisher/BaseCasRegisteredServiceStreamPublisher.java#L44-L55
126,576
apereo/cas
core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/SelectiveMultifactorAuthenticationProviderWebflowEventEventResolver.java
SelectiveMultifactorAuthenticationProviderWebflowEventEventResolver.resolveEventsInternal
protected Set<Event> resolveEventsInternal(final Set<Event> resolveEvents, final Authentication authentication, final RegisteredService registeredService, final HttpServletRequest request, final RequestContext context) { if (!resolveEvents.isEmpty()) { ...
java
protected Set<Event> resolveEventsInternal(final Set<Event> resolveEvents, final Authentication authentication, final RegisteredService registeredService, final HttpServletRequest request, final RequestContext context) { if (!resolveEvents.isEmpty()) { ...
[ "protected", "Set", "<", "Event", ">", "resolveEventsInternal", "(", "final", "Set", "<", "Event", ">", "resolveEvents", ",", "final", "Authentication", "authentication", ",", "final", "RegisteredService", "registeredService", ",", "final", "HttpServletRequest", "requ...
Resolve events internal set. Implementation may filter events from the collection to only return the one that is appropriate for this request. The default implementation returns the entire collection. @param resolveEvents the resolve events @param authentication the authentication @param registeredService the r...
[ "Resolve", "events", "internal", "set", ".", "Implementation", "may", "filter", "events", "from", "the", "collection", "to", "only", "return", "the", "one", "that", "is", "appropriate", "for", "this", "request", ".", "The", "default", "implementation", "returns"...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/SelectiveMultifactorAuthenticationProviderWebflowEventEventResolver.java#L58-L69
126,577
apereo/cas
core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/SelectiveMultifactorAuthenticationProviderWebflowEventEventResolver.java
SelectiveMultifactorAuthenticationProviderWebflowEventEventResolver.filterEventsByMultifactorAuthenticationProvider
protected Pair<Set<Event>, Collection<MultifactorAuthenticationProvider>> filterEventsByMultifactorAuthenticationProvider( final Set<Event> resolveEvents, final Authentication authentication, final RegisteredService registeredService, final HttpServletRequest request) { LOGGER.debug("Locating mu...
java
protected Pair<Set<Event>, Collection<MultifactorAuthenticationProvider>> filterEventsByMultifactorAuthenticationProvider( final Set<Event> resolveEvents, final Authentication authentication, final RegisteredService registeredService, final HttpServletRequest request) { LOGGER.debug("Locating mu...
[ "protected", "Pair", "<", "Set", "<", "Event", ">", ",", "Collection", "<", "MultifactorAuthenticationProvider", ">", ">", "filterEventsByMultifactorAuthenticationProvider", "(", "final", "Set", "<", "Event", ">", "resolveEvents", ",", "final", "Authentication", "auth...
Filter events by multifactor authentication providers. @param resolveEvents the resolve events @param authentication the authentication @param registeredService the registered service @param request the request @return the set of events
[ "Filter", "events", "by", "multifactor", "authentication", "providers", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/SelectiveMultifactorAuthenticationProviderWebflowEventEventResolver.java#L80-L99
126,578
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/PrincipalAttributeRegisteredServiceUsernameProvider.java
PrincipalAttributeRegisteredServiceUsernameProvider.getPrincipalAttributesFromReleasePolicy
protected Map<String, List<Object>> getPrincipalAttributesFromReleasePolicy(final Principal p, final Service service, final RegisteredService registeredService) { if (registeredService != null && registeredService.getAccessStrategy().isServiceAccessAllowed()) { LOGGER.debug("Located service [{}] in ...
java
protected Map<String, List<Object>> getPrincipalAttributesFromReleasePolicy(final Principal p, final Service service, final RegisteredService registeredService) { if (registeredService != null && registeredService.getAccessStrategy().isServiceAccessAllowed()) { LOGGER.debug("Located service [{}] in ...
[ "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "getPrincipalAttributesFromReleasePolicy", "(", "final", "Principal", "p", ",", "final", "Service", "service", ",", "final", "RegisteredService", "registeredService", ")", "{", "if", "(", "...
Gets principal attributes. Will attempt to locate the principal attribute repository from the context if one is defined to use that instance to locate attributes. If none is available, will use the default principal attributes. @param p the principal @param service the service @param register...
[ "Gets", "principal", "attributes", ".", "Will", "attempt", "to", "locate", "the", "principal", "attribute", "repository", "from", "the", "context", "if", "one", "is", "defined", "to", "use", "that", "instance", "to", "locate", "attributes", ".", "If", "none", ...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/PrincipalAttributeRegisteredServiceUsernameProvider.java#L96-L107
126,579
apereo/cas
support/cas-server-support-ignite-ticket-registry/src/main/java/org/apereo/cas/config/IgniteTicketRegistryConfiguration.java
IgniteTicketRegistryConfiguration.igniteConfiguration
@Autowired @RefreshScope @Bean public IgniteConfiguration igniteConfiguration(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) { val ignite = casProperties.getTicket().getRegistry().getIgnite(); val config = new IgniteConfiguration(); val spi = new TcpDiscoverySpi(); ...
java
@Autowired @RefreshScope @Bean public IgniteConfiguration igniteConfiguration(@Qualifier("ticketCatalog") final TicketCatalog ticketCatalog) { val ignite = casProperties.getTicket().getRegistry().getIgnite(); val config = new IgniteConfiguration(); val spi = new TcpDiscoverySpi(); ...
[ "@", "Autowired", "@", "RefreshScope", "@", "Bean", "public", "IgniteConfiguration", "igniteConfiguration", "(", "@", "Qualifier", "(", "\"ticketCatalog\"", ")", "final", "TicketCatalog", "ticketCatalog", ")", "{", "val", "ignite", "=", "casProperties", ".", "getTic...
Ignite configuration ignite configuration. @param ticketCatalog the ticket catalog @return the ignite configuration
[ "Ignite", "configuration", "ignite", "configuration", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ignite-ticket-registry/src/main/java/org/apereo/cas/config/IgniteTicketRegistryConfiguration.java#L77-L129
126,580
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/PrincipalNameTransformerUtils.java
PrincipalNameTransformerUtils.newPrincipalNameTransformer
public static PrincipalNameTransformer newPrincipalNameTransformer(final PrincipalTransformationProperties p) { val chain = new ChainingPrincipalNameTransformer(); if (p.getGroovy().getLocation() != null) { val t = new GroovyPrincipalNameTransformer(p.getGroovy().getLocation()); ...
java
public static PrincipalNameTransformer newPrincipalNameTransformer(final PrincipalTransformationProperties p) { val chain = new ChainingPrincipalNameTransformer(); if (p.getGroovy().getLocation() != null) { val t = new GroovyPrincipalNameTransformer(p.getGroovy().getLocation()); ...
[ "public", "static", "PrincipalNameTransformer", "newPrincipalNameTransformer", "(", "final", "PrincipalTransformationProperties", "p", ")", "{", "val", "chain", "=", "new", "ChainingPrincipalNameTransformer", "(", ")", ";", "if", "(", "p", ".", "getGroovy", "(", ")", ...
New principal name transformer. @param p the p @return the principal name transformer
[ "New", "principal", "name", "transformer", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/PrincipalNameTransformerUtils.java#L31-L66
126,581
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java
PersonDirectoryPrincipalResolver.convertPersonAttributesToPrincipal
protected Pair<String, Map<String, List<Object>>> convertPersonAttributesToPrincipal(final String extractedPrincipalId, final Map<String, List<Object>> attributes) { val convertedAttributes = new LinkedHashMap<String, List<...
java
protected Pair<String, Map<String, List<Object>>> convertPersonAttributesToPrincipal(final String extractedPrincipalId, final Map<String, List<Object>> attributes) { val convertedAttributes = new LinkedHashMap<String, List<...
[ "protected", "Pair", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", ">", "convertPersonAttributesToPrincipal", "(", "final", "String", "extractedPrincipalId", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">...
Convert person attributes to principal pair. @param extractedPrincipalId the extracted principal id @param attributes the attributes @return the pair
[ "Convert", "person", "attributes", "to", "principal", "pair", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java#L201-L239
126,582
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java
PersonDirectoryPrincipalResolver.retrievePersonAttributes
@Synchronized protected Map<String, List<Object>> retrievePersonAttributes(final String principalId, final Credential credential) { return CoreAuthenticationUtils.retrieveAttributesFromAttributeRepository(this.attributeRepository, principalId, activeAttributeRepositoryIdentifiers); }
java
@Synchronized protected Map<String, List<Object>> retrievePersonAttributes(final String principalId, final Credential credential) { return CoreAuthenticationUtils.retrieveAttributesFromAttributeRepository(this.attributeRepository, principalId, activeAttributeRepositoryIdentifiers); }
[ "@", "Synchronized", "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "retrievePersonAttributes", "(", "final", "String", "principalId", ",", "final", "Credential", "credential", ")", "{", "return", "CoreAuthenticationUtils", ".", "retrieve...
Retrieve person attributes map. @param principalId the principal id @param credential the credential whose id we have extracted. This is passed so that implementations can extract useful bits of authN info such as attributes into the principal. @return the map
[ "Retrieve", "person", "attributes", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java#L249-L252
126,583
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java
PersonDirectoryPrincipalResolver.extractPrincipalId
protected String extractPrincipalId(final Credential credential, final Optional<Principal> currentPrincipal) { LOGGER.debug("Extracting credential id based on existing credential [{}]", credential); val id = credential.getId(); if (currentPrincipal != null && currentPrincipal.isPresent()) { ...
java
protected String extractPrincipalId(final Credential credential, final Optional<Principal> currentPrincipal) { LOGGER.debug("Extracting credential id based on existing credential [{}]", credential); val id = credential.getId(); if (currentPrincipal != null && currentPrincipal.isPresent()) { ...
[ "protected", "String", "extractPrincipalId", "(", "final", "Credential", "credential", ",", "final", "Optional", "<", "Principal", ">", "currentPrincipal", ")", "{", "LOGGER", ".", "debug", "(", "\"Extracting credential id based on existing credential [{}]\"", ",", "crede...
Extracts the id of the user from the provided credential. This method should be overridden by subclasses to achieve more sophisticated strategies for producing a principal ID from a credential. @param credential the credential provided by the user. @param currentPrincipal the current principal @return the userna...
[ "Extracts", "the", "id", "of", "the", "user", "from", "the", "provided", "credential", ".", "This", "method", "should", "be", "overridden", "by", "subclasses", "to", "achieve", "more", "sophisticated", "strategies", "for", "producing", "a", "principal", "ID", ...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/resolvers/PersonDirectoryPrincipalResolver.java#L262-L282
126,584
apereo/cas
support/cas-server-support-surrogate-api/src/main/java/org/apereo/cas/services/SurrogateRegisteredServiceAccessStrategy.java
SurrogateRegisteredServiceAccessStrategy.doPrincipalAttributesAllowSurrogateServiceAccess
protected boolean doPrincipalAttributesAllowSurrogateServiceAccess(final Map<String, Object> principalAttributes) { if (!enoughRequiredAttributesAvailableToProcess(principalAttributes, this.surrogateRequiredAttributes)) { LOGGER.debug("Surrogate access is denied. There are not enough attributes avai...
java
protected boolean doPrincipalAttributesAllowSurrogateServiceAccess(final Map<String, Object> principalAttributes) { if (!enoughRequiredAttributesAvailableToProcess(principalAttributes, this.surrogateRequiredAttributes)) { LOGGER.debug("Surrogate access is denied. There are not enough attributes avai...
[ "protected", "boolean", "doPrincipalAttributesAllowSurrogateServiceAccess", "(", "final", "Map", "<", "String", ",", "Object", ">", "principalAttributes", ")", "{", "if", "(", "!", "enoughRequiredAttributesAvailableToProcess", "(", "principalAttributes", ",", "this", ".",...
Do principal attributes allow surrogate service access?. @param principalAttributes the principal attributes @return the boolean
[ "Do", "principal", "attributes", "allow", "surrogate", "service", "access?", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-surrogate-api/src/main/java/org/apereo/cas/services/SurrogateRegisteredServiceAccessStrategy.java#L47-L59
126,585
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseTokenSigningAndEncryptionService.java
BaseTokenSigningAndEncryptionService.createJsonWebSignature
protected JsonWebSignature createJsonWebSignature(final JwtClaims claims) { val jws = new JsonWebSignature(); val jsonClaims = claims.toJson(); jws.setPayload(jsonClaims); jws.setAlgorithmHeaderValue(AlgorithmIdentifiers.NONE); jws.setAlgorithmConstraints(AlgorithmConstraints.NO_...
java
protected JsonWebSignature createJsonWebSignature(final JwtClaims claims) { val jws = new JsonWebSignature(); val jsonClaims = claims.toJson(); jws.setPayload(jsonClaims); jws.setAlgorithmHeaderValue(AlgorithmIdentifiers.NONE); jws.setAlgorithmConstraints(AlgorithmConstraints.NO_...
[ "protected", "JsonWebSignature", "createJsonWebSignature", "(", "final", "JwtClaims", "claims", ")", "{", "val", "jws", "=", "new", "JsonWebSignature", "(", ")", ";", "val", "jsonClaims", "=", "claims", ".", "toJson", "(", ")", ";", "jws", ".", "setPayload", ...
Gets json web signature. @param claims the claims @return the json web signature
[ "Gets", "json", "web", "signature", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseTokenSigningAndEncryptionService.java#L41-L48
126,586
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseTokenSigningAndEncryptionService.java
BaseTokenSigningAndEncryptionService.encryptToken
@SneakyThrows protected String encryptToken(final String encryptionAlg, final String encryptionEncoding, final String keyIdHeaderValue, final Key publicKey, final String payload) {...
java
@SneakyThrows protected String encryptToken(final String encryptionAlg, final String encryptionEncoding, final String keyIdHeaderValue, final Key publicKey, final String payload) {...
[ "@", "SneakyThrows", "protected", "String", "encryptToken", "(", "final", "String", "encryptionAlg", ",", "final", "String", "encryptionEncoding", ",", "final", "String", "keyIdHeaderValue", ",", "final", "Key", "publicKey", ",", "final", "String", "payload", ")", ...
Create json web encryption json web encryption. @param encryptionAlg the encryption alg @param encryptionEncoding the encryption encoding @param keyIdHeaderValue the key id header value @param publicKey the public key @param payload the payload @return the json web encryption
[ "Create", "json", "web", "encryption", "json", "web", "encryption", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseTokenSigningAndEncryptionService.java#L60-L74
126,587
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseTokenSigningAndEncryptionService.java
BaseTokenSigningAndEncryptionService.configureJsonWebSignatureForTokenSigning
protected JsonWebSignature configureJsonWebSignatureForTokenSigning(final OAuthRegisteredService svc, final JsonWebSignature jws, final PublicJsonWebKey jsonWebKey) { L...
java
protected JsonWebSignature configureJsonWebSignatureForTokenSigning(final OAuthRegisteredService svc, final JsonWebSignature jws, final PublicJsonWebKey jsonWebKey) { L...
[ "protected", "JsonWebSignature", "configureJsonWebSignatureForTokenSigning", "(", "final", "OAuthRegisteredService", "svc", ",", "final", "JsonWebSignature", "jws", ",", "final", "PublicJsonWebKey", "jsonWebKey", ")", "{", "LOGGER", ".", "debug", "(", "\"Service [{}] is set...
Configure json web signature for id token signing. @param svc the svc @param jws the jws @param jsonWebKey the json web key @return the json web signature
[ "Configure", "json", "web", "signature", "for", "id", "token", "signing", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/BaseTokenSigningAndEncryptionService.java#L84-L98
126,588
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/callback/OAuth20AuthorizationCodeAuthorizationResponseBuilder.java
OAuth20AuthorizationCodeAuthorizationResponseBuilder.buildCallbackViewViaRedirectUri
protected ModelAndView buildCallbackViewViaRedirectUri(final J2EContext context, final String clientId, final Authentication authentication, final OAuthCode code) { val attributes = authentication.getAttributes(); val state = attributes.get(OAut...
java
protected ModelAndView buildCallbackViewViaRedirectUri(final J2EContext context, final String clientId, final Authentication authentication, final OAuthCode code) { val attributes = authentication.getAttributes(); val state = attributes.get(OAut...
[ "protected", "ModelAndView", "buildCallbackViewViaRedirectUri", "(", "final", "J2EContext", "context", ",", "final", "String", "clientId", ",", "final", "Authentication", "authentication", ",", "final", "OAuthCode", "code", ")", "{", "val", "attributes", "=", "authent...
Build callback view via redirect uri model and view. @param context the context @param clientId the client id @param authentication the authentication @param code the code @return the model and view
[ "Build", "callback", "view", "via", "redirect", "uri", "model", "and", "view", "." ]
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/OAuth20AuthorizationCodeAuthorizationResponseBuilder.java#L68-L92
126,589
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.encodeBase64
public static String encodeBase64(final String data) { return Base64.encodeBase64String(data.getBytes(StandardCharsets.UTF_8)); }
java
public static String encodeBase64(final String data) { return Base64.encodeBase64String(data.getBytes(StandardCharsets.UTF_8)); }
[ "public", "static", "String", "encodeBase64", "(", "final", "String", "data", ")", "{", "return", "Base64", ".", "encodeBase64String", "(", "data", ".", "getBytes", "(", "StandardCharsets", ".", "UTF_8", ")", ")", ";", "}" ]
Base64-encode the given string as a string. @param data the String to encode @return the encoded string
[ "Base64", "-", "encode", "the", "given", "string", "as", "a", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L165-L167
126,590
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.urlEncode
@SneakyThrows public static String urlEncode(final String value, final String encoding) { return URLEncoder.encode(value, encoding); }
java
@SneakyThrows public static String urlEncode(final String value, final String encoding) { return URLEncoder.encode(value, encoding); }
[ "@", "SneakyThrows", "public", "static", "String", "urlEncode", "(", "final", "String", "value", ",", "final", "String", "encoding", ")", "{", "return", "URLEncoder", ".", "encode", "(", "value", ",", "encoding", ")", ";", "}" ]
Url encode a value. @param value the value to encode @param encoding the encoding @return the encoded value
[ "Url", "encode", "a", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L240-L243
126,591
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.urlDecode
@SneakyThrows public static String urlDecode(final String value) { return URLDecoder.decode(value, StandardCharsets.UTF_8.name()); }
java
@SneakyThrows public static String urlDecode(final String value) { return URLDecoder.decode(value, StandardCharsets.UTF_8.name()); }
[ "@", "SneakyThrows", "public", "static", "String", "urlDecode", "(", "final", "String", "value", ")", "{", "return", "URLDecoder", ".", "decode", "(", "value", ",", "StandardCharsets", ".", "UTF_8", ".", "name", "(", ")", ")", ";", "}" ]
Url decode a value. @param value the value to decode @return the decoded value
[ "Url", "decode", "a", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L251-L254
126,592
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.generateJsonWebKey
@SneakyThrows public static Key generateJsonWebKey(final String secret) { val keys = new HashMap<String, Object>(2); keys.put("kty", "oct"); keys.put(EncodingUtils.JSON_WEB_KEY, secret); val jwk = JsonWebKey.Factory.newJwk(keys); return jwk.getKey(); }
java
@SneakyThrows public static Key generateJsonWebKey(final String secret) { val keys = new HashMap<String, Object>(2); keys.put("kty", "oct"); keys.put(EncodingUtils.JSON_WEB_KEY, secret); val jwk = JsonWebKey.Factory.newJwk(keys); return jwk.getKey(); }
[ "@", "SneakyThrows", "public", "static", "Key", "generateJsonWebKey", "(", "final", "String", "secret", ")", "{", "val", "keys", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", "2", ")", ";", "keys", ".", "put", "(", "\"kty\"", ",", "\"o...
Prepare json web token key. @param secret the secret @return the key
[ "Prepare", "json", "web", "token", "key", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L321-L328
126,593
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.signJws
@SneakyThrows public static byte[] signJws(final Key key, final byte[] value, final String algHeaderValue) { val base64 = EncodingUtils.encodeBase64(value); val jws = new JsonWebSignature(); jws.setEncodedPayload(base64); jws.setAlgorithmHeaderValue(algHeaderValue); jws.setKe...
java
@SneakyThrows public static byte[] signJws(final Key key, final byte[] value, final String algHeaderValue) { val base64 = EncodingUtils.encodeBase64(value); val jws = new JsonWebSignature(); jws.setEncodedPayload(base64); jws.setAlgorithmHeaderValue(algHeaderValue); jws.setKe...
[ "@", "SneakyThrows", "public", "static", "byte", "[", "]", "signJws", "(", "final", "Key", "key", ",", "final", "byte", "[", "]", "value", ",", "final", "String", "algHeaderValue", ")", "{", "val", "base64", "=", "EncodingUtils", ".", "encodeBase64", "(", ...
Sign jws. @param key the key @param value the value @param algHeaderValue the alg header value @return the byte [ ]
[ "Sign", "jws", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L360-L369
126,594
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.encryptValueAsJwtDirectAes128Sha256
public static String encryptValueAsJwtDirectAes128Sha256(final Key key, final Serializable value) { return encryptValueAsJwt(key, value, KeyManagementAlgorithmIdentifiers.DIRECT, CipherExecutor.DEFAULT_CONTENT_ENCRYPTION_ALGORITHM); }
java
public static String encryptValueAsJwtDirectAes128Sha256(final Key key, final Serializable value) { return encryptValueAsJwt(key, value, KeyManagementAlgorithmIdentifiers.DIRECT, CipherExecutor.DEFAULT_CONTENT_ENCRYPTION_ALGORITHM); }
[ "public", "static", "String", "encryptValueAsJwtDirectAes128Sha256", "(", "final", "Key", "key", ",", "final", "Serializable", "value", ")", "{", "return", "encryptValueAsJwt", "(", "key", ",", "value", ",", "KeyManagementAlgorithmIdentifiers", ".", "DIRECT", ",", "...
Encrypt value as jwt with direct algorithm and encryption content alg aes-128-sha-256. @param key the key @param value the value @return the string
[ "Encrypt", "value", "as", "jwt", "with", "direct", "algorithm", "and", "encryption", "content", "alg", "aes", "-", "128", "-", "sha", "-", "256", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L378-L381
126,595
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.encryptValueAsJwtRsaOeap256Aes256Sha512
public static String encryptValueAsJwtRsaOeap256Aes256Sha512(final Key key, final Serializable value) { return encryptValueAsJwt(key, value, KeyManagementAlgorithmIdentifiers.RSA_OAEP_256, CipherExecutor.DEFAULT_CONTENT_ENCRYPTION_ALGORITHM); }
java
public static String encryptValueAsJwtRsaOeap256Aes256Sha512(final Key key, final Serializable value) { return encryptValueAsJwt(key, value, KeyManagementAlgorithmIdentifiers.RSA_OAEP_256, CipherExecutor.DEFAULT_CONTENT_ENCRYPTION_ALGORITHM); }
[ "public", "static", "String", "encryptValueAsJwtRsaOeap256Aes256Sha512", "(", "final", "Key", "key", ",", "final", "Serializable", "value", ")", "{", "return", "encryptValueAsJwt", "(", "key", ",", "value", ",", "KeyManagementAlgorithmIdentifiers", ".", "RSA_OAEP_256", ...
Encrypt value as jwt rsa oeap 256 aes 256 sha 512 string. @param key the key @param value the value @return the string
[ "Encrypt", "value", "as", "jwt", "rsa", "oeap", "256", "aes", "256", "sha", "512", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L390-L393
126,596
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.encryptValueAsJwt
public static String encryptValueAsJwt(final Key secretKeyEncryptionKey, final Serializable value, final String algorithmHeaderValue, final String contentEncryptionAlgorithmIdentifier) { ...
java
public static String encryptValueAsJwt(final Key secretKeyEncryptionKey, final Serializable value, final String algorithmHeaderValue, final String contentEncryptionAlgorithmIdentifier) { ...
[ "public", "static", "String", "encryptValueAsJwt", "(", "final", "Key", "secretKeyEncryptionKey", ",", "final", "Serializable", "value", ",", "final", "String", "algorithmHeaderValue", ",", "final", "String", "contentEncryptionAlgorithmIdentifier", ")", "{", "try", "{",...
Encrypt the value based on the seed array whose length was given during afterPropertiesSet, and the key and content encryption ids. @param secretKeyEncryptionKey the secret key encryption key @param value the value @param algorithmHeaderValue the algorithm h...
[ "Encrypt", "the", "value", "based", "on", "the", "seed", "array", "whose", "length", "was", "given", "during", "afterPropertiesSet", "and", "the", "key", "and", "content", "encryption", "ids", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L405-L422
126,597
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.decryptJwtValue
@SneakyThrows public static String decryptJwtValue(final Key secretKeyEncryptionKey, final String value) { val jwe = new JsonWebEncryption(); jwe.setKey(secretKeyEncryptionKey); jwe.setCompactSerialization(value); LOGGER.trace("Decrypting value..."); try { return ...
java
@SneakyThrows public static String decryptJwtValue(final Key secretKeyEncryptionKey, final String value) { val jwe = new JsonWebEncryption(); jwe.setKey(secretKeyEncryptionKey); jwe.setCompactSerialization(value); LOGGER.trace("Decrypting value..."); try { return ...
[ "@", "SneakyThrows", "public", "static", "String", "decryptJwtValue", "(", "final", "Key", "secretKeyEncryptionKey", ",", "final", "String", "value", ")", "{", "val", "jwe", "=", "new", "JsonWebEncryption", "(", ")", ";", "jwe", ".", "setKey", "(", "secretKeyE...
Decrypt value based on the key created. @param secretKeyEncryptionKey the secret key encryption key @param value the value @return the decrypted value
[ "Decrypt", "value", "based", "on", "the", "key", "created", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L431-L445
126,598
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java
EncodingUtils.isJceInstalled
public static boolean isJceInstalled() { try { val maxKeyLen = Cipher.getMaxAllowedKeyLength("AES"); return maxKeyLen == Integer.MAX_VALUE; } catch (final NoSuchAlgorithmException e) { return false; } }
java
public static boolean isJceInstalled() { try { val maxKeyLen = Cipher.getMaxAllowedKeyLength("AES"); return maxKeyLen == Integer.MAX_VALUE; } catch (final NoSuchAlgorithmException e) { return false; } }
[ "public", "static", "boolean", "isJceInstalled", "(", ")", "{", "try", "{", "val", "maxKeyLen", "=", "Cipher", ".", "getMaxAllowedKeyLength", "(", "\"AES\"", ")", ";", "return", "maxKeyLen", "==", "Integer", ".", "MAX_VALUE", ";", "}", "catch", "(", "final",...
Is jce installed ? @return the boolean
[ "Is", "jce", "installed", "?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java#L452-L459
126,599
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/ServiceTicketRequestWebflowEventResolver.java
ServiceTicketRequestWebflowEventResolver.isRequestAskingForServiceTicket
protected boolean isRequestAskingForServiceTicket(final RequestContext context) { val ticketGrantingTicketId = WebUtils.getTicketGrantingTicketId(context); LOGGER.debug("Located ticket-granting ticket [{}] from the request context", ticketGrantingTicketId); val service = WebUtils.getService(con...
java
protected boolean isRequestAskingForServiceTicket(final RequestContext context) { val ticketGrantingTicketId = WebUtils.getTicketGrantingTicketId(context); LOGGER.debug("Located ticket-granting ticket [{}] from the request context", ticketGrantingTicketId); val service = WebUtils.getService(con...
[ "protected", "boolean", "isRequestAskingForServiceTicket", "(", "final", "RequestContext", "context", ")", "{", "val", "ticketGrantingTicketId", "=", "WebUtils", ".", "getTicketGrantingTicketId", "(", "context", ")", ";", "LOGGER", ".", "debug", "(", "\"Located ticket-g...
Is request asking for service ticket? @param context the context @return true, if both service and tgt are found, and the request is not asking to renew. @since 4.1.0
[ "Is", "request", "asking", "for", "service", "ticket?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/ServiceTicketRequestWebflowEventResolver.java#L48-L79