id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
127,000
apereo/cas
support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/handler/support/X509CredentialsAuthenticationHandler.java
X509CredentialsAuthenticationHandler.isCritical
private static boolean isCritical(final X509Certificate certificate, final String extensionOid) { val criticalOids = certificate.getCriticalExtensionOIDs(); if (criticalOids == null || criticalOids.isEmpty()) { return false; } return criticalOids.contains(extensionOid); }
java
private static boolean isCritical(final X509Certificate certificate, final String extensionOid) { val criticalOids = certificate.getCriticalExtensionOIDs(); if (criticalOids == null || criticalOids.isEmpty()) { return false; } return criticalOids.contains(extensionOid); }
[ "private", "static", "boolean", "isCritical", "(", "final", "X509Certificate", "certificate", ",", "final", "String", "extensionOid", ")", "{", "val", "criticalOids", "=", "certificate", ".", "getCriticalExtensionOIDs", "(", ")", ";", "if", "(", "criticalOids", "=...
Checks if critical extension oids contain the extension oid. @param certificate the certificate @param extensionOid the extension oid @return true, if critical
[ "Checks", "if", "critical", "extension", "oids", "contain", "the", "extension", "oid", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/handler/support/X509CredentialsAuthenticationHandler.java#L148-L154
127,001
apereo/cas
support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/handler/support/X509CredentialsAuthenticationHandler.java
X509CredentialsAuthenticationHandler.doesNameMatchPattern
private static boolean doesNameMatchPattern(final Principal principal, final Pattern pattern) { if (pattern != null) { val name = principal.getName(); val result = pattern.matcher(name).matches(); LOGGER.debug("[{}] matches [{}] == [{}]", pattern.pattern(), name, result); ...
java
private static boolean doesNameMatchPattern(final Principal principal, final Pattern pattern) { if (pattern != null) { val name = principal.getName(); val result = pattern.matcher(name).matches(); LOGGER.debug("[{}] matches [{}] == [{}]", pattern.pattern(), name, result); ...
[ "private", "static", "boolean", "doesNameMatchPattern", "(", "final", "Principal", "principal", ",", "final", "Pattern", "pattern", ")", "{", "if", "(", "pattern", "!=", "null", ")", "{", "val", "name", "=", "principal", ".", "getName", "(", ")", ";", "val...
Does principal name match pattern? @param principal the principal @param pattern the pattern @return true, if successful
[ "Does", "principal", "name", "match", "pattern?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/handler/support/X509CredentialsAuthenticationHandler.java#L163-L171
127,002
apereo/cas
support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/handler/support/X509CredentialsAuthenticationHandler.java
X509CredentialsAuthenticationHandler.validate
private void validate(final X509Certificate cert) throws GeneralSecurityException { cert.checkValidity(); this.revocationChecker.check(cert); val pathLength = cert.getBasicConstraints(); if (pathLength < 0) { if (!isCertificateAllowed(cert)) { throw new Faile...
java
private void validate(final X509Certificate cert) throws GeneralSecurityException { cert.checkValidity(); this.revocationChecker.check(cert); val pathLength = cert.getBasicConstraints(); if (pathLength < 0) { if (!isCertificateAllowed(cert)) { throw new Faile...
[ "private", "void", "validate", "(", "final", "X509Certificate", "cert", ")", "throws", "GeneralSecurityException", "{", "cert", ".", "checkValidity", "(", ")", ";", "this", ".", "revocationChecker", ".", "check", "(", "cert", ")", ";", "val", "pathLength", "="...
Validate the X509Certificate received. @param cert the cert @throws GeneralSecurityException the general security exception
[ "Validate", "the", "X509Certificate", "received", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-x509-core/src/main/java/org/apereo/cas/adaptors/x509/authentication/handler/support/X509CredentialsAuthenticationHandler.java#L232-L253
127,003
apereo/cas
support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/CasServicesRegistryStreamingEventListener.java
CasServicesRegistryStreamingEventListener.handleCasRegisteredServiceLoadedEvent
@EventListener public void handleCasRegisteredServiceLoadedEvent(final CasRegisteredServiceLoadedEvent event) { LOGGER.trace("Received event [{}]", event); this.publisher.publish(event.getRegisteredService(), event); }
java
@EventListener public void handleCasRegisteredServiceLoadedEvent(final CasRegisteredServiceLoadedEvent event) { LOGGER.trace("Received event [{}]", event); this.publisher.publish(event.getRegisteredService(), event); }
[ "@", "EventListener", "public", "void", "handleCasRegisteredServiceLoadedEvent", "(", "final", "CasRegisteredServiceLoadedEvent", "event", ")", "{", "LOGGER", ".", "trace", "(", "\"Received event [{}]\"", ",", "event", ")", ";", "this", ".", "publisher", ".", "publish...
Handle cas registered service loaded event. @param event the event
[ "Handle", "cas", "registered", "service", "loaded", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/CasServicesRegistryStreamingEventListener.java#L28-L32
127,004
apereo/cas
support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/CasServicesRegistryStreamingEventListener.java
CasServicesRegistryStreamingEventListener.handleCasRegisteredServiceSavedEvent
@EventListener public void handleCasRegisteredServiceSavedEvent(final CasRegisteredServiceSavedEvent event) { LOGGER.trace("Received event [{}]", event); this.publisher.publish(event.getRegisteredService(), event); }
java
@EventListener public void handleCasRegisteredServiceSavedEvent(final CasRegisteredServiceSavedEvent event) { LOGGER.trace("Received event [{}]", event); this.publisher.publish(event.getRegisteredService(), event); }
[ "@", "EventListener", "public", "void", "handleCasRegisteredServiceSavedEvent", "(", "final", "CasRegisteredServiceSavedEvent", "event", ")", "{", "LOGGER", ".", "trace", "(", "\"Received event [{}]\"", ",", "event", ")", ";", "this", ".", "publisher", ".", "publish",...
Handle cas registered service saved event. @param event the event
[ "Handle", "cas", "registered", "service", "saved", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/CasServicesRegistryStreamingEventListener.java#L39-L43
127,005
apereo/cas
support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/CasServicesRegistryStreamingEventListener.java
CasServicesRegistryStreamingEventListener.handleCasRegisteredServiceDeletedEvent
@EventListener public void handleCasRegisteredServiceDeletedEvent(final CasRegisteredServiceDeletedEvent event) { LOGGER.trace("Received event [{}]", event); this.publisher.publish(event.getRegisteredService(), event); }
java
@EventListener public void handleCasRegisteredServiceDeletedEvent(final CasRegisteredServiceDeletedEvent event) { LOGGER.trace("Received event [{}]", event); this.publisher.publish(event.getRegisteredService(), event); }
[ "@", "EventListener", "public", "void", "handleCasRegisteredServiceDeletedEvent", "(", "final", "CasRegisteredServiceDeletedEvent", "event", ")", "{", "LOGGER", ".", "trace", "(", "\"Received event [{}]\"", ",", "event", ")", ";", "this", ".", "publisher", ".", "publi...
Handle cas registered service deleted event. @param event the event
[ "Handle", "cas", "registered", "service", "deleted", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/CasServicesRegistryStreamingEventListener.java#L50-L54
127,006
apereo/cas
core/cas-server-core-events-configuration/src/main/java/org/apereo/cas/support/events/listener/CasConfigurationEventListener.java
CasConfigurationEventListener.handleConfigurationModifiedEvent
@EventListener public void handleConfigurationModifiedEvent(final CasConfigurationModifiedEvent event) { if (this.contextRefresher == null) { LOGGER.warn("Unable to refresh application context, since no refresher is available"); return; } if (event.isEligibleForConte...
java
@EventListener public void handleConfigurationModifiedEvent(final CasConfigurationModifiedEvent event) { if (this.contextRefresher == null) { LOGGER.warn("Unable to refresh application context, since no refresher is available"); return; } if (event.isEligibleForConte...
[ "@", "EventListener", "public", "void", "handleConfigurationModifiedEvent", "(", "final", "CasConfigurationModifiedEvent", "event", ")", "{", "if", "(", "this", ".", "contextRefresher", "==", "null", ")", "{", "LOGGER", ".", "warn", "(", "\"Unable to refresh applicati...
Handle configuration modified event. @param event the event
[ "Handle", "configuration", "modified", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-events-configuration/src/main/java/org/apereo/cas/support/events/listener/CasConfigurationEventListener.java#L52-L73
127,007
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/BaseStringCipherExecutor.java
BaseStringCipherExecutor.configureEncryptionKeyFromPublicKeyResource
protected void configureEncryptionKeyFromPublicKeyResource(final String secretKeyToUse) { val object = extractPublicKeyFromResource(secretKeyToUse); LOGGER.debug("Located encryption key resource [{}]", secretKeyToUse); setSecretKeyEncryptionKey(object); setEncryptionAlgorithm(KeyManageme...
java
protected void configureEncryptionKeyFromPublicKeyResource(final String secretKeyToUse) { val object = extractPublicKeyFromResource(secretKeyToUse); LOGGER.debug("Located encryption key resource [{}]", secretKeyToUse); setSecretKeyEncryptionKey(object); setEncryptionAlgorithm(KeyManageme...
[ "protected", "void", "configureEncryptionKeyFromPublicKeyResource", "(", "final", "String", "secretKeyToUse", ")", "{", "val", "object", "=", "extractPublicKeyFromResource", "(", "secretKeyToUse", ")", ";", "LOGGER", ".", "debug", "(", "\"Located encryption key resource [{}...
Configure encryption key from public key resource. @param secretKeyToUse the secret key to use
[ "Configure", "encryption", "key", "from", "public", "key", "resource", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/cipher/BaseStringCipherExecutor.java#L157-L162
127,008
apereo/cas
support/cas-server-support-cloud-directory-authentication/src/main/java/org/apereo/cas/clouddirectory/DefaultCloudDirectoryRepository.java
DefaultCloudDirectoryRepository.getUserInfoFromIndexResult
protected Map<String, List<Object>> getUserInfoFromIndexResult(final ListIndexResult indexResult) { val attachment = indexResult.getIndexAttachments().stream().findFirst().orElse(null); if (attachment == null) { LOGGER.warn("Index result has no attachments"); return null; ...
java
protected Map<String, List<Object>> getUserInfoFromIndexResult(final ListIndexResult indexResult) { val attachment = indexResult.getIndexAttachments().stream().findFirst().orElse(null); if (attachment == null) { LOGGER.warn("Index result has no attachments"); return null; ...
[ "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "getUserInfoFromIndexResult", "(", "final", "ListIndexResult", "indexResult", ")", "{", "val", "attachment", "=", "indexResult", ".", "getIndexAttachments", "(", ")", ".", "stream", "(", ...
Gets user info from index result. @param indexResult the index result @return the user info from index result
[ "Gets", "user", "info", "from", "index", "result", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-cloud-directory-authentication/src/main/java/org/apereo/cas/clouddirectory/DefaultCloudDirectoryRepository.java#L65-L107
127,009
apereo/cas
support/cas-server-support-wsfederation-webflow/src/main/java/org/apereo/cas/web/flow/WsFederationRequestBuilder.java
WsFederationRequestBuilder.getRelativeRedirectUrlFor
@SneakyThrows private static String getRelativeRedirectUrlFor(final WsFederationConfiguration config, final Service service, final HttpServletRequest request) { val builder = new URIBuilder(WsFederationNavigationController.ENDPOINT_REDIRECT); builder.addParameter(WsFederationNavigationController.PAR...
java
@SneakyThrows private static String getRelativeRedirectUrlFor(final WsFederationConfiguration config, final Service service, final HttpServletRequest request) { val builder = new URIBuilder(WsFederationNavigationController.ENDPOINT_REDIRECT); builder.addParameter(WsFederationNavigationController.PAR...
[ "@", "SneakyThrows", "private", "static", "String", "getRelativeRedirectUrlFor", "(", "final", "WsFederationConfiguration", "config", ",", "final", "Service", "service", ",", "final", "HttpServletRequest", "request", ")", "{", "val", "builder", "=", "new", "URIBuilder...
Gets redirect url for. @param config the config @param service the service @param request the request @return the redirect url for
[ "Gets", "redirect", "url", "for", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation-webflow/src/main/java/org/apereo/cas/web/flow/WsFederationRequestBuilder.java#L48-L60
127,010
apereo/cas
support/cas-server-support-wsfederation-webflow/src/main/java/org/apereo/cas/web/flow/WsFederationRequestBuilder.java
WsFederationRequestBuilder.buildAuthenticationRequestEvent
public Event buildAuthenticationRequestEvent(final RequestContext context) { val clients = new ArrayList<WsFedClient>(); val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(context); val service = (Service) context.getFlowScope().get(CasProtocolConstants.PARAMETER_SERVICE); ...
java
public Event buildAuthenticationRequestEvent(final RequestContext context) { val clients = new ArrayList<WsFedClient>(); val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(context); val service = (Service) context.getFlowScope().get(CasProtocolConstants.PARAMETER_SERVICE); ...
[ "public", "Event", "buildAuthenticationRequestEvent", "(", "final", "RequestContext", "context", ")", "{", "val", "clients", "=", "new", "ArrayList", "<", "WsFedClient", ">", "(", ")", ";", "val", "request", "=", "WebUtils", ".", "getHttpServletRequestFromExternalWe...
Build authentication request event event. @param context the context @return the event
[ "Build", "authentication", "request", "event", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation-webflow/src/main/java/org/apereo/cas/web/flow/WsFederationRequestBuilder.java#L68-L90
127,011
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/WatchableGroovyScriptResource.java
WatchableGroovyScriptResource.execute
public <T> T execute(final String methodName, final Class<T> clazz, final Object... args) { return execute(methodName, clazz, true, args); }
java
public <T> T execute(final String methodName, final Class<T> clazz, final Object... args) { return execute(methodName, clazz, true, args); }
[ "public", "<", "T", ">", "T", "execute", "(", "final", "String", "methodName", ",", "final", "Class", "<", "T", ">", "clazz", ",", "final", "Object", "...", "args", ")", "{", "return", "execute", "(", "methodName", ",", "clazz", ",", "true", ",", "ar...
Execute t. @param <T> the type parameter @param methodName the method name @param clazz the clazz @param args the args @return the t
[ "Execute", "t", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/WatchableGroovyScriptResource.java#L93-L95
127,012
apereo/cas
support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/BaseSpnegoKnownClientSystemsFilterAction.java
BaseSpnegoKnownClientSystemsFilterAction.getRemoteHostName
protected String getRemoteHostName(final String remoteIp) { val revDNS = new ReverseDNSRunnable(remoteIp); val t = new Thread(revDNS); t.start(); try { t.join(this.timeout); } catch (final InterruptedException e) { LOGGER.debug("Threaded lookup failed. De...
java
protected String getRemoteHostName(final String remoteIp) { val revDNS = new ReverseDNSRunnable(remoteIp); val t = new Thread(revDNS); t.start(); try { t.join(this.timeout); } catch (final InterruptedException e) { LOGGER.debug("Threaded lookup failed. De...
[ "protected", "String", "getRemoteHostName", "(", "final", "String", "remoteIp", ")", "{", "val", "revDNS", "=", "new", "ReverseDNSRunnable", "(", "remoteIp", ")", ";", "val", "t", "=", "new", "Thread", "(", "revDNS", ")", ";", "t", ".", "start", "(", ")"...
Convenience method to perform a reverse DNS lookup. Threads the request through a custom Runnable class in order to prevent inordinately long user waits while performing reverse lookup. @param remoteIp the remote ip @return the remote host name
[ "Convenience", "method", "to", "perform", "a", "reverse", "DNS", "lookup", ".", "Threads", "the", "request", "through", "a", "custom", "Runnable", "class", "in", "order", "to", "prevent", "inordinately", "long", "user", "waits", "while", "performing", "reverse",...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/BaseSpnegoKnownClientSystemsFilterAction.java#L154-L166
127,013
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java
WsFederationHelper.buildSignatureTrustEngine
@SneakyThrows private static SignatureTrustEngine buildSignatureTrustEngine(final WsFederationConfiguration wsFederationConfiguration) { val signingWallet = wsFederationConfiguration.getSigningWallet(); LOGGER.debug("Building signature trust engine based on the following signing certificates:"); ...
java
@SneakyThrows private static SignatureTrustEngine buildSignatureTrustEngine(final WsFederationConfiguration wsFederationConfiguration) { val signingWallet = wsFederationConfiguration.getSigningWallet(); LOGGER.debug("Building signature trust engine based on the following signing certificates:"); ...
[ "@", "SneakyThrows", "private", "static", "SignatureTrustEngine", "buildSignatureTrustEngine", "(", "final", "WsFederationConfiguration", "wsFederationConfiguration", ")", "{", "val", "signingWallet", "=", "wsFederationConfiguration", ".", "getSigningWallet", "(", ")", ";", ...
Build signature trust engine. @param wsFederationConfiguration the ws federation configuration @return the signature trust engine
[ "Build", "signature", "trust", "engine", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java#L92-L101
127,014
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java
WsFederationHelper.getEncryptionCredential
@SneakyThrows private static Credential getEncryptionCredential(final WsFederationConfiguration config) { LOGGER.debug("Locating encryption credential private key [{}]", config.getEncryptionPrivateKey()); val br = new BufferedReader(new InputStreamReader(config.getEncryptionPrivateKey().getInputStre...
java
@SneakyThrows private static Credential getEncryptionCredential(final WsFederationConfiguration config) { LOGGER.debug("Locating encryption credential private key [{}]", config.getEncryptionPrivateKey()); val br = new BufferedReader(new InputStreamReader(config.getEncryptionPrivateKey().getInputStre...
[ "@", "SneakyThrows", "private", "static", "Credential", "getEncryptionCredential", "(", "final", "WsFederationConfiguration", "config", ")", "{", "LOGGER", ".", "debug", "(", "\"Locating encryption credential private key [{}]\"", ",", "config", ".", "getEncryptionPrivateKey",...
Gets encryption credential. The encryption private key will need to contain the private keypair in PEM format. The encryption certificate is shared with ADFS in DER format, i.e certificate.crt. @param config the config @return the encryption credential
[ "Gets", "encryption", "credential", ".", "The", "encryption", "private", "key", "will", "need", "to", "contain", "the", "private", "keypair", "in", "PEM", "format", ".", "The", "encryption", "certificate", "is", "shared", "with", "ADFS", "in", "DER", "format",...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java#L110-L143
127,015
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java
WsFederationHelper.createCredentialFromToken
public WsFederationCredential createCredentialFromToken(final Assertion assertion) { val retrievedOn = ZonedDateTime.now(ZoneOffset.UTC); LOGGER.debug("Retrieved on [{}]", retrievedOn); val credential = new WsFederationCredential(); credential.setRetrievedOn(retrievedOn); credent...
java
public WsFederationCredential createCredentialFromToken(final Assertion assertion) { val retrievedOn = ZonedDateTime.now(ZoneOffset.UTC); LOGGER.debug("Retrieved on [{}]", retrievedOn); val credential = new WsFederationCredential(); credential.setRetrievedOn(retrievedOn); credent...
[ "public", "WsFederationCredential", "createCredentialFromToken", "(", "final", "Assertion", "assertion", ")", "{", "val", "retrievedOn", "=", "ZonedDateTime", ".", "now", "(", "ZoneOffset", ".", "UTC", ")", ";", "LOGGER", ".", "debug", "(", "\"Retrieved on [{}]\"", ...
createCredentialFromToken converts a SAML 1.1 assertion to a WSFederationCredential. @param assertion the provided assertion @return an equivalent credential.
[ "createCredentialFromToken", "converts", "a", "SAML", "1", ".", "1", "assertion", "to", "a", "WSFederationCredential", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java#L166-L199
127,016
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java
WsFederationHelper.getRequestSecurityTokenFromResult
public RequestedSecurityToken getRequestSecurityTokenFromResult(final String wresult) { LOGGER.debug("Result token received from ADFS is [{}]", wresult); try (InputStream in = new ByteArrayInputStream(wresult.getBytes(StandardCharsets.UTF_8))) { LOGGER.debug("Parsing token into a document");...
java
public RequestedSecurityToken getRequestSecurityTokenFromResult(final String wresult) { LOGGER.debug("Result token received from ADFS is [{}]", wresult); try (InputStream in = new ByteArrayInputStream(wresult.getBytes(StandardCharsets.UTF_8))) { LOGGER.debug("Parsing token into a document");...
[ "public", "RequestedSecurityToken", "getRequestSecurityTokenFromResult", "(", "final", "String", "wresult", ")", "{", "LOGGER", ".", "debug", "(", "\"Result token received from ADFS is [{}]\"", ",", "wresult", ")", ";", "try", "(", "InputStream", "in", "=", "new", "By...
Gets request security token response from result. @param wresult the wresult @return the request security token response from result
[ "Gets", "request", "security", "token", "response", "from", "result", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java#L207-L238
127,017
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java
WsFederationHelper.buildAndVerifyAssertion
public Pair<Assertion, WsFederationConfiguration> buildAndVerifyAssertion(final RequestedSecurityToken reqToken, final Collection<WsFederationConfiguration> config) { val securityToken = getSecurityTokenFromRequestedToken(reqToken, config); if (securityToken instanceof Assertion) { LOGGER.de...
java
public Pair<Assertion, WsFederationConfiguration> buildAndVerifyAssertion(final RequestedSecurityToken reqToken, final Collection<WsFederationConfiguration> config) { val securityToken = getSecurityTokenFromRequestedToken(reqToken, config); if (securityToken instanceof Assertion) { LOGGER.de...
[ "public", "Pair", "<", "Assertion", ",", "WsFederationConfiguration", ">", "buildAndVerifyAssertion", "(", "final", "RequestedSecurityToken", "reqToken", ",", "final", "Collection", "<", "WsFederationConfiguration", ">", "config", ")", "{", "val", "securityToken", "=", ...
converts a token into an assertion. @param reqToken the req token @param config the config @return an assertion
[ "converts", "a", "token", "into", "an", "assertion", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java#L247-L264
127,018
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java
WsFederationHelper.validateSignature
public boolean validateSignature(final Pair<Assertion, WsFederationConfiguration> resultPair) { if (resultPair == null) { LOGGER.warn("No assertion or its configuration was provided to validate signatures"); return false; } val configuration = resultPair.getValue(); ...
java
public boolean validateSignature(final Pair<Assertion, WsFederationConfiguration> resultPair) { if (resultPair == null) { LOGGER.warn("No assertion or its configuration was provided to validate signatures"); return false; } val configuration = resultPair.getValue(); ...
[ "public", "boolean", "validateSignature", "(", "final", "Pair", "<", "Assertion", ",", "WsFederationConfiguration", ">", "resultPair", ")", "{", "if", "(", "resultPair", "==", "null", ")", "{", "LOGGER", ".", "warn", "(", "\"No assertion or its configuration was pro...
validateSignature checks to see if the signature on an assertion is valid. @param resultPair a provided assertion @return true if the assertion's signature is valid, otherwise false
[ "validateSignature", "checks", "to", "see", "if", "the", "signature", "on", "an", "assertion", "is", "valid", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java#L312-L355
127,019
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java
WsFederationHelper.getRelyingPartyIdentifier
public String getRelyingPartyIdentifier(final Service service, final WsFederationConfiguration configuration) { val relyingPartyIdentifier = configuration.getRelyingPartyIdentifier(); if (service != null) { val registeredService = this.servicesManager.findServiceBy(service); Regi...
java
public String getRelyingPartyIdentifier(final Service service, final WsFederationConfiguration configuration) { val relyingPartyIdentifier = configuration.getRelyingPartyIdentifier(); if (service != null) { val registeredService = this.servicesManager.findServiceBy(service); Regi...
[ "public", "String", "getRelyingPartyIdentifier", "(", "final", "Service", "service", ",", "final", "WsFederationConfiguration", "configuration", ")", "{", "val", "relyingPartyIdentifier", "=", "configuration", ".", "getRelyingPartyIdentifier", "(", ")", ";", "if", "(", ...
Get the relying party id for a service. @param service the service to get an id for @param configuration the configuration @return relying party id
[ "Get", "the", "relying", "party", "id", "for", "a", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java#L364-L376
127,020
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationConfiguration.java
WsFederationConfiguration.getSigningCredential
private static Credential getSigningCredential(final Resource resource) { try (val inputStream = resource.getInputStream()) { val certificateFactory = CertificateFactory.getInstance("X.509"); val certificate = (X509Certificate) certificateFactory.generateCertificate(inputStream); ...
java
private static Credential getSigningCredential(final Resource resource) { try (val inputStream = resource.getInputStream()) { val certificateFactory = CertificateFactory.getInstance("X.509"); val certificate = (X509Certificate) certificateFactory.generateCertificate(inputStream); ...
[ "private", "static", "Credential", "getSigningCredential", "(", "final", "Resource", "resource", ")", "{", "try", "(", "val", "inputStream", "=", "resource", ".", "getInputStream", "(", ")", ")", "{", "val", "certificateFactory", "=", "CertificateFactory", ".", ...
getSigningCredential loads up an X509Credential from a file. @param resource the signing certificate file @return an X509 credential
[ "getSigningCredential", "loads", "up", "an", "X509Credential", "from", "a", "file", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationConfiguration.java#L75-L86
127,021
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationConfiguration.java
WsFederationConfiguration.getAuthorizationUrl
public String getAuthorizationUrl(final String relyingPartyIdentifier, final String wctx) { return String.format(getIdentityProviderUrl() + QUERYSTRING, relyingPartyIdentifier, wctx); }
java
public String getAuthorizationUrl(final String relyingPartyIdentifier, final String wctx) { return String.format(getIdentityProviderUrl() + QUERYSTRING, relyingPartyIdentifier, wctx); }
[ "public", "String", "getAuthorizationUrl", "(", "final", "String", "relyingPartyIdentifier", ",", "final", "String", "wctx", ")", "{", "return", "String", ".", "format", "(", "getIdentityProviderUrl", "(", ")", "+", "QUERYSTRING", ",", "relyingPartyIdentifier", ",",...
Gets authorization url. @param relyingPartyIdentifier the relying party identifier @param wctx the wctx @return the authorization url
[ "Gets", "authorization", "url", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationConfiguration.java#L137-L139
127,022
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/views/OAuth20DefaultUserProfileViewRenderer.java
OAuth20DefaultUserProfileViewRenderer.getRenderedUserProfile
protected String getRenderedUserProfile(final Map<String, Object> model) { if (oauthProperties.getUserProfileViewType() == OAuthProperties.UserProfileViewTypes.FLAT) { val flattened = new LinkedHashMap<String, Object>(); if (model.containsKey(MODEL_ATTRIBUTE_ATTRIBUTES)) { ...
java
protected String getRenderedUserProfile(final Map<String, Object> model) { if (oauthProperties.getUserProfileViewType() == OAuthProperties.UserProfileViewTypes.FLAT) { val flattened = new LinkedHashMap<String, Object>(); if (model.containsKey(MODEL_ATTRIBUTE_ATTRIBUTES)) { ...
[ "protected", "String", "getRenderedUserProfile", "(", "final", "Map", "<", "String", ",", "Object", ">", "model", ")", "{", "if", "(", "oauthProperties", ".", "getUserProfileViewType", "(", ")", "==", "OAuthProperties", ".", "UserProfileViewTypes", ".", "FLAT", ...
Gets rendered user profile. @param model the model @return the rendered user profile
[ "Gets", "rendered", "user", "profile", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/views/OAuth20DefaultUserProfileViewRenderer.java#L42-L58
127,023
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java
MultifactorAuthenticationUtils.buildEventAttributeMap
public static Map<String, Object> buildEventAttributeMap(final Principal principal, final Optional<RegisteredService> service, final MultifactorAuthenticationProvider provider) { val map = n...
java
public static Map<String, Object> buildEventAttributeMap(final Principal principal, final Optional<RegisteredService> service, final MultifactorAuthenticationProvider provider) { val map = n...
[ "public", "static", "Map", "<", "String", ",", "Object", ">", "buildEventAttributeMap", "(", "final", "Principal", "principal", ",", "final", "Optional", "<", "RegisteredService", ">", "service", ",", "final", "MultifactorAuthenticationProvider", "provider", ")", "{...
Build event attribute map map. @param principal the principal @param service the service @param provider the provider @return the map
[ "Build", "event", "attribute", "map", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java#L46-L54
127,024
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java
MultifactorAuthenticationUtils.validateEventIdForMatchingTransitionInContext
public static Event validateEventIdForMatchingTransitionInContext(final String eventId, final Optional<RequestContext> context, final Map<String, Object> attributes) { val ...
java
public static Event validateEventIdForMatchingTransitionInContext(final String eventId, final Optional<RequestContext> context, final Map<String, Object> attributes) { val ...
[ "public", "static", "Event", "validateEventIdForMatchingTransitionInContext", "(", "final", "String", "eventId", ",", "final", "Optional", "<", "RequestContext", ">", "context", ",", "final", "Map", "<", "String", ",", "Object", ">", "attributes", ")", "{", "val",...
Validate event id for matching transition in context event. @param eventId the event id @param context the context @param attributes the attributes @return the event
[ "Validate", "event", "id", "for", "matching", "transition", "in", "context", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java#L64-L77
127,025
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java
MultifactorAuthenticationUtils.resolveEventViaMultivaluedAttribute
public static Set<Event> resolveEventViaMultivaluedAttribute(final Principal principal, final Object attributeValue, final RegisteredService service, ...
java
public static Set<Event> resolveEventViaMultivaluedAttribute(final Principal principal, final Object attributeValue, final RegisteredService service, ...
[ "public", "static", "Set", "<", "Event", ">", "resolveEventViaMultivaluedAttribute", "(", "final", "Principal", "principal", ",", "final", "Object", "attributeValue", ",", "final", "RegisteredService", "service", ",", "final", "Optional", "<", "RequestContext", ">", ...
Resolve event via multivalued attribute set. @param principal the principal @param attributeValue the attribute value @param service the service @param context the context @param provider the provider @param predicate the predicate @return the set
[ "Resolve", "event", "via", "multivalued", "attribute", "set", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java#L91-L115
127,026
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java
MultifactorAuthenticationUtils.resolveEventViaSingleAttribute
@SneakyThrows public static Set<Event> resolveEventViaSingleAttribute(final Principal principal, final Object attributeValue, final RegisteredService service, ...
java
@SneakyThrows public static Set<Event> resolveEventViaSingleAttribute(final Principal principal, final Object attributeValue, final RegisteredService service, ...
[ "@", "SneakyThrows", "public", "static", "Set", "<", "Event", ">", "resolveEventViaSingleAttribute", "(", "final", "Principal", "principal", ",", "final", "Object", "attributeValue", ",", "final", "RegisteredService", "service", ",", "final", "Optional", "<", "Reque...
Resolve event via single attribute set. @param principal the principal @param attributeValue the attribute value @param service the service @param context the context @param provider the provider @param predicate the predicate @return the set
[ "Resolve", "event", "via", "single", "attribute", "set", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java#L156-L174
127,027
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java
MultifactorAuthenticationUtils.getAuthenticationProviderForService
public Collection<MultifactorAuthenticationProvider> getAuthenticationProviderForService(final RegisteredService service) { val policy = service.getMultifactorPolicy(); if (policy != null) { return policy.getMultifactorAuthenticationProviders().stream() .map(MultifactorAuthen...
java
public Collection<MultifactorAuthenticationProvider> getAuthenticationProviderForService(final RegisteredService service) { val policy = service.getMultifactorPolicy(); if (policy != null) { return policy.getMultifactorAuthenticationProviders().stream() .map(MultifactorAuthen...
[ "public", "Collection", "<", "MultifactorAuthenticationProvider", ">", "getAuthenticationProviderForService", "(", "final", "RegisteredService", "service", ")", "{", "val", "policy", "=", "service", ".", "getMultifactorPolicy", "(", ")", ";", "if", "(", "policy", "!="...
Gets authentication provider for service. @param service the service @return the authentication provider for service
[ "Gets", "authentication", "provider", "for", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java#L183-L193
127,028
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java
MultifactorAuthenticationUtils.evaluateEventForProviderInContext
public static Set<Event> evaluateEventForProviderInContext(final Principal principal, final RegisteredService service, final Optional<RequestContext> context, ...
java
public static Set<Event> evaluateEventForProviderInContext(final Principal principal, final RegisteredService service, final Optional<RequestContext> context, ...
[ "public", "static", "Set", "<", "Event", ">", "evaluateEventForProviderInContext", "(", "final", "Principal", "principal", ",", "final", "RegisteredService", "service", ",", "final", "Optional", "<", "RequestContext", ">", "context", ",", "final", "MultifactorAuthenti...
Evaluate event for provider in context set. @param principal the principal @param service the service @param context the context @param provider the provider @return the set
[ "Evaluate", "event", "for", "provider", "in", "context", "set", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java#L222-L236
127,029
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java
MultifactorAuthenticationUtils.getAvailableMultifactorAuthenticationProviders
public static Map<String, MultifactorAuthenticationProvider> getAvailableMultifactorAuthenticationProviders( final ApplicationContext applicationContext) { try { return applicationContext.getBeansOfType(MultifactorAuthenticationProvider.class, false, true); } catch (final Exception e...
java
public static Map<String, MultifactorAuthenticationProvider> getAvailableMultifactorAuthenticationProviders( final ApplicationContext applicationContext) { try { return applicationContext.getBeansOfType(MultifactorAuthenticationProvider.class, false, true); } catch (final Exception e...
[ "public", "static", "Map", "<", "String", ",", "MultifactorAuthenticationProvider", ">", "getAvailableMultifactorAuthenticationProviders", "(", "final", "ApplicationContext", "applicationContext", ")", "{", "try", "{", "return", "applicationContext", ".", "getBeansOfType", ...
Gets all multifactor authentication providers from application context. @param applicationContext the application context @return the all multifactor authentication providers from application context
[ "Gets", "all", "multifactor", "authentication", "providers", "from", "application", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/MultifactorAuthenticationUtils.java#L244-L254
127,030
apereo/cas
support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/CheckConsentRequiredAction.java
CheckConsentRequiredAction.determineConsentEvent
protected String determineConsentEvent(final RequestContext requestContext) { val webService = WebUtils.getService(requestContext); val service = this.authenticationRequestServiceSelectionStrategies.resolveService(webService); if (service == null) { return null; } va...
java
protected String determineConsentEvent(final RequestContext requestContext) { val webService = WebUtils.getService(requestContext); val service = this.authenticationRequestServiceSelectionStrategies.resolveService(webService); if (service == null) { return null; } va...
[ "protected", "String", "determineConsentEvent", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "webService", "=", "WebUtils", ".", "getService", "(", "requestContext", ")", ";", "val", "service", "=", "this", ".", "authenticationRequestServiceSelec...
Determine consent event string. @param requestContext the request context @return the string
[ "Determine", "consent", "event", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/CheckConsentRequiredAction.java#L53-L68
127,031
apereo/cas
support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/CheckConsentRequiredAction.java
CheckConsentRequiredAction.isConsentRequired
protected String isConsentRequired(final Service service, final RegisteredService registeredService, final Authentication authentication, final RequestContext requestContext) { val required = this.consentEngine.isConsentRequiredFor(se...
java
protected String isConsentRequired(final Service service, final RegisteredService registeredService, final Authentication authentication, final RequestContext requestContext) { val required = this.consentEngine.isConsentRequiredFor(se...
[ "protected", "String", "isConsentRequired", "(", "final", "Service", "service", ",", "final", "RegisteredService", "registeredService", ",", "final", "Authentication", "authentication", ",", "final", "RequestContext", "requestContext", ")", "{", "val", "required", "=", ...
Is consent required ? @param service the service @param registeredService the registered service @param authentication the authentication @param requestContext the request context @return the event id.
[ "Is", "consent", "required", "?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/CheckConsentRequiredAction.java#L79-L84
127,032
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java
DefaultRegisteredServiceUserInterfaceInfo.getDescription
public String getDescription() { val items = getDescriptions(); if (items.isEmpty()) { return this.registeredService.getDescription(); } return StringUtils.collectionToDelimitedString(items, "."); }
java
public String getDescription() { val items = getDescriptions(); if (items.isEmpty()) { return this.registeredService.getDescription(); } return StringUtils.collectionToDelimitedString(items, "."); }
[ "public", "String", "getDescription", "(", ")", "{", "val", "items", "=", "getDescriptions", "(", ")", ";", "if", "(", "items", ".", "isEmpty", "(", ")", ")", "{", "return", "this", ".", "registeredService", ".", "getDescription", "(", ")", ";", "}", "...
Gets description. @return the description
[ "Gets", "description", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java#L45-L51
127,033
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java
DefaultRegisteredServiceUserInterfaceInfo.getDisplayName
public String getDisplayName() { val items = getDisplayNames(); if (items.isEmpty()) { return this.registeredService.getName(); } return StringUtils.collectionToDelimitedString(items, "."); }
java
public String getDisplayName() { val items = getDisplayNames(); if (items.isEmpty()) { return this.registeredService.getName(); } return StringUtils.collectionToDelimitedString(items, "."); }
[ "public", "String", "getDisplayName", "(", ")", "{", "val", "items", "=", "getDisplayNames", "(", ")", ";", "if", "(", "items", ".", "isEmpty", "(", ")", ")", "{", "return", "this", ".", "registeredService", ".", "getName", "(", ")", ";", "}", "return"...
Gets display name. @return the display name
[ "Gets", "display", "name", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java#L58-L64
127,034
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java
DefaultRegisteredServiceUserInterfaceInfo.getInformationURL
public String getInformationURL() { val items = getInformationURLs(); if (items.isEmpty()) { return this.registeredService.getInformationUrl(); } return StringUtils.collectionToDelimitedString(items, "."); }
java
public String getInformationURL() { val items = getInformationURLs(); if (items.isEmpty()) { return this.registeredService.getInformationUrl(); } return StringUtils.collectionToDelimitedString(items, "."); }
[ "public", "String", "getInformationURL", "(", ")", "{", "val", "items", "=", "getInformationURLs", "(", ")", ";", "if", "(", "items", ".", "isEmpty", "(", ")", ")", "{", "return", "this", ".", "registeredService", ".", "getInformationUrl", "(", ")", ";", ...
Gets information uRL. @return the information uRL
[ "Gets", "information", "uRL", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java#L84-L90
127,035
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java
DefaultRegisteredServiceUserInterfaceInfo.getPrivacyStatementURL
public String getPrivacyStatementURL() { val items = getPrivacyStatementURLs(); if (items.isEmpty()) { return this.registeredService.getPrivacyUrl(); } return StringUtils.collectionToDelimitedString(items, "."); }
java
public String getPrivacyStatementURL() { val items = getPrivacyStatementURLs(); if (items.isEmpty()) { return this.registeredService.getPrivacyUrl(); } return StringUtils.collectionToDelimitedString(items, "."); }
[ "public", "String", "getPrivacyStatementURL", "(", ")", "{", "val", "items", "=", "getPrivacyStatementURLs", "(", ")", ";", "if", "(", "items", ".", "isEmpty", "(", ")", ")", "{", "return", "this", ".", "registeredService", ".", "getPrivacyUrl", "(", ")", ...
Gets privacy statement uRL. @return the privacy statement uRL
[ "Gets", "privacy", "statement", "uRL", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java#L106-L112
127,036
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java
DefaultRegisteredServiceUserInterfaceInfo.getLogoUrl
public String getLogoUrl() { try { val items = getLogoUrls(); if (!items.isEmpty()) { return items.iterator().next().getUrl(); } } catch (final Exception e) { LOGGER.debug(e.getMessage(), e); } return this.registeredService....
java
public String getLogoUrl() { try { val items = getLogoUrls(); if (!items.isEmpty()) { return items.iterator().next().getUrl(); } } catch (final Exception e) { LOGGER.debug(e.getMessage(), e); } return this.registeredService....
[ "public", "String", "getLogoUrl", "(", ")", "{", "try", "{", "val", "items", "=", "getLogoUrls", "(", ")", ";", "if", "(", "!", "items", ".", "isEmpty", "(", ")", ")", "{", "return", "items", ".", "iterator", "(", ")", ".", "next", "(", ")", ".",...
Gets logo url. @return the logo url
[ "Gets", "logo", "url", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/services/DefaultRegisteredServiceUserInterfaceInfo.java#L162-L172
127,037
apereo/cas
support/cas-server-support-token-authentication/src/main/java/org/apereo/cas/token/authentication/TokenAuthenticationHandler.java
TokenAuthenticationHandler.getRegisteredServiceJwtProperty
protected String getRegisteredServiceJwtProperty(final RegisteredService service, final RegisteredServiceProperty.RegisteredServiceProperties propName) { if (service == null || !service.getAccessStrategy().isServiceAccessAllowed()) { LOGGER.debug("Service is not defined/found or its access is disabl...
java
protected String getRegisteredServiceJwtProperty(final RegisteredService service, final RegisteredServiceProperty.RegisteredServiceProperties propName) { if (service == null || !service.getAccessStrategy().isServiceAccessAllowed()) { LOGGER.debug("Service is not defined/found or its access is disabl...
[ "protected", "String", "getRegisteredServiceJwtProperty", "(", "final", "RegisteredService", "service", ",", "final", "RegisteredServiceProperty", ".", "RegisteredServiceProperties", "propName", ")", "{", "if", "(", "service", "==", "null", "||", "!", "service", ".", ...
Gets registered service jwt secret. @param service the service @param propName the prop name @return the registered service jwt secret
[ "Gets", "registered", "service", "jwt", "secret", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-token-authentication/src/main/java/org/apereo/cas/token/authentication/TokenAuthenticationHandler.java#L168-L178
127,038
apereo/cas
support/cas-server-support-ldap-service-registry/src/main/java/org/apereo/cas/adaptors/ldap/services/LdapServiceRegistry.java
LdapServiceRegistry.update
private RegisteredService update(final RegisteredService rs) { val currentDn = getCurrentDnForRegisteredService(rs); if (StringUtils.isNotBlank(currentDn)) { LOGGER.debug("Updating registered service at [{}]", currentDn); val entry = this.ldapServiceMapper.mapFromRegisteredServi...
java
private RegisteredService update(final RegisteredService rs) { val currentDn = getCurrentDnForRegisteredService(rs); if (StringUtils.isNotBlank(currentDn)) { LOGGER.debug("Updating registered service at [{}]", currentDn); val entry = this.ldapServiceMapper.mapFromRegisteredServi...
[ "private", "RegisteredService", "update", "(", "final", "RegisteredService", "rs", ")", "{", "val", "currentDn", "=", "getCurrentDnForRegisteredService", "(", "rs", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "currentDn", ")", ")", "{", "LOGGER",...
Update the ldap entry with the given registered service. @param rs the rs @return the registered service
[ "Update", "the", "ldap", "entry", "with", "the", "given", "registered", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap-service-registry/src/main/java/org/apereo/cas/adaptors/ldap/services/LdapServiceRegistry.java#L92-L104
127,039
apereo/cas
support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/credential/CouchDbGoogleAuthenticatorAccount.java
CouchDbGoogleAuthenticatorAccount.update
public CouchDbGoogleAuthenticatorAccount update(final OneTimeTokenAccount account) { setId(account.getId()); setUsername(account.getUsername()); setSecretKey(account.getSecretKey()); setValidationCode(account.getValidationCode()); setScratchCodes(account.getScratchCodes()); ...
java
public CouchDbGoogleAuthenticatorAccount update(final OneTimeTokenAccount account) { setId(account.getId()); setUsername(account.getUsername()); setSecretKey(account.getSecretKey()); setValidationCode(account.getValidationCode()); setScratchCodes(account.getScratchCodes()); ...
[ "public", "CouchDbGoogleAuthenticatorAccount", "update", "(", "final", "OneTimeTokenAccount", "account", ")", "{", "setId", "(", "account", ".", "getId", "(", ")", ")", ";", "setUsername", "(", "account", ".", "getUsername", "(", ")", ")", ";", "setSecretKey", ...
Update account info from account object. @param account to be updated @return this
[ "Update", "account", "info", "from", "account", "object", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-gauth-couchdb/src/main/java/org/apereo/cas/couchdb/gauth/credential/CouchDbGoogleAuthenticatorAccount.java#L58-L66
127,040
apereo/cas
support/cas-server-support-google-analytics/src/main/java/org/apereo/cas/web/flow/CasGoogleAnalyticsWebflowConfigurer.java
CasGoogleAnalyticsWebflowConfigurer.putGoogleAnalyticsTrackingIdIntoFlowScope
private static void putGoogleAnalyticsTrackingIdIntoFlowScope(final RequestContext context, final String value) { if (StringUtils.isBlank(value)) { context.getFlowScope().remove(ATTRIBUTE_FLOWSCOPE_GOOGLE_ANALYTICS_TRACKING_ID); } else { context.getFlowScope().put(ATTRIBUTE_FLOWS...
java
private static void putGoogleAnalyticsTrackingIdIntoFlowScope(final RequestContext context, final String value) { if (StringUtils.isBlank(value)) { context.getFlowScope().remove(ATTRIBUTE_FLOWSCOPE_GOOGLE_ANALYTICS_TRACKING_ID); } else { context.getFlowScope().put(ATTRIBUTE_FLOWS...
[ "private", "static", "void", "putGoogleAnalyticsTrackingIdIntoFlowScope", "(", "final", "RequestContext", "context", ",", "final", "String", "value", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "value", ")", ")", "{", "context", ".", "getFlowScope", ...
Put tracking id into flow scope. @param context the context @param value the value
[ "Put", "tracking", "id", "into", "flow", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-google-analytics/src/main/java/org/apereo/cas/web/flow/CasGoogleAnalyticsWebflowConfigurer.java#L107-L113
127,041
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/SchedulingUtils.java
SchedulingUtils.prepScheduledAnnotationBeanPostProcessor
public static StringValueResolver prepScheduledAnnotationBeanPostProcessor(final ApplicationContext applicationContext) { val resolver = new CasEmbeddedValueResolver(applicationContext); try { val sch = applicationContext.getBean(ScheduledAnnotationBeanPostProcessor.class); sch.s...
java
public static StringValueResolver prepScheduledAnnotationBeanPostProcessor(final ApplicationContext applicationContext) { val resolver = new CasEmbeddedValueResolver(applicationContext); try { val sch = applicationContext.getBean(ScheduledAnnotationBeanPostProcessor.class); sch.s...
[ "public", "static", "StringValueResolver", "prepScheduledAnnotationBeanPostProcessor", "(", "final", "ApplicationContext", "applicationContext", ")", "{", "val", "resolver", "=", "new", "CasEmbeddedValueResolver", "(", "applicationContext", ")", ";", "try", "{", "val", "s...
Gets string value resolver. @param applicationContext the application context @return the string value resolver
[ "Gets", "string", "value", "resolver", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/SchedulingUtils.java#L28-L38
127,042
apereo/cas
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/resource/DefaultRegisteredServiceResourceNamingStrategy.java
DefaultRegisteredServiceResourceNamingStrategy.build
@Override public String build(final RegisteredService service, final String extension) { return StringUtils.remove(service.getName(), ' ') + '-' + service.getId() + '.' + extension; }
java
@Override public String build(final RegisteredService service, final String extension) { return StringUtils.remove(service.getName(), ' ') + '-' + service.getId() + '.' + extension; }
[ "@", "Override", "public", "String", "build", "(", "final", "RegisteredService", "service", ",", "final", "String", "extension", ")", "{", "return", "StringUtils", ".", "remove", "(", "service", ".", "getName", "(", ")", ",", "'", "'", ")", "+", "'", "'"...
Method creates a filename to store the service. @param service - Service to be stored. @param extension - extension to use for the file. @return - String representing file name.
[ "Method", "creates", "a", "filename", "to", "store", "the", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/resource/DefaultRegisteredServiceResourceNamingStrategy.java#L23-L26
127,043
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/validate/SamlObjectSignatureValidator.java
SamlObjectSignatureValidator.verifySamlProfileRequestIfNeeded
public void verifySamlProfileRequestIfNeeded(final RequestAbstractType profileRequest, final MetadataResolver resolver, final HttpServletRequest request, final MessageContex...
java
public void verifySamlProfileRequestIfNeeded(final RequestAbstractType profileRequest, final MetadataResolver resolver, final HttpServletRequest request, final MessageContex...
[ "public", "void", "verifySamlProfileRequestIfNeeded", "(", "final", "RequestAbstractType", "profileRequest", ",", "final", "MetadataResolver", "resolver", ",", "final", "HttpServletRequest", "request", ",", "final", "MessageContext", "context", ")", "throws", "Exception", ...
Verify saml profile request if needed. @param profileRequest the profile request @param resolver the resolver @param request the request @param context the context @throws Exception the exception
[ "Verify", "saml", "profile", "request", "if", "needed", "." ]
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/validate/SamlObjectSignatureValidator.java#L88-L103
127,044
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/validate/SamlObjectSignatureValidator.java
SamlObjectSignatureValidator.verifySamlProfileRequestIfNeeded
public void verifySamlProfileRequestIfNeeded(final RequestAbstractType profileRequest, final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final HttpServletRequest request, ...
java
public void verifySamlProfileRequestIfNeeded(final RequestAbstractType profileRequest, final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final HttpServletRequest request, ...
[ "public", "void", "verifySamlProfileRequestIfNeeded", "(", "final", "RequestAbstractType", "profileRequest", ",", "final", "SamlRegisteredServiceServiceProviderMetadataFacade", "adaptor", ",", "final", "HttpServletRequest", "request", ",", "final", "MessageContext", "context", ...
Validate authn request signature. @param profileRequest the authn request @param adaptor the adaptor @param request the request @param context the context @throws Exception the exception
[ "Validate", "authn", "request", "signature", "." ]
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/validate/SamlObjectSignatureValidator.java#L114-L120
127,045
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/validate/SamlObjectSignatureValidator.java
SamlObjectSignatureValidator.buildEntityCriteriaForSigningCredential
protected void buildEntityCriteriaForSigningCredential(final RequestAbstractType profileRequest, final CriteriaSet criteriaSet) { criteriaSet.add(new EntityIdCriterion(SamlIdPUtils.getIssuerFromSamlObject(profileRequest))); criteriaSet.add(new EntityRoleCriterion(SPSSODescriptor.DEFAULT_ELEMENT_NAME)); ...
java
protected void buildEntityCriteriaForSigningCredential(final RequestAbstractType profileRequest, final CriteriaSet criteriaSet) { criteriaSet.add(new EntityIdCriterion(SamlIdPUtils.getIssuerFromSamlObject(profileRequest))); criteriaSet.add(new EntityRoleCriterion(SPSSODescriptor.DEFAULT_ELEMENT_NAME)); ...
[ "protected", "void", "buildEntityCriteriaForSigningCredential", "(", "final", "RequestAbstractType", "profileRequest", ",", "final", "CriteriaSet", "criteriaSet", ")", "{", "criteriaSet", ".", "add", "(", "new", "EntityIdCriterion", "(", "SamlIdPUtils", ".", "getIssuerFro...
Build entity criteria for signing credential. @param profileRequest the profile request @param criteriaSet the criteria set
[ "Build", "entity", "criteria", "for", "signing", "credential", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/validate/SamlObjectSignatureValidator.java#L266-L269
127,046
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/validate/SamlObjectSignatureValidator.java
SamlObjectSignatureValidator.getSignatureValidationConfiguration
protected SignatureValidationConfiguration getSignatureValidationConfiguration() { val config = DefaultSecurityConfigurationBootstrap.buildDefaultSignatureValidationConfiguration(); val samlIdp = casProperties.getAuthn().getSamlIdp(); if (this.overrideBlackListedSignatureAlgorithms ...
java
protected SignatureValidationConfiguration getSignatureValidationConfiguration() { val config = DefaultSecurityConfigurationBootstrap.buildDefaultSignatureValidationConfiguration(); val samlIdp = casProperties.getAuthn().getSamlIdp(); if (this.overrideBlackListedSignatureAlgorithms ...
[ "protected", "SignatureValidationConfiguration", "getSignatureValidationConfiguration", "(", ")", "{", "val", "config", "=", "DefaultSecurityConfigurationBootstrap", ".", "buildDefaultSignatureValidationConfiguration", "(", ")", ";", "val", "samlIdp", "=", "casProperties", ".",...
Gets signature validation configuration. @return the signature validation configuration
[ "Gets", "signature", "validation", "configuration", "." ]
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/validate/SamlObjectSignatureValidator.java#L277-L297
127,047
apereo/cas
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/BaseTicketCatalogConfigurer.java
BaseTicketCatalogConfigurer.buildTicketDefinition
protected TicketDefinition buildTicketDefinition(final TicketCatalog plan, final String prefix, final Class impl, final int order) { if (plan.contains(prefix)) { return plan.find(prefix); } return new DefaultTicketDefinition(impl, prefix, order); }
java
protected TicketDefinition buildTicketDefinition(final TicketCatalog plan, final String prefix, final Class impl, final int order) { if (plan.contains(prefix)) { return plan.find(prefix); } return new DefaultTicketDefinition(impl, prefix, order); }
[ "protected", "TicketDefinition", "buildTicketDefinition", "(", "final", "TicketCatalog", "plan", ",", "final", "String", "prefix", ",", "final", "Class", "impl", ",", "final", "int", "order", ")", "{", "if", "(", "plan", ".", "contains", "(", "prefix", ")", ...
Build ticket ticket definition. @param plan the plan @param prefix the prefix @param impl the @param order the order @return the ticket definition
[ "Build", "ticket", "ticket", "definition", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/BaseTicketCatalogConfigurer.java#L21-L26
127,048
apereo/cas
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/BaseTicketCatalogConfigurer.java
BaseTicketCatalogConfigurer.buildTicketDefinition
protected TicketDefinition buildTicketDefinition(final TicketCatalog plan, final String prefix, final Class impl) { if (plan.contains(prefix)) { return plan.find(prefix); } return new DefaultTicketDefinition(impl, prefix, Ordered.LOWEST_PRECEDENCE); }
java
protected TicketDefinition buildTicketDefinition(final TicketCatalog plan, final String prefix, final Class impl) { if (plan.contains(prefix)) { return plan.find(prefix); } return new DefaultTicketDefinition(impl, prefix, Ordered.LOWEST_PRECEDENCE); }
[ "protected", "TicketDefinition", "buildTicketDefinition", "(", "final", "TicketCatalog", "plan", ",", "final", "String", "prefix", ",", "final", "Class", "impl", ")", "{", "if", "(", "plan", ".", "contains", "(", "prefix", ")", ")", "{", "return", "plan", "....
Build ticket definition ticket. @param plan the plan @param prefix the prefix @param impl the @return the ticket definition
[ "Build", "ticket", "definition", "ticket", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/BaseTicketCatalogConfigurer.java#L36-L41
127,049
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpMessage.java
HttpMessage.formatOutputMessageInternal
protected String formatOutputMessageInternal(final String message) { try { return EncodingUtils.urlEncode(message); } catch (final Exception e) { LOGGER.warn("Unable to encode URL " + message, e); } return message; }
java
protected String formatOutputMessageInternal(final String message) { try { return EncodingUtils.urlEncode(message); } catch (final Exception e) { LOGGER.warn("Unable to encode URL " + message, e); } return message; }
[ "protected", "String", "formatOutputMessageInternal", "(", "final", "String", "message", ")", "{", "try", "{", "return", "EncodingUtils", ".", "urlEncode", "(", "message", ")", ";", "}", "catch", "(", "final", "Exception", "e", ")", "{", "LOGGER", ".", "warn...
Encodes the message in UTF-8 format in preparation to send. @param message Message to format and encode @return The encoded message.
[ "Encodes", "the", "message", "in", "UTF", "-", "8", "format", "in", "preparation", "to", "send", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpMessage.java#L78-L85
127,050
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/AbstractServiceFactory.java
AbstractServiceFactory.cleanupUrl
protected static String cleanupUrl(final String url) { if (url == null) { return null; } val jsessionPosition = url.indexOf(";jsession"); if (jsessionPosition == -1) { return url; } val questionMarkPosition = url.indexOf('?'); if (questionM...
java
protected static String cleanupUrl(final String url) { if (url == null) { return null; } val jsessionPosition = url.indexOf(";jsession"); if (jsessionPosition == -1) { return url; } val questionMarkPosition = url.indexOf('?'); if (questionM...
[ "protected", "static", "String", "cleanupUrl", "(", "final", "String", "url", ")", "{", "if", "(", "url", "==", "null", ")", "{", "return", "null", ";", "}", "val", "jsessionPosition", "=", "url", ".", "indexOf", "(", "\";jsession\"", ")", ";", "if", "...
Cleanup the url. Removes jsession ids and query strings. @param url the url @return sanitized url.
[ "Cleanup", "the", "url", ".", "Removes", "jsession", "ids", "and", "query", "strings", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/AbstractServiceFactory.java#L33-L46
127,051
apereo/cas
core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/AbstractServiceFactory.java
AbstractServiceFactory.getSourceParameter
protected static String getSourceParameter(final HttpServletRequest request, final String... paramNames) { if (request != null) { val parameterMap = request.getParameterMap(); return Stream.of(paramNames) .filter(p -> parameterMap.containsKey(p) || request.getAttribute(p)...
java
protected static String getSourceParameter(final HttpServletRequest request, final String... paramNames) { if (request != null) { val parameterMap = request.getParameterMap(); return Stream.of(paramNames) .filter(p -> parameterMap.containsKey(p) || request.getAttribute(p)...
[ "protected", "static", "String", "getSourceParameter", "(", "final", "HttpServletRequest", "request", ",", "final", "String", "...", "paramNames", ")", "{", "if", "(", "request", "!=", "null", ")", "{", "val", "parameterMap", "=", "request", ".", "getParameterMa...
Gets source parameter. @param request the request @param paramNames the param names @return the source parameter
[ "Gets", "source", "parameter", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-authentication/src/main/java/org/apereo/cas/authentication/principal/AbstractServiceFactory.java#L55-L64
127,052
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/OidcWebFingerDiscoveryService.java
OidcWebFingerDiscoveryService.handleWebFingerDiscoveryRequest
public ResponseEntity handleWebFingerDiscoveryRequest(final String resource, final String rel) { if (StringUtils.isNotBlank(rel) && !OidcConstants.WEBFINGER_REL.equalsIgnoreCase(rel)) { LOGGER.warn("Handling discovery request for a non-standard OIDC relation [{}]", rel); } val issue...
java
public ResponseEntity handleWebFingerDiscoveryRequest(final String resource, final String rel) { if (StringUtils.isNotBlank(rel) && !OidcConstants.WEBFINGER_REL.equalsIgnoreCase(rel)) { LOGGER.warn("Handling discovery request for a non-standard OIDC relation [{}]", rel); } val issue...
[ "public", "ResponseEntity", "handleWebFingerDiscoveryRequest", "(", "final", "String", "resource", ",", "final", "String", "rel", ")", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "rel", ")", "&&", "!", "OidcConstants", ".", "WEBFINGER_REL", ".", "equa...
Handle web finger discovery request and produce response entity. @param resource the resource @param rel the rel @return the response entity
[ "Handle", "web", "finger", "discovery", "request", "and", "produce", "response", "entity", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/OidcWebFingerDiscoveryService.java#L62-L109
127,053
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/OidcWebFingerDiscoveryService.java
OidcWebFingerDiscoveryService.buildNotFoundResponseEntity
protected ResponseEntity buildNotFoundResponseEntity(final String message) { return new ResponseEntity<>(CollectionUtils.wrap("message", message), HttpStatus.NOT_FOUND); }
java
protected ResponseEntity buildNotFoundResponseEntity(final String message) { return new ResponseEntity<>(CollectionUtils.wrap("message", message), HttpStatus.NOT_FOUND); }
[ "protected", "ResponseEntity", "buildNotFoundResponseEntity", "(", "final", "String", "message", ")", "{", "return", "new", "ResponseEntity", "<>", "(", "CollectionUtils", ".", "wrap", "(", "\"message\"", ",", "message", ")", ",", "HttpStatus", ".", "NOT_FOUND", "...
Build not found response entity response entity. @param message the message @return the response entity
[ "Build", "not", "found", "response", "entity", "response", "entity", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/OidcWebFingerDiscoveryService.java#L117-L119
127,054
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/OidcWebFingerDiscoveryService.java
OidcWebFingerDiscoveryService.normalize
protected UriComponents normalize(final String resource) { val builder = UriComponentsBuilder.newInstance(); val matcher = RESOURCE_NORMALIZED_PATTERN.matcher(resource); if (!matcher.matches()) { LOGGER.error("Unable to match the resource [{}] against pattern [{}] for normalization"...
java
protected UriComponents normalize(final String resource) { val builder = UriComponentsBuilder.newInstance(); val matcher = RESOURCE_NORMALIZED_PATTERN.matcher(resource); if (!matcher.matches()) { LOGGER.error("Unable to match the resource [{}] against pattern [{}] for normalization"...
[ "protected", "UriComponents", "normalize", "(", "final", "String", "resource", ")", "{", "val", "builder", "=", "UriComponentsBuilder", ".", "newInstance", "(", ")", ";", "val", "matcher", "=", "RESOURCE_NORMALIZED_PATTERN", ".", "matcher", "(", "resource", ")", ...
Normalize uri components. @param resource the resource @return the uri components
[ "Normalize", "uri", "components", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/discovery/webfinger/OidcWebFingerDiscoveryService.java#L127-L159
127,055
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java
OAuth20HandlerInterceptorAdapter.isAccessTokenRequest
protected boolean isAccessTokenRequest(final HttpServletRequest request, final HttpServletResponse response) { val requestPath = request.getRequestURI(); val pattern = String.format("(%s|%s)", OAuth20Constants.ACCESS_TOKEN_URL, OAuth20Constants.TOKEN_URL); return doesUriMatchPattern(requestPath,...
java
protected boolean isAccessTokenRequest(final HttpServletRequest request, final HttpServletResponse response) { val requestPath = request.getRequestURI(); val pattern = String.format("(%s|%s)", OAuth20Constants.ACCESS_TOKEN_URL, OAuth20Constants.TOKEN_URL); return doesUriMatchPattern(requestPath,...
[ "protected", "boolean", "isAccessTokenRequest", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ")", "{", "val", "requestPath", "=", "request", ".", "getRequestURI", "(", ")", ";", "val", "pattern", "=", "String", "....
Is access token request request. @param request the request @param response the response @return the boolean
[ "Is", "access", "token", "request", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java#L62-L66
127,056
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java
OAuth20HandlerInterceptorAdapter.isDeviceTokenRequest
protected boolean isDeviceTokenRequest(final HttpServletRequest request, final HttpServletResponse response) { val requestPath = request.getRequestURI(); val pattern = String.format("(%s)", OAuth20Constants.DEVICE_AUTHZ_URL); return doesUriMatchPattern(requestPath, pattern); }
java
protected boolean isDeviceTokenRequest(final HttpServletRequest request, final HttpServletResponse response) { val requestPath = request.getRequestURI(); val pattern = String.format("(%s)", OAuth20Constants.DEVICE_AUTHZ_URL); return doesUriMatchPattern(requestPath, pattern); }
[ "protected", "boolean", "isDeviceTokenRequest", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ")", "{", "val", "requestPath", "=", "request", ".", "getRequestURI", "(", ")", ";", "val", "pattern", "=", "String", "....
Is device token request boolean. @param request the request @param response the response @return the boolean
[ "Is", "device", "token", "request", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java#L75-L79
127,057
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java
OAuth20HandlerInterceptorAdapter.requestRequiresAuthentication
protected boolean requestRequiresAuthentication(final HttpServletRequest request, final HttpServletResponse response) { val accessTokenRequest = isAccessTokenRequest(request, response); if (!accessTokenRequest) { val extractor = extractAccessTokenGrantRequest(request); if (extrac...
java
protected boolean requestRequiresAuthentication(final HttpServletRequest request, final HttpServletResponse response) { val accessTokenRequest = isAccessTokenRequest(request, response); if (!accessTokenRequest) { val extractor = extractAccessTokenGrantRequest(request); if (extrac...
[ "protected", "boolean", "requestRequiresAuthentication", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ")", "{", "val", "accessTokenRequest", "=", "isAccessTokenRequest", "(", "request", ",", "response", ")", ";", "if", ...
Request requires authentication. @param request the request @param response the response @return true/false
[ "Request", "requires", "authentication", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java#L88-L104
127,058
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java
OAuth20HandlerInterceptorAdapter.isAuthorizationRequest
protected boolean isAuthorizationRequest(final HttpServletRequest request, final HttpServletResponse response) { val requestPath = request.getRequestURI(); return doesUriMatchPattern(requestPath, OAuth20Constants.AUTHORIZE_URL); }
java
protected boolean isAuthorizationRequest(final HttpServletRequest request, final HttpServletResponse response) { val requestPath = request.getRequestURI(); return doesUriMatchPattern(requestPath, OAuth20Constants.AUTHORIZE_URL); }
[ "protected", "boolean", "isAuthorizationRequest", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ")", "{", "val", "requestPath", "=", "request", ".", "getRequestURI", "(", ")", ";", "return", "doesUriMatchPattern", "(",...
Is authorization request. @param request the request @param response the response @return the boolean
[ "Is", "authorization", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java#L120-L123
127,059
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java
OAuth20HandlerInterceptorAdapter.doesUriMatchPattern
protected boolean doesUriMatchPattern(final String requestPath, final String patternUrl) { val pattern = Pattern.compile('/' + patternUrl + "(/)*$"); return pattern.matcher(requestPath).find(); }
java
protected boolean doesUriMatchPattern(final String requestPath, final String patternUrl) { val pattern = Pattern.compile('/' + patternUrl + "(/)*$"); return pattern.matcher(requestPath).find(); }
[ "protected", "boolean", "doesUriMatchPattern", "(", "final", "String", "requestPath", ",", "final", "String", "patternUrl", ")", "{", "val", "pattern", "=", "Pattern", ".", "compile", "(", "'", "'", "+", "patternUrl", "+", "\"(/)*$\"", ")", ";", "return", "p...
Does uri match pattern. @param requestPath the request path @param patternUrl the pattern @return the boolean
[ "Does", "uri", "match", "pattern", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/OAuth20HandlerInterceptorAdapter.java#L132-L135
127,060
apereo/cas
support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/logout/TerminateSessionAction.java
TerminateSessionAction.isLogoutRequestConfirmed
protected static boolean isLogoutRequestConfirmed(final RequestContext requestContext) { val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext); return request.getParameterMap().containsKey(REQUEST_PARAM_LOGOUT_REQUEST_CONFIRMED); }
java
protected static boolean isLogoutRequestConfirmed(final RequestContext requestContext) { val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext); return request.getParameterMap().containsKey(REQUEST_PARAM_LOGOUT_REQUEST_CONFIRMED); }
[ "protected", "static", "boolean", "isLogoutRequestConfirmed", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "request", "=", "WebUtils", ".", "getHttpServletRequestFromExternalWebflowContext", "(", "requestContext", ")", ";", "return", "request", ".", ...
Check if the logout must be confirmed. @param requestContext the request context @return if the logout must be confirmed
[ "Check", "if", "the", "logout", "must", "be", "confirmed", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/logout/TerminateSessionAction.java#L69-L72
127,061
apereo/cas
support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/logout/TerminateSessionAction.java
TerminateSessionAction.destroyApplicationSession
protected void destroyApplicationSession(final HttpServletRequest request, final HttpServletResponse response) { LOGGER.trace("Destroying application session"); val context = new J2EContext(request, response, new J2ESessionStore()); val manager = new ProfileManager<>(context, context.getSessionS...
java
protected void destroyApplicationSession(final HttpServletRequest request, final HttpServletResponse response) { LOGGER.trace("Destroying application session"); val context = new J2EContext(request, response, new J2ESessionStore()); val manager = new ProfileManager<>(context, context.getSessionS...
[ "protected", "void", "destroyApplicationSession", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ")", "{", "LOGGER", ".", "trace", "(", "\"Destroying application session\"", ")", ";", "val", "context", "=", "new", "J2EC...
Destroy application session. Also kills all delegated authn profiles via pac4j. @param request the request @param response the response
[ "Destroy", "application", "session", ".", "Also", "kills", "all", "delegated", "authn", "profiles", "via", "pac4j", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/logout/TerminateSessionAction.java#L135-L149
127,062
apereo/cas
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/resource/repository/BaseResourceSetRepository.java
BaseResourceSetRepository.validateResourceSetScopes
protected boolean validateResourceSetScopes(final ResourceSet rs) { if (rs.getPolicies() == null || rs.getPolicies().isEmpty()) { return true; } return rs.getPolicies() .stream() .flatMap(policy -> policy.getPermissions().stream()) .allMatch(permis...
java
protected boolean validateResourceSetScopes(final ResourceSet rs) { if (rs.getPolicies() == null || rs.getPolicies().isEmpty()) { return true; } return rs.getPolicies() .stream() .flatMap(policy -> policy.getPermissions().stream()) .allMatch(permis...
[ "protected", "boolean", "validateResourceSetScopes", "(", "final", "ResourceSet", "rs", ")", "{", "if", "(", "rs", ".", "getPolicies", "(", ")", "==", "null", "||", "rs", ".", "getPolicies", "(", ")", ".", "isEmpty", "(", ")", ")", "{", "return", "true",...
Validate resource set scopes. @param rs the rs @return the boolean
[ "Validate", "resource", "set", "scopes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/resource/repository/BaseResourceSetRepository.java#L79-L87
127,063
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/boot/AbstractCasBanner.java
AbstractCasBanner.collectEnvironmentInfo
private String collectEnvironmentInfo(final Environment environment, final Class<?> sourceClass) { val properties = System.getProperties(); if (properties.containsKey("CAS_BANNER_SKIP")) { try (val formatter = new Formatter()) { formatter.format("CAS Version: %s%n", CasVersio...
java
private String collectEnvironmentInfo(final Environment environment, final Class<?> sourceClass) { val properties = System.getProperties(); if (properties.containsKey("CAS_BANNER_SKIP")) { try (val formatter = new Formatter()) { formatter.format("CAS Version: %s%n", CasVersio...
[ "private", "String", "collectEnvironmentInfo", "(", "final", "Environment", "environment", ",", "final", "Class", "<", "?", ">", "sourceClass", ")", "{", "val", "properties", "=", "System", ".", "getProperties", "(", ")", ";", "if", "(", "properties", ".", "...
Collect environment info with details on the java and os deployment versions. @param environment the environment @param sourceClass the source class @return environment info
[ "Collect", "environment", "info", "with", "details", "on", "the", "java", "and", "os", "deployment", "versions", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/boot/AbstractCasBanner.java#L51-L73
127,064
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenSigningAndEncryptionService.java
OidcIdTokenSigningAndEncryptionService.shouldSignTokenFor
@Override protected boolean shouldSignTokenFor(final OidcRegisteredService svc) { if (AlgorithmIdentifiers.NONE.equalsIgnoreCase(svc.getIdTokenSigningAlg())) { LOGGER.warn("ID token signing algorithm is set to none for [{}] and ID token will not be signed", svc.getServiceId()); retur...
java
@Override protected boolean shouldSignTokenFor(final OidcRegisteredService svc) { if (AlgorithmIdentifiers.NONE.equalsIgnoreCase(svc.getIdTokenSigningAlg())) { LOGGER.warn("ID token signing algorithm is set to none for [{}] and ID token will not be signed", svc.getServiceId()); retur...
[ "@", "Override", "protected", "boolean", "shouldSignTokenFor", "(", "final", "OidcRegisteredService", "svc", ")", "{", "if", "(", "AlgorithmIdentifiers", ".", "NONE", ".", "equalsIgnoreCase", "(", "svc", ".", "getIdTokenSigningAlg", "(", ")", ")", ")", "{", "LOG...
Should sign token for service? @param svc the svc @return the boolean
[ "Should", "sign", "token", "for", "service?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenSigningAndEncryptionService.java#L53-L60
127,065
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenSigningAndEncryptionService.java
OidcIdTokenSigningAndEncryptionService.shouldEncryptTokenFor
@Override protected boolean shouldEncryptTokenFor(final OidcRegisteredService svc) { if (AlgorithmIdentifiers.NONE.equalsIgnoreCase(svc.getIdTokenEncryptionAlg())) { LOGGER.warn("ID token encryption algorithm is set to none for [{}] and ID token will not be encrypted", svc.getServiceId()); ...
java
@Override protected boolean shouldEncryptTokenFor(final OidcRegisteredService svc) { if (AlgorithmIdentifiers.NONE.equalsIgnoreCase(svc.getIdTokenEncryptionAlg())) { LOGGER.warn("ID token encryption algorithm is set to none for [{}] and ID token will not be encrypted", svc.getServiceId()); ...
[ "@", "Override", "protected", "boolean", "shouldEncryptTokenFor", "(", "final", "OidcRegisteredService", "svc", ")", "{", "if", "(", "AlgorithmIdentifiers", ".", "NONE", ".", "equalsIgnoreCase", "(", "svc", ".", "getIdTokenEncryptionAlg", "(", ")", ")", ")", "{", ...
Should encrypt token for service? @param svc the svc @return the boolean
[ "Should", "encrypt", "token", "for", "service?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/token/OidcIdTokenSigningAndEncryptionService.java#L68-L75
127,066
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/slo/SLOSamlPostProfileHandlerController.java
SLOSamlPostProfileHandlerController.handleSaml2ProfileSLOPostRequest
@PostMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SLO_PROFILE_POST) protected void handleSaml2ProfileSLOPostRequest(final HttpServletResponse response, final HttpServletRequest request) throws Exception { val decoder = getSamlProfileHandlerConfigurationC...
java
@PostMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SLO_PROFILE_POST) protected void handleSaml2ProfileSLOPostRequest(final HttpServletResponse response, final HttpServletRequest request) throws Exception { val decoder = getSamlProfileHandlerConfigurationC...
[ "@", "PostMapping", "(", "path", "=", "SamlIdPConstants", ".", "ENDPOINT_SAML2_SLO_PROFILE_POST", ")", "protected", "void", "handleSaml2ProfileSLOPostRequest", "(", "final", "HttpServletResponse", "response", ",", "final", "HttpServletRequest", "request", ")", "throws", "...
Handle SLO POST profile request. @param response the response @param request the request @throws Exception the exception
[ "Handle", "SLO", "POST", "profile", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/slo/SLOSamlPostProfileHandlerController.java#L33-L38
127,067
apereo/cas
support/cas-server-support-logging-config-cloudwatch/src/main/java/org/apereo/cas/logging/CloudWatchAppender.java
CloudWatchAppender.createAppender
@PluginFactory public static CloudWatchAppender createAppender(@PluginAttribute("name") final String name, @PluginAttribute("awsLogStreamName") final String awsLogStreamName, @PluginAttribute("awsLogGroupName") f...
java
@PluginFactory public static CloudWatchAppender createAppender(@PluginAttribute("name") final String name, @PluginAttribute("awsLogStreamName") final String awsLogStreamName, @PluginAttribute("awsLogGroupName") f...
[ "@", "PluginFactory", "public", "static", "CloudWatchAppender", "createAppender", "(", "@", "PluginAttribute", "(", "\"name\"", ")", "final", "String", "name", ",", "@", "PluginAttribute", "(", "\"awsLogStreamName\"", ")", "final", "String", "awsLogStreamName", ",", ...
Create appender cloud watch appender. @param name the name @param awsLogStreamName the aws log stream name @param awsLogGroupName the aws log group name @param awsLogStreamFlushPeriodInSeconds the aws log stream flush period in seconds @param credentialAcces...
[ "Create", "appender", "cloud", "watch", "appender", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-logging-config-cloudwatch/src/main/java/org/apereo/cas/logging/CloudWatchAppender.java#L110-L128
127,068
apereo/cas
support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/AddPropertiesToConfigurationCommand.java
AddPropertiesToConfigurationCommand.add
@ShellMethod(key = "add-properties", value = "Add properties associated with a CAS group/module to a Properties/Yaml configuration file.") public static void add( @ShellOption(value = {"file"}, help = "Path to the CAS configuration file", defaultValue = "/etc/cas/config/cas.propertie...
java
@ShellMethod(key = "add-properties", value = "Add properties associated with a CAS group/module to a Properties/Yaml configuration file.") public static void add( @ShellOption(value = {"file"}, help = "Path to the CAS configuration file", defaultValue = "/etc/cas/config/cas.propertie...
[ "@", "ShellMethod", "(", "key", "=", "\"add-properties\"", ",", "value", "=", "\"Add properties associated with a CAS group/module to a Properties/Yaml configuration file.\"", ")", "public", "static", "void", "add", "(", "@", "ShellOption", "(", "value", "=", "{", "\"file...
Add properties to configuration. @param file the file @param group the group @throws Exception the exception
[ "Add", "properties", "to", "configuration", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/properties/AddPropertiesToConfigurationCommand.java#L45-L82
127,069
apereo/cas
core/cas-server-core-configuration-metadata-repository/src/main/java/org/apereo/cas/metadata/CasConfigurationMetadataRepository.java
CasConfigurationMetadataRepository.getPropertyGroupId
public static String getPropertyGroupId(final ConfigurationMetadataProperty prop) { if (isCasProperty(prop)) { return StringUtils.substringBeforeLast(prop.getName(), "."); } return StringUtils.substringBeforeLast(prop.getId(), "."); }
java
public static String getPropertyGroupId(final ConfigurationMetadataProperty prop) { if (isCasProperty(prop)) { return StringUtils.substringBeforeLast(prop.getName(), "."); } return StringUtils.substringBeforeLast(prop.getId(), "."); }
[ "public", "static", "String", "getPropertyGroupId", "(", "final", "ConfigurationMetadataProperty", "prop", ")", "{", "if", "(", "isCasProperty", "(", "prop", ")", ")", "{", "return", "StringUtils", ".", "substringBeforeLast", "(", "prop", ".", "getName", "(", ")...
Gets property group id. @param prop the prop @return the property group id
[ "Gets", "property", "group", "id", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-configuration-metadata-repository/src/main/java/org/apereo/cas/metadata/CasConfigurationMetadataRepository.java#L67-L72
127,070
apereo/cas
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/rpt/UmaIdTokenGeneratorService.java
UmaIdTokenGeneratorService.buildJwtClaims
protected JwtClaims buildJwtClaims(final HttpServletRequest request, final AccessToken accessTokenId, final long timeoutInSeconds, final OAuthRegisteredService service, ...
java
protected JwtClaims buildJwtClaims(final HttpServletRequest request, final AccessToken accessTokenId, final long timeoutInSeconds, final OAuthRegisteredService service, ...
[ "protected", "JwtClaims", "buildJwtClaims", "(", "final", "HttpServletRequest", "request", ",", "final", "AccessToken", "accessTokenId", ",", "final", "long", "timeoutInSeconds", ",", "final", "OAuthRegisteredService", "service", ",", "final", "UserProfile", "profile", ...
Build jwt claims jwt claims. @param request the request @param accessTokenId the access token id @param timeoutInSeconds the timeout in seconds @param service the service @param profile the profile @param context the context @param responseType the response type @return the j...
[ "Build", "jwt", "claims", "jwt", "claims", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/ticket/rpt/UmaIdTokenGeneratorService.java#L64-L90
127,071
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/OidcDefaultJsonWebKeystoreCacheLoader.java
OidcDefaultJsonWebKeystoreCacheLoader.buildJsonWebKeySet
private Optional<JsonWebKeySet> buildJsonWebKeySet() { try { LOGGER.debug("Loading default JSON web key from [{}]", this.jwksFile); if (this.jwksFile != null) { LOGGER.debug("Retrieving default JSON web key from [{}]", this.jwksFile); val jsonWebKeySet = b...
java
private Optional<JsonWebKeySet> buildJsonWebKeySet() { try { LOGGER.debug("Loading default JSON web key from [{}]", this.jwksFile); if (this.jwksFile != null) { LOGGER.debug("Retrieving default JSON web key from [{}]", this.jwksFile); val jsonWebKeySet = b...
[ "private", "Optional", "<", "JsonWebKeySet", ">", "buildJsonWebKeySet", "(", ")", "{", "try", "{", "LOGGER", ".", "debug", "(", "\"Loading default JSON web key from [{}]\"", ",", "this", ".", "jwksFile", ")", ";", "if", "(", "this", ".", "jwksFile", "!=", "nul...
Build json web key set. @return the json web key set
[ "Build", "json", "web", "key", "set", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/jwks/OidcDefaultJsonWebKeystoreCacheLoader.java#L60-L92
127,072
apereo/cas
support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/web/mvc/SmartOpenIdController.java
SmartOpenIdController.getAssociationResponse
public Map<String, String> getAssociationResponse(final HttpServletRequest request) { val parameters = new ParameterList(request.getParameterMap()); val mode = parameters.hasParameter(OpenIdProtocolConstants.OPENID_MODE) ? parameters.getParameterValue(OpenIdProtocolConstants.OPENID_MODE...
java
public Map<String, String> getAssociationResponse(final HttpServletRequest request) { val parameters = new ParameterList(request.getParameterMap()); val mode = parameters.hasParameter(OpenIdProtocolConstants.OPENID_MODE) ? parameters.getParameterValue(OpenIdProtocolConstants.OPENID_MODE...
[ "public", "Map", "<", "String", ",", "String", ">", "getAssociationResponse", "(", "final", "HttpServletRequest", "request", ")", "{", "val", "parameters", "=", "new", "ParameterList", "(", "request", ".", "getParameterMap", "(", ")", ")", ";", "val", "mode", ...
Gets the association response. Determines the mode first. If mode is set to associate, will set the response. Then builds the response parameters next and returns. @param request the request @return the association response
[ "Gets", "the", "association", "response", ".", "Determines", "the", "mode", "first", ".", "If", "mode", "is", "set", "to", "associate", "will", "set", "the", "response", ".", "Then", "builds", "the", "response", "parameters", "next", "and", "returns", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-openid/src/main/java/org/apereo/cas/support/openid/web/mvc/SmartOpenIdController.java#L44-L61
127,073
apereo/cas
support/cas-server-support-radius-core-mfa/src/main/java/org/apereo/cas/adaptors/radius/authentication/RadiusMultifactorAuthenticationProvider.java
RadiusMultifactorAuthenticationProvider.canPing
public boolean canPing() { val uidPsw = getClass().getSimpleName(); for (val server : this.servers) { LOGGER.debug("Attempting to ping RADIUS server [{}] via simulating an authentication request. If the server responds " + "successfully, mock authentication will fail correctl...
java
public boolean canPing() { val uidPsw = getClass().getSimpleName(); for (val server : this.servers) { LOGGER.debug("Attempting to ping RADIUS server [{}] via simulating an authentication request. If the server responds " + "successfully, mock authentication will fail correctl...
[ "public", "boolean", "canPing", "(", ")", "{", "val", "uidPsw", "=", "getClass", "(", ")", ".", "getSimpleName", "(", ")", ";", "for", "(", "val", "server", ":", "this", ".", "servers", ")", "{", "LOGGER", ".", "debug", "(", "\"Attempting to ping RADIUS ...
Can ping. @return true/false
[ "Can", "ping", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-radius-core-mfa/src/main/java/org/apereo/cas/adaptors/radius/authentication/RadiusMultifactorAuthenticationProvider.java#L53-L69
127,074
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java
JsonUtils.render
@SneakyThrows public static void render(final Object model, final HttpServletResponse response) { val jsonConverter = new MappingJackson2HttpMessageConverter(); jsonConverter.setPrettyPrint(true); val jsonMimeType = MediaType.APPLICATION_JSON; jsonConverter.write(model, jsonMimeType,...
java
@SneakyThrows public static void render(final Object model, final HttpServletResponse response) { val jsonConverter = new MappingJackson2HttpMessageConverter(); jsonConverter.setPrettyPrint(true); val jsonMimeType = MediaType.APPLICATION_JSON; jsonConverter.write(model, jsonMimeType,...
[ "@", "SneakyThrows", "public", "static", "void", "render", "(", "final", "Object", "model", ",", "final", "HttpServletResponse", "response", ")", "{", "val", "jsonConverter", "=", "new", "MappingJackson2HttpMessageConverter", "(", ")", ";", "jsonConverter", ".", "...
Render model and view. @param model the model @param response the response
[ "Render", "model", "and", "view", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java#L27-L33
127,075
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java
JsonUtils.render
@SneakyThrows public static void render(final HttpServletResponse response) { val map = new HashMap<String, Object>(); response.setStatus(HttpServletResponse.SC_OK); render(map, response); }
java
@SneakyThrows public static void render(final HttpServletResponse response) { val map = new HashMap<String, Object>(); response.setStatus(HttpServletResponse.SC_OK); render(map, response); }
[ "@", "SneakyThrows", "public", "static", "void", "render", "(", "final", "HttpServletResponse", "response", ")", "{", "val", "map", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "response", ".", "setStatus", "(", "HttpServletRespon...
Render model and view. Sets the response status to OK. @param response the response
[ "Render", "model", "and", "view", ".", "Sets", "the", "response", "status", "to", "OK", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java#L40-L45
127,076
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java
JsonUtils.renderException
public static void renderException(final Exception ex, final HttpServletResponse response) { val map = new HashMap<String, String>(); map.put("error", ex.getMessage()); map.put("stacktrace", Arrays.deepToString(ex.getStackTrace())); renderException(map, response); }
java
public static void renderException(final Exception ex, final HttpServletResponse response) { val map = new HashMap<String, String>(); map.put("error", ex.getMessage()); map.put("stacktrace", Arrays.deepToString(ex.getStackTrace())); renderException(map, response); }
[ "public", "static", "void", "renderException", "(", "final", "Exception", "ex", ",", "final", "HttpServletResponse", "response", ")", "{", "val", "map", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "map", ".", "put", "(", "\"e...
Render exceptions. Adds error messages and the stack trace to the json model and sets the response status accordingly to note bad requests. @param ex the ex @param response the response
[ "Render", "exceptions", ".", "Adds", "error", "messages", "and", "the", "stack", "trace", "to", "the", "json", "model", "and", "sets", "the", "response", "status", "accordingly", "to", "note", "bad", "requests", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java#L54-L59
127,077
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java
JsonUtils.renderException
private static void renderException(final Map model, final HttpServletResponse response) { response.setStatus(HttpServletResponse.SC_BAD_REQUEST); model.put("status", HttpServletResponse.SC_BAD_REQUEST); render(model, response); }
java
private static void renderException(final Map model, final HttpServletResponse response) { response.setStatus(HttpServletResponse.SC_BAD_REQUEST); model.put("status", HttpServletResponse.SC_BAD_REQUEST); render(model, response); }
[ "private", "static", "void", "renderException", "(", "final", "Map", "model", ",", "final", "HttpServletResponse", "response", ")", "{", "response", ".", "setStatus", "(", "HttpServletResponse", ".", "SC_BAD_REQUEST", ")", ";", "model", ".", "put", "(", "\"statu...
Render exceptions. Sets the response status accordingly to note bad requests. @param model the model @param response the response
[ "Render", "exceptions", ".", "Sets", "the", "response", "status", "accordingly", "to", "note", "bad", "requests", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/JsonUtils.java#L67-L71
127,078
apereo/cas
support/cas-server-support-rest-authentication/src/main/java/org/apereo/cas/adaptors/rest/RestAuthenticationApi.java
RestAuthenticationApi.authenticate
public ResponseEntity<SimplePrincipal> authenticate(final UsernamePasswordCredential c) { val entity = new HttpEntity<Object>(HttpUtils.createBasicAuthHeaders(c.getUsername(), c.getPassword())); return restTemplate.exchange(authenticationUri, HttpMethod.POST, entity, SimplePrincipal.class); }
java
public ResponseEntity<SimplePrincipal> authenticate(final UsernamePasswordCredential c) { val entity = new HttpEntity<Object>(HttpUtils.createBasicAuthHeaders(c.getUsername(), c.getPassword())); return restTemplate.exchange(authenticationUri, HttpMethod.POST, entity, SimplePrincipal.class); }
[ "public", "ResponseEntity", "<", "SimplePrincipal", ">", "authenticate", "(", "final", "UsernamePasswordCredential", "c", ")", "{", "val", "entity", "=", "new", "HttpEntity", "<", "Object", ">", "(", "HttpUtils", ".", "createBasicAuthHeaders", "(", "c", ".", "ge...
Authenticate and receive entity from the rest template. @param c the credential @return the response entity
[ "Authenticate", "and", "receive", "entity", "from", "the", "rest", "template", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-rest-authentication/src/main/java/org/apereo/cas/adaptors/rest/RestAuthenticationApi.java#L35-L38
127,079
apereo/cas
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/plans/BaseAuthenticationRiskContingencyPlan.java
BaseAuthenticationRiskContingencyPlan.executeInternal
protected AuthenticationRiskContingencyResponse executeInternal(final Authentication authentication, final RegisteredService service, final AuthenticationRiskScore score, ...
java
protected AuthenticationRiskContingencyResponse executeInternal(final Authentication authentication, final RegisteredService service, final AuthenticationRiskScore score, ...
[ "protected", "AuthenticationRiskContingencyResponse", "executeInternal", "(", "final", "Authentication", "authentication", ",", "final", "RegisteredService", "service", ",", "final", "AuthenticationRiskScore", "score", ",", "final", "HttpServletRequest", "request", ")", "{", ...
Execute authentication risk contingency plan. @param authentication the authentication @param service the service @param score the score @param request the request @return the authentication risk contingency response. May be null.
[ "Execute", "authentication", "risk", "contingency", "plan", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-electrofence/src/main/java/org/apereo/cas/impl/plans/BaseAuthenticationRiskContingencyPlan.java#L70-L75
127,080
apereo/cas
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/factory/DefaultTicketFactory.java
DefaultTicketFactory.addTicketFactory
public DefaultTicketFactory addTicketFactory(final @NonNull Class<? extends Ticket> ticketClass, final @NonNull TicketFactory factory) { this.factoryMap.put(ticketClass.getCanonicalName(), factory); return this; }
java
public DefaultTicketFactory addTicketFactory(final @NonNull Class<? extends Ticket> ticketClass, final @NonNull TicketFactory factory) { this.factoryMap.put(ticketClass.getCanonicalName(), factory); return this; }
[ "public", "DefaultTicketFactory", "addTicketFactory", "(", "final", "@", "NonNull", "Class", "<", "?", "extends", "Ticket", ">", "ticketClass", ",", "final", "@", "NonNull", "TicketFactory", "factory", ")", "{", "this", ".", "factoryMap", ".", "put", "(", "tic...
Add ticket factory. @param ticketClass the ticket class @param factory the factory @return the default ticket factory
[ "Add", "ticket", "factory", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/factory/DefaultTicketFactory.java#L34-L37
127,081
apereo/cas
support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/util/ReverseDNSRunnable.java
ReverseDNSRunnable.run
@Override public void run() { try { LOGGER.debug("Attempting to resolve [{}]", this.ipAddress); val address = InetAddress.getByName(this.ipAddress); set(address.getCanonicalHostName()); } catch (final UnknownHostException e) { /* N/A -- Default to IP a...
java
@Override public void run() { try { LOGGER.debug("Attempting to resolve [{}]", this.ipAddress); val address = InetAddress.getByName(this.ipAddress); set(address.getCanonicalHostName()); } catch (final UnknownHostException e) { /* N/A -- Default to IP a...
[ "@", "Override", "public", "void", "run", "(", ")", "{", "try", "{", "LOGGER", ".", "debug", "(", "\"Attempting to resolve [{}]\"", ",", "this", ".", "ipAddress", ")", ";", "val", "address", "=", "InetAddress", ".", "getByName", "(", "this", ".", "ipAddres...
Runnable implementation to thread the work done in this class, allowing the implementer to set a thread timeout and thereby short-circuit the lookup.
[ "Runnable", "implementation", "to", "thread", "the", "work", "done", "in", "this", "class", "allowing", "the", "implementer", "to", "set", "a", "thread", "timeout", "and", "thereby", "short", "-", "circuit", "the", "lookup", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/util/ReverseDNSRunnable.java#L48-L58
127,082
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/response/soap/SamlProfileSamlSoap11ResponseBuilder.java
SamlProfileSamlSoap11ResponseBuilder.buildSaml2Response
protected Response buildSaml2Response(final Object casAssertion, final RequestAbstractType authnRequest, final SamlRegisteredService service, final SamlRegisteredServiceServiceProviderMetadataFa...
java
protected Response buildSaml2Response(final Object casAssertion, final RequestAbstractType authnRequest, final SamlRegisteredService service, final SamlRegisteredServiceServiceProviderMetadataFa...
[ "protected", "Response", "buildSaml2Response", "(", "final", "Object", "casAssertion", ",", "final", "RequestAbstractType", "authnRequest", ",", "final", "SamlRegisteredService", "service", ",", "final", "SamlRegisteredServiceServiceProviderMetadataFacade", "adaptor", ",", "f...
Build saml2 response. @param casAssertion the cas assertion @param authnRequest the authn request @param service the service @param adaptor the adaptor @param request the request @param binding the binding @param messageContext the message context @return the org . opensaml . saml . sam...
[ "Build", "saml2", "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/response/soap/SamlProfileSamlSoap11ResponseBuilder.java#L82-L92
127,083
apereo/cas
support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/web/BaseWSFederationRequestController.java
BaseWSFederationRequestController.getSecurityTokenFromRequest
protected SecurityToken getSecurityTokenFromRequest(final HttpServletRequest request) { val cookieValue = wsFederationRequestConfigurationContext.getTicketGrantingTicketCookieGenerator().retrieveCookieValue(request); if (StringUtils.isNotBlank(cookieValue)) { val tgt = wsFederationRequestCon...
java
protected SecurityToken getSecurityTokenFromRequest(final HttpServletRequest request) { val cookieValue = wsFederationRequestConfigurationContext.getTicketGrantingTicketCookieGenerator().retrieveCookieValue(request); if (StringUtils.isNotBlank(cookieValue)) { val tgt = wsFederationRequestCon...
[ "protected", "SecurityToken", "getSecurityTokenFromRequest", "(", "final", "HttpServletRequest", "request", ")", "{", "val", "cookieValue", "=", "wsFederationRequestConfigurationContext", ".", "getTicketGrantingTicketCookieGenerator", "(", ")", ".", "retrieveCookieValue", "(", ...
Gets security token from request. @param request the request @return the security token from request
[ "Gets", "security", "token", "from", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/web/BaseWSFederationRequestController.java#L92-L116
127,084
apereo/cas
support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/web/BaseWSFederationRequestController.java
BaseWSFederationRequestController.shouldRenewAuthentication
protected boolean shouldRenewAuthentication(final WSFederationRequest fedRequest, final HttpServletRequest request) { if (StringUtils.isBlank(fedRequest.getWfresh()) || NumberUtils.isCreatable(fedRequest.getWfresh())) { return false; } ...
java
protected boolean shouldRenewAuthentication(final WSFederationRequest fedRequest, final HttpServletRequest request) { if (StringUtils.isBlank(fedRequest.getWfresh()) || NumberUtils.isCreatable(fedRequest.getWfresh())) { return false; } ...
[ "protected", "boolean", "shouldRenewAuthentication", "(", "final", "WSFederationRequest", "fedRequest", ",", "final", "HttpServletRequest", "request", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "fedRequest", ".", "getWfresh", "(", ")", ")", "||", "Nu...
Is authentication required? @param fedRequest the fed request @param request the request @return the boolean
[ "Is", "authentication", "required?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/web/BaseWSFederationRequestController.java#L126-L151
127,085
apereo/cas
support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/web/BaseWSFederationRequestController.java
BaseWSFederationRequestController.handleUnauthorizedServiceException
@ExceptionHandler(Exception.class) public ModelAndView handleUnauthorizedServiceException(final HttpServletRequest req, final Exception ex) { return WebUtils.produceUnauthorizedErrorView(); }
java
@ExceptionHandler(Exception.class) public ModelAndView handleUnauthorizedServiceException(final HttpServletRequest req, final Exception ex) { return WebUtils.produceUnauthorizedErrorView(); }
[ "@", "ExceptionHandler", "(", "Exception", ".", "class", ")", "public", "ModelAndView", "handleUnauthorizedServiceException", "(", "final", "HttpServletRequest", "req", ",", "final", "Exception", "ex", ")", "{", "return", "WebUtils", ".", "produceUnauthorizedErrorView",...
Handle unauthorized service exception. @param req the req @param ex the ex @return the model and view
[ "Handle", "unauthorized", "service", "exception", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/web/BaseWSFederationRequestController.java#L196-L199
127,086
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java
FunctionUtils.doIf
public static <T, R> Function<T, R> doIf(final Predicate<T> condition, final CheckedFunction<T, R> trueFunction, final CheckedFunction<T, R> falseFunction) { return t -> { try { if (condition.test(t)) { return trueFunct...
java
public static <T, R> Function<T, R> doIf(final Predicate<T> condition, final CheckedFunction<T, R> trueFunction, final CheckedFunction<T, R> falseFunction) { return t -> { try { if (condition.test(t)) { return trueFunct...
[ "public", "static", "<", "T", ",", "R", ">", "Function", "<", "T", ",", "R", ">", "doIf", "(", "final", "Predicate", "<", "T", ">", "condition", ",", "final", "CheckedFunction", "<", "T", ",", "R", ">", "trueFunction", ",", "final", "CheckedFunction", ...
Conditional function function. @param <T> the type parameter @param <R> the type parameter @param condition the condition @param trueFunction the true function @param falseFunction the false function @return the function
[ "Conditional", "function", "function", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java#L84-L101
127,087
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java
FunctionUtils.doIfNotNull
@SneakyThrows public static <R> Supplier<R> doIfNotNull(final Object input, final Supplier<R> trueFunction, final Supplier<R> falseFunction) { return () -> { try { if (input != null) { ...
java
@SneakyThrows public static <R> Supplier<R> doIfNotNull(final Object input, final Supplier<R> trueFunction, final Supplier<R> falseFunction) { return () -> { try { if (input != null) { ...
[ "@", "SneakyThrows", "public", "static", "<", "R", ">", "Supplier", "<", "R", ">", "doIfNotNull", "(", "final", "Object", "input", ",", "final", "Supplier", "<", "R", ">", "trueFunction", ",", "final", "Supplier", "<", "R", ">", "falseFunction", ")", "{"...
Supply if not null supplier. @param <R> the type parameter @param input the input @param trueFunction the true function @param falseFunction the false function @return the supplier
[ "Supply", "if", "not", "null", "supplier", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java#L112-L127
127,088
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java
FunctionUtils.doIfNotNull
@SneakyThrows public static <T> void doIfNotNull(final T input, final Consumer<T> trueFunction) { try { if (input != null) { trueFunction.accept(input); } } catch (final Throwable e) { LOGGER.warn(e.getMessage...
java
@SneakyThrows public static <T> void doIfNotNull(final T input, final Consumer<T> trueFunction) { try { if (input != null) { trueFunction.accept(input); } } catch (final Throwable e) { LOGGER.warn(e.getMessage...
[ "@", "SneakyThrows", "public", "static", "<", "T", ">", "void", "doIfNotNull", "(", "final", "T", "input", ",", "final", "Consumer", "<", "T", ">", "trueFunction", ")", "{", "try", "{", "if", "(", "input", "!=", "null", ")", "{", "trueFunction", ".", ...
Do if not null. @param <T> the type parameter @param input the input @param trueFunction the true function
[ "Do", "if", "not", "null", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java#L136-L146
127,089
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java
FunctionUtils.doAndHandle
@SneakyThrows public static <T, R> Function<T, R> doAndHandle(final CheckedFunction<T, R> function, final CheckedFunction<Throwable, R> errorHandler) { return t -> { try { return function.apply(t); } catch (final Throwable e) { LOGGER.warn(e.getMessage...
java
@SneakyThrows public static <T, R> Function<T, R> doAndHandle(final CheckedFunction<T, R> function, final CheckedFunction<Throwable, R> errorHandler) { return t -> { try { return function.apply(t); } catch (final Throwable e) { LOGGER.warn(e.getMessage...
[ "@", "SneakyThrows", "public", "static", "<", "T", ",", "R", ">", "Function", "<", "T", ",", "R", ">", "doAndHandle", "(", "final", "CheckedFunction", "<", "T", ",", "R", ">", "function", ",", "final", "CheckedFunction", "<", "Throwable", ",", "R", ">"...
Default function function. @param <T> the type parameter @param <R> the type parameter @param function the function @param errorHandler the error handler @return the function
[ "Default", "function", "function", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java#L183-L197
127,090
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java
FunctionUtils.doAndHandle
@SneakyThrows public static <R> Supplier<R> doAndHandle(final Supplier<R> function, final CheckedFunction<Throwable, R> errorHandler) { return () -> { try { return function.get(); } catch (final Throwable e) { LOGGER.warn(e.getMessage(), e); ...
java
@SneakyThrows public static <R> Supplier<R> doAndHandle(final Supplier<R> function, final CheckedFunction<Throwable, R> errorHandler) { return () -> { try { return function.get(); } catch (final Throwable e) { LOGGER.warn(e.getMessage(), e); ...
[ "@", "SneakyThrows", "public", "static", "<", "R", ">", "Supplier", "<", "R", ">", "doAndHandle", "(", "final", "Supplier", "<", "R", ">", "function", ",", "final", "CheckedFunction", "<", "Throwable", ",", "R", ">", "errorHandler", ")", "{", "return", "...
Do and handle supplier. @param <R> the type parameter @param function the function @param errorHandler the error handler @return the supplier
[ "Do", "and", "handle", "supplier", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/function/FunctionUtils.java#L207-L221
127,091
apereo/cas
support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/JwtBuilder.java
JwtBuilder.build
public String build(final JwtRequest payload) { val serviceAudience = payload.getServiceAudience(); val claims = new JWTClaimsSet.Builder() .audience(serviceAudience) .issuer(casSeverPrefix) .jwtID(payload.getJwtId()) .issueTime(payload.getIssueDate()) ...
java
public String build(final JwtRequest payload) { val serviceAudience = payload.getServiceAudience(); val claims = new JWTClaimsSet.Builder() .audience(serviceAudience) .issuer(casSeverPrefix) .jwtID(payload.getJwtId()) .issueTime(payload.getIssueDate()) ...
[ "public", "String", "build", "(", "final", "JwtRequest", "payload", ")", "{", "val", "serviceAudience", "=", "payload", ".", "getServiceAudience", "(", ")", ";", "val", "claims", "=", "new", "JWTClaimsSet", ".", "Builder", "(", ")", ".", "audience", "(", "...
Build JWT. @param payload the payload @return the jwt
[ "Build", "JWT", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-token-core-api/src/main/java/org/apereo/cas/token/JwtBuilder.java#L48-L86
127,092
apereo/cas
support/cas-server-support-digest-authentication/src/main/java/org/apereo/cas/digest/util/DigestAuthenticationUtils.java
DigestAuthenticationUtils.createNonce
public static String createNonce() { val fmtDate = ZonedDateTime.now(ZoneOffset.UTC).toString(); val rand = RandomUtils.getNativeInstance(); val randomInt = rand.nextInt(); return DigestUtils.md5Hex(fmtDate + randomInt); }
java
public static String createNonce() { val fmtDate = ZonedDateTime.now(ZoneOffset.UTC).toString(); val rand = RandomUtils.getNativeInstance(); val randomInt = rand.nextInt(); return DigestUtils.md5Hex(fmtDate + randomInt); }
[ "public", "static", "String", "createNonce", "(", ")", "{", "val", "fmtDate", "=", "ZonedDateTime", ".", "now", "(", "ZoneOffset", ".", "UTC", ")", ".", "toString", "(", ")", ";", "val", "rand", "=", "RandomUtils", ".", "getNativeInstance", "(", ")", ";"...
Create nonce string. @return the nonce
[ "Create", "nonce", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-digest-authentication/src/main/java/org/apereo/cas/digest/util/DigestAuthenticationUtils.java#L28-L33
127,093
apereo/cas
support/cas-server-support-digest-authentication/src/main/java/org/apereo/cas/digest/util/DigestAuthenticationUtils.java
DigestAuthenticationUtils.createOpaque
public static String createOpaque(final String domain, final String nonce) { return DigestUtils.md5Hex(domain + nonce); }
java
public static String createOpaque(final String domain, final String nonce) { return DigestUtils.md5Hex(domain + nonce); }
[ "public", "static", "String", "createOpaque", "(", "final", "String", "domain", ",", "final", "String", "nonce", ")", "{", "return", "DigestUtils", ".", "md5Hex", "(", "domain", "+", "nonce", ")", ";", "}" ]
Create opaque. @param domain the domain @param nonce the nonce @return the opaque
[ "Create", "opaque", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-digest-authentication/src/main/java/org/apereo/cas/digest/util/DigestAuthenticationUtils.java#L51-L53
127,094
apereo/cas
support/cas-server-support-digest-authentication/src/main/java/org/apereo/cas/digest/util/DigestAuthenticationUtils.java
DigestAuthenticationUtils.createAuthenticateHeader
public static String createAuthenticateHeader(final String realm, final String authMethod, final String nonce) { val stringBuilder = new StringBuilder("Digest realm=\"") .append(realm).append("\","); if (StringUtils.isNotBlank(authMethod)) { stringBuilder.append("qop=").append(au...
java
public static String createAuthenticateHeader(final String realm, final String authMethod, final String nonce) { val stringBuilder = new StringBuilder("Digest realm=\"") .append(realm).append("\","); if (StringUtils.isNotBlank(authMethod)) { stringBuilder.append("qop=").append(au...
[ "public", "static", "String", "createAuthenticateHeader", "(", "final", "String", "realm", ",", "final", "String", "authMethod", ",", "final", "String", "nonce", ")", "{", "val", "stringBuilder", "=", "new", "StringBuilder", "(", "\"Digest realm=\\\"\"", ")", ".",...
Create authenticate header, containing the realm, nonce, opaque, etc. @param realm the realm @param authMethod the auth method @param nonce the nonce @return the header string
[ "Create", "authenticate", "header", "containing", "the", "realm", "nonce", "opaque", "etc", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-digest-authentication/src/main/java/org/apereo/cas/digest/util/DigestAuthenticationUtils.java#L63-L73
127,095
apereo/cas
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/ExportRegisteredServicesEndpoint.java
ExportRegisteredServicesEndpoint.exportServices
@ReadOperation public WebEndpointResponse<Resource> exportServices() throws Exception { val date = new SimpleDateFormat("yyyy-MM-dd-HH-mm").format(new Date()); val file = File.createTempFile("services-" + date, ".zip"); Files.deleteIfExists(file.toPath()); val env = new HashMap<Stri...
java
@ReadOperation public WebEndpointResponse<Resource> exportServices() throws Exception { val date = new SimpleDateFormat("yyyy-MM-dd-HH-mm").format(new Date()); val file = File.createTempFile("services-" + date, ".zip"); Files.deleteIfExists(file.toPath()); val env = new HashMap<Stri...
[ "@", "ReadOperation", "public", "WebEndpointResponse", "<", "Resource", ">", "exportServices", "(", ")", "throws", "Exception", "{", "val", "date", "=", "new", "SimpleDateFormat", "(", "\"yyyy-MM-dd-HH-mm\"", ")", ".", "format", "(", "new", "Date", "(", ")", "...
Export services web endpoint response. @return the web endpoint response @throws Exception the exception
[ "Export", "services", "web", "endpoint", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/ExportRegisteredServicesEndpoint.java#L54-L78
127,096
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/authenticator/OAuth20CasAuthenticationBuilder.java
OAuth20CasAuthenticationBuilder.buildService
public Service buildService(final OAuthRegisteredService registeredService, final J2EContext context, final boolean useServiceHeader) { var id = StringUtils.EMPTY; if (useServiceHeader) { id = OAuth20Utils.getServiceRequestHeaderIfAny(context.getRequest()); LOGGER.debug("Located ...
java
public Service buildService(final OAuthRegisteredService registeredService, final J2EContext context, final boolean useServiceHeader) { var id = StringUtils.EMPTY; if (useServiceHeader) { id = OAuth20Utils.getServiceRequestHeaderIfAny(context.getRequest()); LOGGER.debug("Located ...
[ "public", "Service", "buildService", "(", "final", "OAuthRegisteredService", "registeredService", ",", "final", "J2EContext", "context", ",", "final", "boolean", "useServiceHeader", ")", "{", "var", "id", "=", "StringUtils", ".", "EMPTY", ";", "if", "(", "useServi...
Build service. @param registeredService the registered service @param context the context @param useServiceHeader the use service header @return the service
[ "Build", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/authenticator/OAuth20CasAuthenticationBuilder.java#L70-L80
127,097
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/authenticator/OAuth20CasAuthenticationBuilder.java
OAuth20CasAuthenticationBuilder.build
public Authentication build(final UserProfile profile, final OAuthRegisteredService registeredService, final J2EContext context, final Service service) { val profileAttributes = CoreAuthenticationUtils.convertAttrib...
java
public Authentication build(final UserProfile profile, final OAuthRegisteredService registeredService, final J2EContext context, final Service service) { val profileAttributes = CoreAuthenticationUtils.convertAttrib...
[ "public", "Authentication", "build", "(", "final", "UserProfile", "profile", ",", "final", "OAuthRegisteredService", "registeredService", ",", "final", "J2EContext", "context", ",", "final", "Service", "service", ")", "{", "val", "profileAttributes", "=", "CoreAuthent...
Create an authentication from a user profile. @param profile the given user profile @param registeredService the registered service @param context the context @param service the service @return the built authentication
[ "Create", "an", "authentication", "from", "a", "user", "profile", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/authenticator/OAuth20CasAuthenticationBuilder.java#L91-L126
127,098
apereo/cas
webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java
CasWebSecurityConfigurerAdapter.configureEndpointAccessToDenyUndefined
protected void configureEndpointAccessToDenyUndefined(final HttpSecurity http, final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests) { val endpoints = casProperties.getMonitor().getEndpoints().getEndpoint().key...
java
protected void configureEndpointAccessToDenyUndefined(final HttpSecurity http, final ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry requests) { val endpoints = casProperties.getMonitor().getEndpoints().getEndpoint().key...
[ "protected", "void", "configureEndpointAccessToDenyUndefined", "(", "final", "HttpSecurity", "http", ",", "final", "ExpressionUrlAuthorizationConfigurer", "<", "HttpSecurity", ">", ".", "ExpressionInterceptUrlRegistry", "requests", ")", "{", "val", "endpoints", "=", "casPro...
Configure endpoint access to deny undefined. @param http the http @param requests the requests
[ "Configure", "endpoint", "access", "to", "deny", "undefined", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java#L103-L119
127,099
apereo/cas
webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java
CasWebSecurityConfigurerAdapter.configureJdbcAuthenticationProvider
protected void configureJdbcAuthenticationProvider(final AuthenticationManagerBuilder auth, final MonitorProperties.Endpoints.JdbcSecurity jdbc) throws Exception { val cfg = auth.jdbcAuthentication(); cfg.usersByUsernameQuery(jdbc.getQuery()); cfg.rolePrefix(jdbc.getRolePrefix()); cfg.da...
java
protected void configureJdbcAuthenticationProvider(final AuthenticationManagerBuilder auth, final MonitorProperties.Endpoints.JdbcSecurity jdbc) throws Exception { val cfg = auth.jdbcAuthentication(); cfg.usersByUsernameQuery(jdbc.getQuery()); cfg.rolePrefix(jdbc.getRolePrefix()); cfg.da...
[ "protected", "void", "configureJdbcAuthenticationProvider", "(", "final", "AuthenticationManagerBuilder", "auth", ",", "final", "MonitorProperties", ".", "Endpoints", ".", "JdbcSecurity", "jdbc", ")", "throws", "Exception", "{", "val", "cfg", "=", "auth", ".", "jdbcAu...
Configure jdbc authentication provider. @param auth the auth @param jdbc the jdbc @throws Exception the exception
[ "Configure", "jdbc", "authentication", "provider", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-config/src/main/java/org/apereo/cas/web/security/CasWebSecurityConfigurerAdapter.java#L128-L134