id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
126,700
apereo/cas
support/cas-server-support-validation/src/main/java/org/apereo/cas/web/view/attributes/DefaultCas30ProtocolAttributesRenderer.java
DefaultCas30ProtocolAttributesRenderer.buildSingleAttributeDefinitionLine
protected String buildSingleAttributeDefinitionLine(final String attributeName, final Object value) { return new StringBuilder() .append("<cas:".concat(attributeName).concat(">")) .append(encodeAttributeValue(value)) .append("</cas:".concat(attributeName).concat(">")) ...
java
protected String buildSingleAttributeDefinitionLine(final String attributeName, final Object value) { return new StringBuilder() .append("<cas:".concat(attributeName).concat(">")) .append(encodeAttributeValue(value)) .append("</cas:".concat(attributeName).concat(">")) ...
[ "protected", "String", "buildSingleAttributeDefinitionLine", "(", "final", "String", "attributeName", ",", "final", "Object", "value", ")", "{", "return", "new", "StringBuilder", "(", ")", ".", "append", "(", "\"<cas:\"", ".", "concat", "(", "attributeName", ")", ...
Build single attribute definition line. @param attributeName the attribute name @param value the value @return the string
[ "Build", "single", "attribute", "definition", "line", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-validation/src/main/java/org/apereo/cas/web/view/attributes/DefaultCas30ProtocolAttributesRenderer.java#L45-L51
126,701
apereo/cas
support/cas-server-support-yubikey-couchdb/src/main/java/org/apereo/cas/couchdb/yubikey/YubiKeyAccountCouchDbRepository.java
YubiKeyAccountCouchDbRepository.findByUsername
@View(name = "by_username", map = "function(doc) { if(doc.publicId && doc.username) {emit(doc.username, doc)}}") public YubiKeyAccount findByUsername(final String uid) { val view = createQuery("by_username").key(uid).limit(1).includeDocs(true); return db.queryView(view, CouchDbYubiKeyAccount.class)....
java
@View(name = "by_username", map = "function(doc) { if(doc.publicId && doc.username) {emit(doc.username, doc)}}") public YubiKeyAccount findByUsername(final String uid) { val view = createQuery("by_username").key(uid).limit(1).includeDocs(true); return db.queryView(view, CouchDbYubiKeyAccount.class)....
[ "@", "View", "(", "name", "=", "\"by_username\"", ",", "map", "=", "\"function(doc) { if(doc.publicId && doc.username) {emit(doc.username, doc)}}\"", ")", "public", "YubiKeyAccount", "findByUsername", "(", "final", "String", "uid", ")", "{", "val", "view", "=", "createQ...
Find by username. @param uid username to search for @return yubikey account for username provided
[ "Find", "by", "username", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-yubikey-couchdb/src/main/java/org/apereo/cas/couchdb/yubikey/YubiKeyAccountCouchDbRepository.java#L27-L31
126,702
apereo/cas
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/CasConfigurationPropertiesEnvironmentManager.java
CasConfigurationPropertiesEnvironmentManager.rebindCasConfigurationProperties
public static void rebindCasConfigurationProperties(final ConfigurationPropertiesBindingPostProcessor binder, final ApplicationContext applicationContext) { val map = applicationContext.getBeansOfType(CasConfigurationProperties.class); val name = ...
java
public static void rebindCasConfigurationProperties(final ConfigurationPropertiesBindingPostProcessor binder, final ApplicationContext applicationContext) { val map = applicationContext.getBeansOfType(CasConfigurationProperties.class); val name = ...
[ "public", "static", "void", "rebindCasConfigurationProperties", "(", "final", "ConfigurationPropertiesBindingPostProcessor", "binder", ",", "final", "ApplicationContext", "applicationContext", ")", "{", "val", "map", "=", "applicationContext", ".", "getBeansOfType", "(", "C...
Rebind cas configuration properties. @param binder the binder @param applicationContext the application context
[ "Rebind", "cas", "configuration", "properties", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/CasConfigurationPropertiesEnvironmentManager.java#L45-L56
126,703
apereo/cas
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/CasConfigurationPropertiesEnvironmentManager.java
CasConfigurationPropertiesEnvironmentManager.getStandaloneProfileConfigurationDirectory
public File getStandaloneProfileConfigurationDirectory() { val file = environment.getProperty("cas.standalone.configurationDirectory", File.class); if (file != null && file.exists()) { LOGGER.trace("Received standalone configuration directory [{}]", file); return file; } ...
java
public File getStandaloneProfileConfigurationDirectory() { val file = environment.getProperty("cas.standalone.configurationDirectory", File.class); if (file != null && file.exists()) { LOGGER.trace("Received standalone configuration directory [{}]", file); return file; } ...
[ "public", "File", "getStandaloneProfileConfigurationDirectory", "(", ")", "{", "val", "file", "=", "environment", ".", "getProperty", "(", "\"cas.standalone.configurationDirectory\"", ",", "File", ".", "class", ")", ";", "if", "(", "file", "!=", "null", "&&", "fil...
Gets standalone profile configuration directory. @return the standalone profile configuration directory
[ "Gets", "standalone", "profile", "configuration", "directory", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/CasConfigurationPropertiesEnvironmentManager.java#L72-L83
126,704
apereo/cas
core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java
BaseSingleLogoutServiceMessageHandler.createLogoutRequests
protected Collection<SingleLogoutRequest> createLogoutRequests(final String ticketId, final WebApplicationService selectedService, final RegisteredService registeredService, ...
java
protected Collection<SingleLogoutRequest> createLogoutRequests(final String ticketId, final WebApplicationService selectedService, final RegisteredService registeredService, ...
[ "protected", "Collection", "<", "SingleLogoutRequest", ">", "createLogoutRequests", "(", "final", "String", "ticketId", ",", "final", "WebApplicationService", "selectedService", ",", "final", "RegisteredService", "registeredService", ",", "final", "Collection", "<", "Sing...
Create logout requests collection. @param ticketId the ticket id @param selectedService the selected service @param registeredService the registered service @param logoutUrls the logout urls @param ticketGrantingTicket the ticket granting ticket @return the collection
[ "Create", "logout", "requests", "collection", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java#L102-L112
126,705
apereo/cas
core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java
BaseSingleLogoutServiceMessageHandler.createLogoutRequest
@SneakyThrows protected SingleLogoutRequest createLogoutRequest(final String ticketId, final WebApplicationService selectedService, final RegisteredService registeredService, ...
java
@SneakyThrows protected SingleLogoutRequest createLogoutRequest(final String ticketId, final WebApplicationService selectedService, final RegisteredService registeredService, ...
[ "@", "SneakyThrows", "protected", "SingleLogoutRequest", "createLogoutRequest", "(", "final", "String", "ticketId", ",", "final", "WebApplicationService", "selectedService", ",", "final", "RegisteredService", "registeredService", ",", "final", "SingleLogoutUrl", "logoutUrl", ...
Create logout request logout request. @param ticketId the ticket id @param selectedService the selected service @param registeredService the registered service @param logoutUrl the logout url @param ticketGrantingTicket the ticket granting ticket @return the logout request
[ "Create", "logout", "request", "logout", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java#L124-L154
126,706
apereo/cas
core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java
BaseSingleLogoutServiceMessageHandler.sendSingleLogoutMessage
protected boolean sendSingleLogoutMessage(final SingleLogoutRequest request, final SingleLogoutMessage logoutMessage) { val logoutService = request.getService(); LOGGER.trace("Preparing logout request for [{}] to [{}]", logoutService.getId(), request.getLogoutUrl()); val msg = getLogoutHttpMessa...
java
protected boolean sendSingleLogoutMessage(final SingleLogoutRequest request, final SingleLogoutMessage logoutMessage) { val logoutService = request.getService(); LOGGER.trace("Preparing logout request for [{}] to [{}]", logoutService.getId(), request.getLogoutUrl()); val msg = getLogoutHttpMessa...
[ "protected", "boolean", "sendSingleLogoutMessage", "(", "final", "SingleLogoutRequest", "request", ",", "final", "SingleLogoutMessage", "logoutMessage", ")", "{", "val", "logoutService", "=", "request", ".", "getService", "(", ")", ";", "LOGGER", ".", "trace", "(", ...
Send single logout message. @param request the request @param logoutMessage the logout request @return true if the message was successfully sent.
[ "Send", "single", "logout", "message", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java#L175-L183
126,707
apereo/cas
core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java
BaseSingleLogoutServiceMessageHandler.sendMessageToEndpoint
protected boolean sendMessageToEndpoint(final LogoutHttpMessage msg, final SingleLogoutRequest request, final SingleLogoutMessage logoutMessage) { return this.httpClient.sendMessageToEndPoint(msg); }
java
protected boolean sendMessageToEndpoint(final LogoutHttpMessage msg, final SingleLogoutRequest request, final SingleLogoutMessage logoutMessage) { return this.httpClient.sendMessageToEndPoint(msg); }
[ "protected", "boolean", "sendMessageToEndpoint", "(", "final", "LogoutHttpMessage", "msg", ",", "final", "SingleLogoutRequest", "request", ",", "final", "SingleLogoutMessage", "logoutMessage", ")", "{", "return", "this", ".", "httpClient", ".", "sendMessageToEndPoint", ...
Send message to endpoint. @param msg the msg @param request the request @param logoutMessage the logout message @return the boolean
[ "Send", "message", "to", "endpoint", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java#L193-L195
126,708
apereo/cas
core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java
BaseSingleLogoutServiceMessageHandler.getLogoutHttpMessageToSend
protected LogoutHttpMessage getLogoutHttpMessageToSend(final SingleLogoutRequest request, final SingleLogoutMessage logoutMessage) { return new LogoutHttpMessage(request.getLogoutUrl(), logoutMessage.getPayload(), this.asynchronous); }
java
protected LogoutHttpMessage getLogoutHttpMessageToSend(final SingleLogoutRequest request, final SingleLogoutMessage logoutMessage) { return new LogoutHttpMessage(request.getLogoutUrl(), logoutMessage.getPayload(), this.asynchronous); }
[ "protected", "LogoutHttpMessage", "getLogoutHttpMessageToSend", "(", "final", "SingleLogoutRequest", "request", ",", "final", "SingleLogoutMessage", "logoutMessage", ")", "{", "return", "new", "LogoutHttpMessage", "(", "request", ".", "getLogoutUrl", "(", ")", ",", "log...
Gets logout http message to send. @param request the request @param logoutMessage the logout message @return the logout http message to send
[ "Gets", "logout", "http", "message", "to", "send", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/BaseSingleLogoutServiceMessageHandler.java#L204-L206
126,709
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/AuthenticationExceptionHandlerAction.java
AuthenticationExceptionHandlerAction.handle
public String handle(final Exception e, final RequestContext requestContext) { val messageContext = requestContext.getMessageContext(); if (e instanceof AuthenticationException) { return handleAuthenticationException((AuthenticationException) e, requestContext); } if (e ins...
java
public String handle(final Exception e, final RequestContext requestContext) { val messageContext = requestContext.getMessageContext(); if (e instanceof AuthenticationException) { return handleAuthenticationException((AuthenticationException) e, requestContext); } if (e ins...
[ "public", "String", "handle", "(", "final", "Exception", "e", ",", "final", "RequestContext", "requestContext", ")", "{", "val", "messageContext", "=", "requestContext", ".", "getMessageContext", "(", ")", ";", "if", "(", "e", "instanceof", "AuthenticationExceptio...
Maps an authentication exception onto a state name. Also sets an ERROR severity message in the message context. @param e Authentication error to handle. @param requestContext the spring context @return Name of next flow state to transition to or {@value #UNKNOWN}
[ "Maps", "an", "authentication", "exception", "onto", "a", "state", "name", ".", "Also", "sets", "an", "ERROR", "severity", "message", "in", "the", "message", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/AuthenticationExceptionHandlerAction.java#L74-L89
126,710
apereo/cas
support/cas-server-support-shiro-authentication/src/main/java/org/apereo/cas/adaptors/generic/ShiroAuthenticationHandler.java
ShiroAuthenticationHandler.checkSubjectRolesAndPermissions
protected void checkSubjectRolesAndPermissions(final Subject currentUser) throws FailedLoginException { if (this.requiredRoles != null) { for (val role : this.requiredRoles) { if (!currentUser.hasRole(role)) { throw new FailedLoginException("Required role " + role...
java
protected void checkSubjectRolesAndPermissions(final Subject currentUser) throws FailedLoginException { if (this.requiredRoles != null) { for (val role : this.requiredRoles) { if (!currentUser.hasRole(role)) { throw new FailedLoginException("Required role " + role...
[ "protected", "void", "checkSubjectRolesAndPermissions", "(", "final", "Subject", "currentUser", ")", "throws", "FailedLoginException", "{", "if", "(", "this", ".", "requiredRoles", "!=", "null", ")", "{", "for", "(", "val", "role", ":", "this", ".", "requiredRol...
Check subject roles and permissions. @param currentUser the current user @throws FailedLoginException the failed login exception in case roles or permissions are absent
[ "Check", "subject", "roles", "and", "permissions", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shiro-authentication/src/main/java/org/apereo/cas/adaptors/generic/ShiroAuthenticationHandler.java#L92-L108
126,711
apereo/cas
support/cas-server-support-shiro-authentication/src/main/java/org/apereo/cas/adaptors/generic/ShiroAuthenticationHandler.java
ShiroAuthenticationHandler.createAuthenticatedSubjectResult
protected AuthenticationHandlerExecutionResult createAuthenticatedSubjectResult(final Credential credential, final Subject currentUser) { val username = currentUser.getPrincipal().toString(); return createHandlerResult(credential, this.principalFactory.createPrincipal(username)); }
java
protected AuthenticationHandlerExecutionResult createAuthenticatedSubjectResult(final Credential credential, final Subject currentUser) { val username = currentUser.getPrincipal().toString(); return createHandlerResult(credential, this.principalFactory.createPrincipal(username)); }
[ "protected", "AuthenticationHandlerExecutionResult", "createAuthenticatedSubjectResult", "(", "final", "Credential", "credential", ",", "final", "Subject", "currentUser", ")", "{", "val", "username", "=", "currentUser", ".", "getPrincipal", "(", ")", ".", "toString", "(...
Create authenticated subject result. @param credential the credential @param currentUser the current user @return the handler result
[ "Create", "authenticated", "subject", "result", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shiro-authentication/src/main/java/org/apereo/cas/adaptors/generic/ShiroAuthenticationHandler.java#L117-L120
126,712
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/authentication/principal/WsFederationCredentialsToPrincipalResolver.java
WsFederationCredentialsToPrincipalResolver.extractPrincipalId
@Override protected String extractPrincipalId(final Credential credentials, final Optional<Principal> currentPrincipal) { val wsFedCredentials = (WsFederationCredential) credentials; val attributes = wsFedCredentials.getAttributes(); LOGGER.debug("Credential attributes provided are: [{}]", a...
java
@Override protected String extractPrincipalId(final Credential credentials, final Optional<Principal> currentPrincipal) { val wsFedCredentials = (WsFederationCredential) credentials; val attributes = wsFedCredentials.getAttributes(); LOGGER.debug("Credential attributes provided are: [{}]", a...
[ "@", "Override", "protected", "String", "extractPrincipalId", "(", "final", "Credential", "credentials", ",", "final", "Optional", "<", "Principal", ">", "currentPrincipal", ")", "{", "val", "wsFedCredentials", "=", "(", "WsFederationCredential", ")", "credentials", ...
Extracts the principalId. @param credentials the credentials @return the principal id
[ "Extracts", "the", "principalId", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/authentication/principal/WsFederationCredentialsToPrincipalResolver.java#L53-L79
126,713
apereo/cas
support/cas-server-support-couchdb-core/src/main/java/org/apereo/cas/couchdb/core/ProfileCouchDbRepository.java
ProfileCouchDbRepository.findByUsername
@View(name = "by_username", map = "function(doc) { if(doc.username){ emit(doc.username, doc) } }") public CouchDbProfileDocument findByUsername(final String username) { return queryView("by_username", username).stream().findFirst().orElse(null); }
java
@View(name = "by_username", map = "function(doc) { if(doc.username){ emit(doc.username, doc) } }") public CouchDbProfileDocument findByUsername(final String username) { return queryView("by_username", username).stream().findFirst().orElse(null); }
[ "@", "View", "(", "name", "=", "\"by_username\"", ",", "map", "=", "\"function(doc) { if(doc.username){ emit(doc.username, doc) } }\"", ")", "public", "CouchDbProfileDocument", "findByUsername", "(", "final", "String", "username", ")", "{", "return", "queryView", "(", "...
Find profile by username. @param username to be searched for @return profile found
[ "Find", "profile", "by", "username", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-core/src/main/java/org/apereo/cas/couchdb/core/ProfileCouchDbRepository.java#L23-L26
126,714
apereo/cas
support/cas-server-support-couchdb-core/src/main/java/org/apereo/cas/couchdb/core/ProfileCouchDbRepository.java
ProfileCouchDbRepository.findByLinkedid
@View(name = "by_linkedid", map = "function(doc) { if(doc.linkedid){ emit(doc.linkedid, doc) } }") public CouchDbProfileDocument findByLinkedid(final String linkedid) { return queryView("by_linkedid", linkedid).stream().findFirst().orElse(null); }
java
@View(name = "by_linkedid", map = "function(doc) { if(doc.linkedid){ emit(doc.linkedid, doc) } }") public CouchDbProfileDocument findByLinkedid(final String linkedid) { return queryView("by_linkedid", linkedid).stream().findFirst().orElse(null); }
[ "@", "View", "(", "name", "=", "\"by_linkedid\"", ",", "map", "=", "\"function(doc) { if(doc.linkedid){ emit(doc.linkedid, doc) } }\"", ")", "public", "CouchDbProfileDocument", "findByLinkedid", "(", "final", "String", "linkedid", ")", "{", "return", "queryView", "(", "...
Find profile by linkedid. @param linkedid to be searched for @return profile found
[ "Find", "profile", "by", "linkedid", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-core/src/main/java/org/apereo/cas/couchdb/core/ProfileCouchDbRepository.java#L33-L36
126,715
apereo/cas
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/AbstractServicesManager.java
AbstractServicesManager.load
@Override public Collection<RegisteredService> load() { LOGGER.trace("Loading services from [{}]", serviceRegistry.getName()); this.services = this.serviceRegistry.load() .stream() .collect(Collectors.toConcurrentMap(r -> { LOGGER.debug("Adding registered serv...
java
@Override public Collection<RegisteredService> load() { LOGGER.trace("Loading services from [{}]", serviceRegistry.getName()); this.services = this.serviceRegistry.load() .stream() .collect(Collectors.toConcurrentMap(r -> { LOGGER.debug("Adding registered serv...
[ "@", "Override", "public", "Collection", "<", "RegisteredService", ">", "load", "(", ")", "{", "LOGGER", ".", "trace", "(", "\"Loading services from [{}]\"", ",", "serviceRegistry", ".", "getName", "(", ")", ")", ";", "this", ".", "services", "=", "this", "....
Load services that are provided by the DAO.
[ "Load", "services", "that", "are", "provided", "by", "the", "DAO", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/AbstractServicesManager.java#L192-L206
126,716
apereo/cas
support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java
MultifactorAuthenticationTrustRecordCouchDbRepository.findByRecordKey
@View(name = "by_recordKey", map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordKey, doc) } }") public CouchDbMultifactorAuthenticationTrustRecord findByRecordKey(final String recordKey) { return db.queryView(createQuery("by_recordKey").key(recordKey).limit...
java
@View(name = "by_recordKey", map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordKey, doc) } }") public CouchDbMultifactorAuthenticationTrustRecord findByRecordKey(final String recordKey) { return db.queryView(createQuery("by_recordKey").key(recordKey).limit...
[ "@", "View", "(", "name", "=", "\"by_recordKey\"", ",", "map", "=", "\"function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordKey, doc) } }\"", ")", "public", "CouchDbMultifactorAuthenticationTrustRecord", "findByRecordKey", "(", "final", "Stri...
Find by recordKey. @param recordKey record key to search for @return trust records for given input
[ "Find", "by", "recordKey", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java#L33-L37
126,717
apereo/cas
support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java
MultifactorAuthenticationTrustRecordCouchDbRepository.findOnOrBeforeDate
@View(name = "by_recordDate", map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordDate, doc) } }") public List<CouchDbMultifactorAuthenticationTrustRecord> findOnOrBeforeDate(final LocalDateTime recordDate) { return db.queryView(createQuery("by_recordDate")....
java
@View(name = "by_recordDate", map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordDate, doc) } }") public List<CouchDbMultifactorAuthenticationTrustRecord> findOnOrBeforeDate(final LocalDateTime recordDate) { return db.queryView(createQuery("by_recordDate")....
[ "@", "View", "(", "name", "=", "\"by_recordDate\"", ",", "map", "=", "\"function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.recordDate, doc) } }\"", ")", "public", "List", "<", "CouchDbMultifactorAuthenticationTrustRecord", ">", "findOnOrBeforeDat...
Find by recordDate on of before date. @param recordDate record key to search for @return trust records for given input
[ "Find", "by", "recordDate", "on", "of", "before", "date", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java#L44-L47
126,718
apereo/cas
support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java
MultifactorAuthenticationTrustRecordCouchDbRepository.findOnOrAfterDate
public List<CouchDbMultifactorAuthenticationTrustRecord> findOnOrAfterDate(final LocalDateTime onOrAfterDate) { return db.queryView(createQuery("by_recordDate").startKey(onOrAfterDate), CouchDbMultifactorAuthenticationTrustRecord.class); }
java
public List<CouchDbMultifactorAuthenticationTrustRecord> findOnOrAfterDate(final LocalDateTime onOrAfterDate) { return db.queryView(createQuery("by_recordDate").startKey(onOrAfterDate), CouchDbMultifactorAuthenticationTrustRecord.class); }
[ "public", "List", "<", "CouchDbMultifactorAuthenticationTrustRecord", ">", "findOnOrAfterDate", "(", "final", "LocalDateTime", "onOrAfterDate", ")", "{", "return", "db", ".", "queryView", "(", "createQuery", "(", "\"by_recordDate\"", ")", ".", "startKey", "(", "onOrAf...
Find record created on or after date. @param onOrAfterDate cutoff date @return records created on or after date
[ "Find", "record", "created", "on", "or", "after", "date", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java#L54-L56
126,719
apereo/cas
support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java
MultifactorAuthenticationTrustRecordCouchDbRepository.findByPrincipal
@View(name = "by_principal", map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.principal, doc) } }") public List<CouchDbMultifactorAuthenticationTrustRecord> findByPrincipal(final String principal) { val view = createQuery("by_principal").key(principal);...
java
@View(name = "by_principal", map = "function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.principal, doc) } }") public List<CouchDbMultifactorAuthenticationTrustRecord> findByPrincipal(final String principal) { val view = createQuery("by_principal").key(principal);...
[ "@", "View", "(", "name", "=", "\"by_principal\"", ",", "map", "=", "\"function(doc) { if (doc.principal && doc.deviceFingerprint && doc.recordDate) { emit(doc.principal, doc) } }\"", ")", "public", "List", "<", "CouchDbMultifactorAuthenticationTrustRecord", ">", "findByPrincipal", ...
Find by principal name. @param principal name to search for @return records for given principal
[ "Find", "by", "principal", "name", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java#L63-L68
126,720
apereo/cas
support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java
MultifactorAuthenticationTrustRecordCouchDbRepository.findByPrincipalAfterDate
@View(name = "by_principal_date", map = "function(doc) { if (doc.recordKey && doc.principal && doc.deviceFingerprint && doc.recordDate) { emit([doc.principal, doc.recordDate], doc) } }") public List<CouchDbMultifactorAuthenticationTrustRecord> findByPrincipalAfterDate(final String principal, final LocalDate...
java
@View(name = "by_principal_date", map = "function(doc) { if (doc.recordKey && doc.principal && doc.deviceFingerprint && doc.recordDate) { emit([doc.principal, doc.recordDate], doc) } }") public List<CouchDbMultifactorAuthenticationTrustRecord> findByPrincipalAfterDate(final String principal, final LocalDate...
[ "@", "View", "(", "name", "=", "\"by_principal_date\"", ",", "map", "=", "\"function(doc) { if (doc.recordKey && doc.principal && doc.deviceFingerprint && doc.recordDate) { emit([doc.principal, doc.recordDate], doc) } }\"", ")", "public", "List", "<", "CouchDbMultifactorAuthenticationTru...
Find by principal on or after date. @param principal Principal to search for @param onOrAfterDate start date for search @return records for principal after date.
[ "Find", "by", "principal", "on", "or", "after", "date", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/MultifactorAuthenticationTrustRecordCouchDbRepository.java#L76-L83
126,721
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/AbstractPrincipalAttributesRepository.java
AbstractPrincipalAttributesRepository.convertAttributesToPrincipalAttributesAndCache
protected Map<String, List<Object>> convertAttributesToPrincipalAttributesAndCache(final Principal principal, final Map<String, List<Object>> sourceAttributes, ...
java
protected Map<String, List<Object>> convertAttributesToPrincipalAttributesAndCache(final Principal principal, final Map<String, List<Object>> sourceAttributes, ...
[ "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "convertAttributesToPrincipalAttributesAndCache", "(", "final", "Principal", "principal", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "sourceAttributes", ",", ...
Convert attributes to principal attributes and cache. @param principal the principal @param sourceAttributes the source attributes @param registeredService the registered service @return the map
[ "Convert", "attributes", "to", "principal", "attributes", "and", "cache", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/AbstractPrincipalAttributesRepository.java#L81-L87
126,722
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/AbstractPrincipalAttributesRepository.java
AbstractPrincipalAttributesRepository.convertPersonAttributesToPrincipalAttributes
protected static Map<String, List<Object>> convertPersonAttributesToPrincipalAttributes(final Map<String, List<Object>> attributes) { return attributes.entrySet() .stream() .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); }
java
protected static Map<String, List<Object>> convertPersonAttributesToPrincipalAttributes(final Map<String, List<Object>> attributes) { return attributes.entrySet() .stream() .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); }
[ "protected", "static", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "convertPersonAttributesToPrincipalAttributes", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ")", "{", "return", "attributes", ".", ...
Convert person attributes to principal attributes. @param attributes person attributes @return principal attributes
[ "Convert", "person", "attributes", "to", "principal", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/AbstractPrincipalAttributesRepository.java#L156-L160
126,723
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/AbstractPrincipalAttributesRepository.java
AbstractPrincipalAttributesRepository.getPrincipalAttributes
@JsonIgnore protected Map<String, List<Object>> getPrincipalAttributes(final Principal principal) { if (ignoreResolvedAttributes) { return new HashMap<>(0); } return convertPrincipalAttributesToPersonAttributes(principal.getAttributes()); }
java
@JsonIgnore protected Map<String, List<Object>> getPrincipalAttributes(final Principal principal) { if (ignoreResolvedAttributes) { return new HashMap<>(0); } return convertPrincipalAttributesToPersonAttributes(principal.getAttributes()); }
[ "@", "JsonIgnore", "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "getPrincipalAttributes", "(", "final", "Principal", "principal", ")", "{", "if", "(", "ignoreResolvedAttributes", ")", "{", "return", "new", "HashMap", "<>", "(", "0...
Gets principal attributes. @param principal the principal @return the principal attributes
[ "Gets", "principal", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/AbstractPrincipalAttributesRepository.java#L186-L192
126,724
apereo/cas
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/resource/AbstractResourceBasedServiceRegistry.java
AbstractResourceBasedServiceRegistry.getRegisteredServiceFromFile
protected RegisteredService getRegisteredServiceFromFile(final File file) { val fileName = file.getName(); if (fileName.startsWith(".")) { LOGGER.trace("[{}] starts with ., ignoring", fileName); return null; } if (Arrays.stream(getExtensions()).noneMatch(fileName:...
java
protected RegisteredService getRegisteredServiceFromFile(final File file) { val fileName = file.getName(); if (fileName.startsWith(".")) { LOGGER.trace("[{}] starts with ., ignoring", fileName); return null; } if (Arrays.stream(getExtensions()).noneMatch(fileName:...
[ "protected", "RegisteredService", "getRegisteredServiceFromFile", "(", "final", "File", "file", ")", "{", "val", "fileName", "=", "file", ".", "getName", "(", ")", ";", "if", "(", "fileName", ".", "startsWith", "(", "\".\"", ")", ")", "{", "LOGGER", ".", "...
Gets registered service from file. @param file the file @return the registered service from file
[ "Gets", "registered", "service", "from", "file", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/resource/AbstractResourceBasedServiceRegistry.java#L329-L353
126,725
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationAttributeReleasePolicy.java
DefaultAuthenticationAttributeReleasePolicy.decideIfCredentialPasswordShouldBeReleasedAsAttribute
protected void decideIfCredentialPasswordShouldBeReleasedAsAttribute(final Map<String, List<Object>> attributes, final Authentication authentication, final RegisteredService service) { val policy = service.getAttributeReleasePolicy(); ...
java
protected void decideIfCredentialPasswordShouldBeReleasedAsAttribute(final Map<String, List<Object>> attributes, final Authentication authentication, final RegisteredService service) { val policy = service.getAttributeReleasePolicy(); ...
[ "protected", "void", "decideIfCredentialPasswordShouldBeReleasedAsAttribute", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ",", "final", "Authentication", "authentication", ",", "final", "RegisteredService", "service", ")", "...
Decide if credential password should be released as attribute. The credential must have been cached as an authentication attribute and the attribute release policy must be allowed to release the attribute. @param attributes the attributes @param authentication the authentication @param service the service
[ "Decide", "if", "credential", "password", "should", "be", "released", "as", "attribute", ".", "The", "credential", "must", "have", "been", "cached", "as", "an", "authentication", "attribute", "and", "the", "attribute", "release", "policy", "must", "be", "allowed...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationAttributeReleasePolicy.java#L105-L114
126,726
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationAttributeReleasePolicy.java
DefaultAuthenticationAttributeReleasePolicy.decideIfProxyGrantingTicketShouldBeReleasedAsAttribute
protected void decideIfProxyGrantingTicketShouldBeReleasedAsAttribute(final Map<String, List<Object>> attributes, final Map<String, Object> model, final RegisteredService service) { val policy = service.getAttributeReleasePolicy(); ...
java
protected void decideIfProxyGrantingTicketShouldBeReleasedAsAttribute(final Map<String, List<Object>> attributes, final Map<String, Object> model, final RegisteredService service) { val policy = service.getAttributeReleasePolicy(); ...
[ "protected", "void", "decideIfProxyGrantingTicketShouldBeReleasedAsAttribute", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ",", "final", "Map", "<", "String", ",", "Object", ">", "model", ",", "final", "RegisteredService...
Decide if PGT should be released as attribute. The PGT must have been cached as an authentication attribute and the attribute release policy must be allowed to release the attribute. @param attributes the attributes @param model the model @param service the service
[ "Decide", "if", "PGT", "should", "be", "released", "as", "attribute", ".", "The", "PGT", "must", "have", "been", "cached", "as", "an", "authentication", "attribute", "and", "the", "attribute", "release", "policy", "must", "be", "allowed", "to", "release", "t...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationAttributeReleasePolicy.java#L126-L137
126,727
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationAttributeReleasePolicy.java
DefaultAuthenticationAttributeReleasePolicy.decideAttributeReleaseBasedOnServiceAttributePolicy
protected void decideAttributeReleaseBasedOnServiceAttributePolicy(final Map<String, List<Object>> attributes, final String attributeValue, final String attributeName, final RegisteredService service, ...
java
protected void decideAttributeReleaseBasedOnServiceAttributePolicy(final Map<String, List<Object>> attributes, final String attributeValue, final String attributeName, final RegisteredService service, ...
[ "protected", "void", "decideAttributeReleaseBasedOnServiceAttributePolicy", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ",", "final", "String", "attributeValue", ",", "final", "String", "attributeName", ",", "final", "Regi...
Decide attribute release based on service attribute policy. @param attributes the attributes @param attributeValue the attribute value @param attributeName the attribute name @param service the service @param doesAttributePolicyAllow does attribute policy allow relea...
[ "Decide", "attribute", "release", "based", "on", "service", "attribute", "policy", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationAttributeReleasePolicy.java#L148-L163
126,728
apereo/cas
support/cas-server-support-aup-jdbc/src/main/java/org/apereo/cas/aup/JdbcAcceptableUsagePolicyRepository.java
JdbcAcceptableUsagePolicyRepository.determinePrincipalId
protected String determinePrincipalId(final RequestContext requestContext, final Credential credential) { if (StringUtils.isBlank(properties.getJdbc().getPrincipalIdAttribute())) { return credential.getId(); } val principal = WebUtils.getAuthentication(requestContext).getPrincipal();...
java
protected String determinePrincipalId(final RequestContext requestContext, final Credential credential) { if (StringUtils.isBlank(properties.getJdbc().getPrincipalIdAttribute())) { return credential.getId(); } val principal = WebUtils.getAuthentication(requestContext).getPrincipal();...
[ "protected", "String", "determinePrincipalId", "(", "final", "RequestContext", "requestContext", ",", "final", "Credential", "credential", ")", "{", "if", "(", "StringUtils", ".", "isBlank", "(", "properties", ".", "getJdbc", "(", ")", ".", "getPrincipalIdAttribute"...
Extracts principal ID from a principal attribute or the provided credentials. @param requestContext the context @param credential the credential @return the principal ID to update the AUP setting in the database for
[ "Extracts", "principal", "ID", "from", "a", "principal", "attribute", "or", "the", "provided", "credentials", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-jdbc/src/main/java/org/apereo/cas/aup/JdbcAcceptableUsagePolicyRepository.java#L68-L92
126,729
apereo/cas
support/cas-server-support-aws/src/main/java/org/apereo/cas/aws/AmazonClientConfigurationBuilder.java
AmazonClientConfigurationBuilder.buildClientConfiguration
@SneakyThrows public static ClientConfiguration buildClientConfiguration(final BaseAmazonWebServicesProperties props) { val cfg = new ClientConfiguration(); cfg.setConnectionTimeout(props.getConnectionTimeout()); cfg.setMaxConnections(props.getMaxConnections()); cfg.setRequestTimeout...
java
@SneakyThrows public static ClientConfiguration buildClientConfiguration(final BaseAmazonWebServicesProperties props) { val cfg = new ClientConfiguration(); cfg.setConnectionTimeout(props.getConnectionTimeout()); cfg.setMaxConnections(props.getMaxConnections()); cfg.setRequestTimeout...
[ "@", "SneakyThrows", "public", "static", "ClientConfiguration", "buildClientConfiguration", "(", "final", "BaseAmazonWebServicesProperties", "props", ")", "{", "val", "cfg", "=", "new", "ClientConfiguration", "(", ")", ";", "cfg", ".", "setConnectionTimeout", "(", "pr...
Build client configuration. @param props the props @return the client configuration
[ "Build", "client", "configuration", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aws/src/main/java/org/apereo/cas/aws/AmazonClientConfigurationBuilder.java#L29-L59
126,730
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceRegexAttributeFilter.java
RegisteredServiceRegexAttributeFilter.filterAttributes
private List filterAttributes(final List<Object> valuesToFilter, final String attributeName) { return valuesToFilter .stream() .filter(this::patternMatchesAttributeValue) .peek(attributeValue -> logReleasedAttributeEntry(attributeName, attributeValue)) .collect(Co...
java
private List filterAttributes(final List<Object> valuesToFilter, final String attributeName) { return valuesToFilter .stream() .filter(this::patternMatchesAttributeValue) .peek(attributeValue -> logReleasedAttributeEntry(attributeName, attributeValue)) .collect(Co...
[ "private", "List", "filterAttributes", "(", "final", "List", "<", "Object", ">", "valuesToFilter", ",", "final", "String", "attributeName", ")", "{", "return", "valuesToFilter", ".", "stream", "(", ")", ".", "filter", "(", "this", "::", "patternMatchesAttributeV...
Filter array attributes. @param valuesToFilter the values to filter @param attributeName the attribute name @return the string[]
[ "Filter", "array", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceRegexAttributeFilter.java#L107-L113
126,731
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceRegexAttributeFilter.java
RegisteredServiceRegexAttributeFilter.patternMatchesAttributeValue
private boolean patternMatchesAttributeValue(final Object value) { val matcher = value.toString(); LOGGER.trace("Compiling a pattern matcher for [{}]", matcher); return this.compiledPattern.matcher(matcher).matches(); }
java
private boolean patternMatchesAttributeValue(final Object value) { val matcher = value.toString(); LOGGER.trace("Compiling a pattern matcher for [{}]", matcher); return this.compiledPattern.matcher(matcher).matches(); }
[ "private", "boolean", "patternMatchesAttributeValue", "(", "final", "Object", "value", ")", "{", "val", "matcher", "=", "value", ".", "toString", "(", ")", ";", "LOGGER", ".", "trace", "(", "\"Compiling a pattern matcher for [{}]\"", ",", "matcher", ")", ";", "r...
Determine whether pattern matches attribute value. @param value the value @return true, if successful
[ "Determine", "whether", "pattern", "matches", "attribute", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceRegexAttributeFilter.java#L121-L125
126,732
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceRegexAttributeFilter.java
RegisteredServiceRegexAttributeFilter.logReleasedAttributeEntry
private void logReleasedAttributeEntry(final String attributeName, final Object attributeValue) { LOGGER.debug("The attribute value [{}] for attribute name [{}] matches the pattern [{}]. Releasing attribute...", attributeValue, attributeName, this.compiledPattern.pattern()); }
java
private void logReleasedAttributeEntry(final String attributeName, final Object attributeValue) { LOGGER.debug("The attribute value [{}] for attribute name [{}] matches the pattern [{}]. Releasing attribute...", attributeValue, attributeName, this.compiledPattern.pattern()); }
[ "private", "void", "logReleasedAttributeEntry", "(", "final", "String", "attributeName", ",", "final", "Object", "attributeValue", ")", "{", "LOGGER", ".", "debug", "(", "\"The attribute value [{}] for attribute name [{}] matches the pattern [{}]. Releasing attribute...\"", ",", ...
Logs the released attribute entry. @param attributeName the attribute name @param attributeValue the attribute value
[ "Logs", "the", "released", "attribute", "entry", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/support/RegisteredServiceRegexAttributeFilter.java#L133-L136
126,733
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java
AbstractMetadataResolverAdapter.getResourceInputStream
protected InputStream getResourceInputStream(final Resource resource, final String entityId) throws IOException { LOGGER.debug("Locating metadata resource from input stream."); if (!resource.exists() || !resource.isReadable()) { throw new FileNotFoundException("Resource does not exist or is ...
java
protected InputStream getResourceInputStream(final Resource resource, final String entityId) throws IOException { LOGGER.debug("Locating metadata resource from input stream."); if (!resource.exists() || !resource.isReadable()) { throw new FileNotFoundException("Resource does not exist or is ...
[ "protected", "InputStream", "getResourceInputStream", "(", "final", "Resource", "resource", ",", "final", "String", "entityId", ")", "throws", "IOException", "{", "LOGGER", ".", "debug", "(", "\"Locating metadata resource from input stream.\"", ")", ";", "if", "(", "!...
Retrieve the remote source's input stream to parse data. @param resource the resource @param entityId the entity id @return the input stream @throws IOException if stream cannot be read
[ "Retrieve", "the", "remote", "source", "s", "input", "stream", "to", "parse", "data", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java#L81-L87
126,734
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java
AbstractMetadataResolverAdapter.buildMetadataResolverAggregate
@Synchronized @SneakyThrows public void buildMetadataResolverAggregate(final String entityId) { LOGGER.trace("Building metadata resolver aggregate"); this.metadataResolver = new ChainingMetadataResolver(); val resolvers = new ArrayList<MetadataResolver>(); val entries = this.meta...
java
@Synchronized @SneakyThrows public void buildMetadataResolverAggregate(final String entityId) { LOGGER.trace("Building metadata resolver aggregate"); this.metadataResolver = new ChainingMetadataResolver(); val resolvers = new ArrayList<MetadataResolver>(); val entries = this.meta...
[ "@", "Synchronized", "@", "SneakyThrows", "public", "void", "buildMetadataResolverAggregate", "(", "final", "String", "entityId", ")", "{", "LOGGER", ".", "trace", "(", "\"Building metadata resolver aggregate\"", ")", ";", "this", ".", "metadataResolver", "=", "new", ...
Build metadata resolver aggregate. Loops through metadata resources and attempts to resolve the metadata. @param entityId the entity id
[ "Build", "metadata", "resolver", "aggregate", ".", "Loops", "through", "metadata", "resources", "and", "attempts", "to", "resolve", "the", "metadata", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java#L112-L129
126,735
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java
AbstractMetadataResolverAdapter.loadMetadataFromResource
private List<MetadataResolver> loadMetadataFromResource(final MetadataFilter metadataFilter, final Resource resource, final String entityId) { LOGGER.debug("Evaluating metadata resource [{}]", resource.getFilename()); try (val in = getResourceInputStream(resource, entityId)) { if (in.availab...
java
private List<MetadataResolver> loadMetadataFromResource(final MetadataFilter metadataFilter, final Resource resource, final String entityId) { LOGGER.debug("Evaluating metadata resource [{}]", resource.getFilename()); try (val in = getResourceInputStream(resource, entityId)) { if (in.availab...
[ "private", "List", "<", "MetadataResolver", ">", "loadMetadataFromResource", "(", "final", "MetadataFilter", "metadataFilter", ",", "final", "Resource", "resource", ",", "final", "String", "entityId", ")", "{", "LOGGER", ".", "debug", "(", "\"Evaluating metadata resou...
Load metadata from resource. @param metadataFilter the metadata filter @param resource the resource @param entityId the entity id @return the list
[ "Load", "metadata", "from", "resource", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java#L139-L152
126,736
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java
AbstractMetadataResolverAdapter.buildSingleMetadataResolver
private List<MetadataResolver> buildSingleMetadataResolver(final MetadataFilter metadataFilterChain, final Resource resource, final Document document) { try { val metadataRoot = document.getDocumentElement(); val metadataProvider = new DOMMetadataResolver(metadataRoot); metad...
java
private List<MetadataResolver> buildSingleMetadataResolver(final MetadataFilter metadataFilterChain, final Resource resource, final Document document) { try { val metadataRoot = document.getDocumentElement(); val metadataProvider = new DOMMetadataResolver(metadataRoot); metad...
[ "private", "List", "<", "MetadataResolver", ">", "buildSingleMetadataResolver", "(", "final", "MetadataFilter", "metadataFilterChain", ",", "final", "Resource", "resource", ",", "final", "Document", "document", ")", "{", "try", "{", "val", "metadataRoot", "=", "docu...
Build single metadata resolver. @param metadataFilterChain the metadata filters chained together @param resource the resource @param document the xml document to parse @return list of resolved metadata from resources.
[ "Build", "single", "metadata", "resolver", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/AbstractMetadataResolverAdapter.java#L162-L182
126,737
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationBuilder.java
DefaultAuthenticationBuilder.newInstance
public static AuthenticationBuilder newInstance(final Authentication source) { val builder = new DefaultAuthenticationBuilder(source.getPrincipal()); builder.setAuthenticationDate(source.getAuthenticationDate()); builder.setCredentials(source.getCredentials()); builder.setSuccesses(sourc...
java
public static AuthenticationBuilder newInstance(final Authentication source) { val builder = new DefaultAuthenticationBuilder(source.getPrincipal()); builder.setAuthenticationDate(source.getAuthenticationDate()); builder.setCredentials(source.getCredentials()); builder.setSuccesses(sourc...
[ "public", "static", "AuthenticationBuilder", "newInstance", "(", "final", "Authentication", "source", ")", "{", "val", "builder", "=", "new", "DefaultAuthenticationBuilder", "(", "source", ".", "getPrincipal", "(", ")", ")", ";", "builder", ".", "setAuthenticationDa...
Creates a new builder initialized with data from the given authentication source. @param source Authentication source. @return New builder instance initialized with all fields in the given authentication source.
[ "Creates", "a", "new", "builder", "initialized", "with", "data", "from", "the", "given", "authentication", "source", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationBuilder.java#L88-L97
126,738
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationBuilder.java
DefaultAuthenticationBuilder.setCredentials
public AuthenticationBuilder setCredentials(final @NonNull List<CredentialMetaData> credentials) { this.credentials.clear(); this.credentials.addAll(credentials); return this; }
java
public AuthenticationBuilder setCredentials(final @NonNull List<CredentialMetaData> credentials) { this.credentials.clear(); this.credentials.addAll(credentials); return this; }
[ "public", "AuthenticationBuilder", "setCredentials", "(", "final", "@", "NonNull", "List", "<", "CredentialMetaData", ">", "credentials", ")", "{", "this", ".", "credentials", ".", "clear", "(", ")", ";", "this", ".", "credentials", ".", "addAll", "(", "creden...
Sets the list of metadata about credentials presented for authentication. @param credentials Non-null list of credential metadata. @return This builder instance.
[ "Sets", "the", "list", "of", "metadata", "about", "credentials", "presented", "for", "authentication", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationBuilder.java#L153-L157
126,739
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/TimeBasedRegisteredServiceAccessStrategy.java
TimeBasedRegisteredServiceAccessStrategy.doesEndingTimeAllowServiceAccess
protected boolean doesEndingTimeAllowServiceAccess() { if (this.endingDateTime != null) { val et = DateTimeUtils.zonedDateTimeOf(this.endingDateTime); if (et != null) { val now = ZonedDateTime.now(ZoneOffset.UTC); if (now.isAfter(et)) { ...
java
protected boolean doesEndingTimeAllowServiceAccess() { if (this.endingDateTime != null) { val et = DateTimeUtils.zonedDateTimeOf(this.endingDateTime); if (et != null) { val now = ZonedDateTime.now(ZoneOffset.UTC); if (now.isAfter(et)) { ...
[ "protected", "boolean", "doesEndingTimeAllowServiceAccess", "(", ")", "{", "if", "(", "this", ".", "endingDateTime", "!=", "null", ")", "{", "val", "et", "=", "DateTimeUtils", ".", "zonedDateTimeOf", "(", "this", ".", "endingDateTime", ")", ";", "if", "(", "...
Does ending time allow service access boolean. @return true/false
[ "Does", "ending", "time", "allow", "service", "access", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/TimeBasedRegisteredServiceAccessStrategy.java#L66-L87
126,740
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/TimeBasedRegisteredServiceAccessStrategy.java
TimeBasedRegisteredServiceAccessStrategy.doesStartingTimeAllowServiceAccess
protected boolean doesStartingTimeAllowServiceAccess() { if (this.startingDateTime != null) { val st = DateTimeUtils.zonedDateTimeOf(this.startingDateTime); if (st != null) { val now = ZonedDateTime.now(ZoneOffset.UTC); if (now.isBefore(st)) { ...
java
protected boolean doesStartingTimeAllowServiceAccess() { if (this.startingDateTime != null) { val st = DateTimeUtils.zonedDateTimeOf(this.startingDateTime); if (st != null) { val now = ZonedDateTime.now(ZoneOffset.UTC); if (now.isBefore(st)) { ...
[ "protected", "boolean", "doesStartingTimeAllowServiceAccess", "(", ")", "{", "if", "(", "this", ".", "startingDateTime", "!=", "null", ")", "{", "val", "st", "=", "DateTimeUtils", ".", "zonedDateTimeOf", "(", "this", ".", "startingDateTime", ")", ";", "if", "(...
Does starting time allow service access boolean. @return true/false
[ "Does", "starting", "time", "allow", "service", "access", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/TimeBasedRegisteredServiceAccessStrategy.java#L94-L115
126,741
apereo/cas
core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/support/BaseDelegatingExpirationPolicy.java
BaseDelegatingExpirationPolicy.getExpirationPolicyFor
protected Optional<ExpirationPolicy> getExpirationPolicyFor(final TicketState ticketState) { val name = getExpirationPolicyNameFor(ticketState); LOGGER.trace("Received expiration policy name [{}] to activate", name); if (StringUtils.isNotBlank(name) && policies.containsKey(name)) { v...
java
protected Optional<ExpirationPolicy> getExpirationPolicyFor(final TicketState ticketState) { val name = getExpirationPolicyNameFor(ticketState); LOGGER.trace("Received expiration policy name [{}] to activate", name); if (StringUtils.isNotBlank(name) && policies.containsKey(name)) { v...
[ "protected", "Optional", "<", "ExpirationPolicy", ">", "getExpirationPolicyFor", "(", "final", "TicketState", "ticketState", ")", "{", "val", "name", "=", "getExpirationPolicyNameFor", "(", "ticketState", ")", ";", "LOGGER", ".", "trace", "(", "\"Received expiration p...
Gets expiration policy by its name. @param ticketState the ticket state @return the expiration policy for
[ "Gets", "expiration", "policy", "by", "its", "name", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/support/BaseDelegatingExpirationPolicy.java#L130-L140
126,742
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/MetadataUIUtils.java
MetadataUIUtils.getSPSsoDescriptor
public static SPSSODescriptor getSPSsoDescriptor(final EntityDescriptor entityDescriptor) { LOGGER.trace("Locating SP SSO descriptor for SAML2 protocol..."); var spssoDescriptor = entityDescriptor.getSPSSODescriptor(SAMLConstants.SAML20P_NS); if (spssoDescriptor == null) { LOGGER.tra...
java
public static SPSSODescriptor getSPSsoDescriptor(final EntityDescriptor entityDescriptor) { LOGGER.trace("Locating SP SSO descriptor for SAML2 protocol..."); var spssoDescriptor = entityDescriptor.getSPSSODescriptor(SAMLConstants.SAML20P_NS); if (spssoDescriptor == null) { LOGGER.tra...
[ "public", "static", "SPSSODescriptor", "getSPSsoDescriptor", "(", "final", "EntityDescriptor", "entityDescriptor", ")", "{", "LOGGER", ".", "trace", "(", "\"Locating SP SSO descriptor for SAML2 protocol...\"", ")", ";", "var", "spssoDescriptor", "=", "entityDescriptor", "."...
Gets SP SSO descriptor. @param entityDescriptor the entity descriptor @return the SP SSO descriptor
[ "Gets", "SP", "SSO", "descriptor", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/MetadataUIUtils.java#L31-L44
126,743
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/MetadataUIUtils.java
MetadataUIUtils.locateMetadataUserInterfaceForEntityId
public static SamlMetadataUIInfo locateMetadataUserInterfaceForEntityId(final MetadataResolverAdapter metadataAdapter, final String entityId, final RegisteredService registeredService, final HttpServletRequest requestContext) { val enti...
java
public static SamlMetadataUIInfo locateMetadataUserInterfaceForEntityId(final MetadataResolverAdapter metadataAdapter, final String entityId, final RegisteredService registeredService, final HttpServletRequest requestContext) { val enti...
[ "public", "static", "SamlMetadataUIInfo", "locateMetadataUserInterfaceForEntityId", "(", "final", "MetadataResolverAdapter", "metadataAdapter", ",", "final", "String", "entityId", ",", "final", "RegisteredService", "registeredService", ",", "final", "HttpServletRequest", "reque...
Locate MDUI for entity id simple metadata ui info. @param metadataAdapter the metadata adapter @param entityId the entity id @param registeredService the registered service @param requestContext the request context @return the simple metadata ui info
[ "Locate", "MDUI", "for", "entity", "id", "simple", "metadata", "ui", "info", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/MetadataUIUtils.java#L66-L70
126,744
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/MetadataUIUtils.java
MetadataUIUtils.locateMetadataUserInterfaceForEntityId
public static SamlMetadataUIInfo locateMetadataUserInterfaceForEntityId(final EntityDescriptor entityDescriptor, final String entityId, final RegisteredService registeredService, final HttpServletRequest requestContext) { val mdui = new...
java
public static SamlMetadataUIInfo locateMetadataUserInterfaceForEntityId(final EntityDescriptor entityDescriptor, final String entityId, final RegisteredService registeredService, final HttpServletRequest requestContext) { val mdui = new...
[ "public", "static", "SamlMetadataUIInfo", "locateMetadataUserInterfaceForEntityId", "(", "final", "EntityDescriptor", "entityDescriptor", ",", "final", "String", "entityId", ",", "final", "RegisteredService", "registeredService", ",", "final", "HttpServletRequest", "requestCont...
Locate mdui for entity id simple metadata ui info. @param entityDescriptor the entity descriptor @param entityId the entity id @param registeredService the registered service @param requestContext the request context @return the simple metadata ui info
[ "Locate", "mdui", "for", "entity", "id", "simple", "metadata", "ui", "info", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/MetadataUIUtils.java#L81-L109
126,745
apereo/cas
support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java
RegisteredServiceCouchDbRepository.findByServiceId
@View(name = "by_serviceId", map = "function(doc) { if (doc.service) { emit(doc.service.serviceId, doc._id) }}") public RegisteredServiceDocument findByServiceId(final String serviceId) { return queryView("by_serviceId", serviceId).stream().findFirst().orElse(null); }
java
@View(name = "by_serviceId", map = "function(doc) { if (doc.service) { emit(doc.service.serviceId, doc._id) }}") public RegisteredServiceDocument findByServiceId(final String serviceId) { return queryView("by_serviceId", serviceId).stream().findFirst().orElse(null); }
[ "@", "View", "(", "name", "=", "\"by_serviceId\"", ",", "map", "=", "\"function(doc) { if (doc.service) { emit(doc.service.serviceId, doc._id) }}\"", ")", "public", "RegisteredServiceDocument", "findByServiceId", "(", "final", "String", "serviceId", ")", "{", "return", "que...
Implements search by serviceId. @param serviceId The serviceId of the service to find. @return The service found or +null+.
[ "Implements", "search", "by", "serviceId", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java#L36-L39
126,746
apereo/cas
support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java
RegisteredServiceCouchDbRepository.findByServiceName
@View(name = "by_serviceName", map = "function(doc) { if (doc.service) { emit(doc.service.name, doc._id) }}") public RegisteredServiceDocument findByServiceName(final String serviceName) { try { return queryView("by_serviceName", serviceName).stream().findFirst().orElse(null); } catch (f...
java
@View(name = "by_serviceName", map = "function(doc) { if (doc.service) { emit(doc.service.name, doc._id) }}") public RegisteredServiceDocument findByServiceName(final String serviceName) { try { return queryView("by_serviceName", serviceName).stream().findFirst().orElse(null); } catch (f...
[ "@", "View", "(", "name", "=", "\"by_serviceName\"", ",", "map", "=", "\"function(doc) { if (doc.service) { emit(doc.service.name, doc._id) }}\"", ")", "public", "RegisteredServiceDocument", "findByServiceName", "(", "final", "String", "serviceName", ")", "{", "try", "{", ...
Implements search by service name. @param serviceName The service name of the service to find. @return The service found or +null+.
[ "Implements", "search", "by", "service", "name", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java#L47-L55
126,747
apereo/cas
support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java
RegisteredServiceCouchDbRepository.get
public RegisteredServiceDocument get(final long id) { try { return this.get(String.valueOf(id)); } catch (final DocumentNotFoundException e) { LOGGER.debug("Service [{}] not found. [{}]", id, e.getMessage()); return null; } }
java
public RegisteredServiceDocument get(final long id) { try { return this.get(String.valueOf(id)); } catch (final DocumentNotFoundException e) { LOGGER.debug("Service [{}] not found. [{}]", id, e.getMessage()); return null; } }
[ "public", "RegisteredServiceDocument", "get", "(", "final", "long", "id", ")", "{", "try", "{", "return", "this", ".", "get", "(", "String", ".", "valueOf", "(", "id", ")", ")", ";", "}", "catch", "(", "final", "DocumentNotFoundException", "e", ")", "{",...
Overload wrapper for long type. Get service by ID. @param id Service ID @return service
[ "Overload", "wrapper", "for", "long", "type", ".", "Get", "service", "by", "ID", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java#L63-L70
126,748
apereo/cas
support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java
RegisteredServiceCouchDbRepository.size
@View(name = "size", map = "function(doc) { if (doc.service) { emit(doc, doc._id) }}", reduce = "_count") public int size() { val r = db.queryView(createQuery("size")); LOGGER.trace("r.isEmpty [{}]", r.isEmpty()); LOGGER.trace("r.getRows [{}]", r.getRows()); if (r.isEmpty()) { ...
java
@View(name = "size", map = "function(doc) { if (doc.service) { emit(doc, doc._id) }}", reduce = "_count") public int size() { val r = db.queryView(createQuery("size")); LOGGER.trace("r.isEmpty [{}]", r.isEmpty()); LOGGER.trace("r.getRows [{}]", r.getRows()); if (r.isEmpty()) { ...
[ "@", "View", "(", "name", "=", "\"size\"", ",", "map", "=", "\"function(doc) { if (doc.service) { emit(doc, doc._id) }}\"", ",", "reduce", "=", "\"_count\"", ")", "public", "int", "size", "(", ")", "{", "val", "r", "=", "db", ".", "queryView", "(", "createQuer...
Size of the service database. @return The service count in the database.
[ "Size", "of", "the", "service", "database", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-service-registry/src/main/java/org/apereo/cas/couchdb/services/RegisteredServiceCouchDbRepository.java#L77-L87
126,749
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/authentication/principal/SamlServiceFactory.java
SamlServiceFactory.getRequestBody
private static String getRequestBody(final HttpServletRequest request) { val body = readRequestBodyIfAny(request); if (!StringUtils.hasText(body)) { LOGGER.trace("Looking at the request attribute [{}] to locate SAML request body", SamlProtocolConstants.PARAMETER_SAML_REQUEST); re...
java
private static String getRequestBody(final HttpServletRequest request) { val body = readRequestBodyIfAny(request); if (!StringUtils.hasText(body)) { LOGGER.trace("Looking at the request attribute [{}] to locate SAML request body", SamlProtocolConstants.PARAMETER_SAML_REQUEST); re...
[ "private", "static", "String", "getRequestBody", "(", "final", "HttpServletRequest", "request", ")", "{", "val", "body", "=", "readRequestBodyIfAny", "(", "request", ")", ";", "if", "(", "!", "StringUtils", ".", "hasText", "(", "body", ")", ")", "{", "LOGGER...
Gets the request body from the request. @param request the request @return the request body
[ "Gets", "the", "request", "body", "from", "the", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/authentication/principal/SamlServiceFactory.java#L37-L44
126,750
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/ApplicationContextProvider.java
ApplicationContextProvider.registerBeanIntoApplicationContext
public static <T> T registerBeanIntoApplicationContext(final ConfigurableApplicationContext applicationContext, final Class<T> beanClazz, final String beanId) { val beanFactory = applicationContext.getBeanFactory(); val provider = beanFactory.cr...
java
public static <T> T registerBeanIntoApplicationContext(final ConfigurableApplicationContext applicationContext, final Class<T> beanClazz, final String beanId) { val beanFactory = applicationContext.getBeanFactory(); val provider = beanFactory.cr...
[ "public", "static", "<", "T", ">", "T", "registerBeanIntoApplicationContext", "(", "final", "ConfigurableApplicationContext", "applicationContext", ",", "final", "Class", "<", "T", ">", "beanClazz", ",", "final", "String", "beanId", ")", "{", "val", "beanFactory", ...
Register bean into application context. @param <T> the type parameter @param applicationContext the application context @param beanClazz the bean clazz @param beanId the bean id @return the type registered
[ "Register", "bean", "into", "application", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/ApplicationContextProvider.java#L54-L62
126,751
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/ApplicationContextProvider.java
ApplicationContextProvider.registerBeanIntoApplicationContext
public static <T> T registerBeanIntoApplicationContext(final ConfigurableApplicationContext applicationContext, final T beanInstance, final String beanId) { val beanFactory = applicationContext.getBeanFactory(); if (beanFactory.containsBean(bean...
java
public static <T> T registerBeanIntoApplicationContext(final ConfigurableApplicationContext applicationContext, final T beanInstance, final String beanId) { val beanFactory = applicationContext.getBeanFactory(); if (beanFactory.containsBean(bean...
[ "public", "static", "<", "T", ">", "T", "registerBeanIntoApplicationContext", "(", "final", "ConfigurableApplicationContext", "applicationContext", ",", "final", "T", "beanInstance", ",", "final", "String", "beanId", ")", "{", "val", "beanFactory", "=", "applicationCo...
Register bean into application context t. @param <T> the type parameter @param applicationContext the application context @param beanInstance the bean instance @param beanId the bean id @return the t
[ "Register", "bean", "into", "application", "context", "t", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/ApplicationContextProvider.java#L73-L83
126,752
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/ApplicationContextProvider.java
ApplicationContextProvider.getCasConfigurationProperties
public static Optional<CasConfigurationProperties> getCasConfigurationProperties() { if (CONTEXT != null) { return Optional.of(CONTEXT.getBean(CasConfigurationProperties.class)); } return Optional.empty(); }
java
public static Optional<CasConfigurationProperties> getCasConfigurationProperties() { if (CONTEXT != null) { return Optional.of(CONTEXT.getBean(CasConfigurationProperties.class)); } return Optional.empty(); }
[ "public", "static", "Optional", "<", "CasConfigurationProperties", ">", "getCasConfigurationProperties", "(", ")", "{", "if", "(", "CONTEXT", "!=", "null", ")", "{", "return", "Optional", ".", "of", "(", "CONTEXT", ".", "getBean", "(", "CasConfigurationProperties"...
Gets cas properties. @return the cas properties
[ "Gets", "cas", "properties", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/ApplicationContextProvider.java#L100-L105
126,753
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/CachingPrincipalAttributesRepository.java
CachingPrincipalAttributesRepository.getCachedPrincipalAttributes
@JsonIgnore protected Map<String, List<Object>> getCachedPrincipalAttributes(final Principal principal, final RegisteredService registeredService) { try { val cache = getCacheInstanceFromApplicationContext(); return cache.getCachedAttributesFor(registeredService, this, principal); ...
java
@JsonIgnore protected Map<String, List<Object>> getCachedPrincipalAttributes(final Principal principal, final RegisteredService registeredService) { try { val cache = getCacheInstanceFromApplicationContext(); return cache.getCachedAttributesFor(registeredService, this, principal); ...
[ "@", "JsonIgnore", "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "getCachedPrincipalAttributes", "(", "final", "Principal", "principal", ",", "final", "RegisteredService", "registeredService", ")", "{", "try", "{", "val", "cache", "=",...
Gets cached principal attributes. @param principal the principal @param registeredService the registered service @return the cached principal attributes
[ "Gets", "cached", "principal", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/CachingPrincipalAttributesRepository.java#L100-L109
126,754
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/CachingPrincipalAttributesRepository.java
CachingPrincipalAttributesRepository.getCacheInstanceFromApplicationContext
@JsonIgnore public PrincipalAttributesRepositoryCache getCacheInstanceFromApplicationContext() { val ctx = ApplicationContextProvider.getApplicationContext(); return ctx.getBean("principalAttributesRepositoryCache", PrincipalAttributesRepositoryCache.class); }
java
@JsonIgnore public PrincipalAttributesRepositoryCache getCacheInstanceFromApplicationContext() { val ctx = ApplicationContextProvider.getApplicationContext(); return ctx.getBean("principalAttributesRepositoryCache", PrincipalAttributesRepositoryCache.class); }
[ "@", "JsonIgnore", "public", "PrincipalAttributesRepositoryCache", "getCacheInstanceFromApplicationContext", "(", ")", "{", "val", "ctx", "=", "ApplicationContextProvider", ".", "getApplicationContext", "(", ")", ";", "return", "ctx", ".", "getBean", "(", "\"principalAttr...
Gets cache instance from application context. @return the cache instance from application context
[ "Gets", "cache", "instance", "from", "application", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/CachingPrincipalAttributesRepository.java#L116-L120
126,755
apereo/cas
support/cas-server-support-saml-googleapps-core/src/main/java/org/apereo/cas/support/saml/authentication/principal/GoogleAccountsServiceResponseBuilder.java
GoogleAccountsServiceResponseBuilder.createGoogleAppsPrivateKey
protected void createGoogleAppsPrivateKey() throws Exception { if (!isValidConfiguration()) { LOGGER.debug("Google Apps private key bean will not be created, because it's not configured"); return; } val bean = new PrivateKeyFactoryBean(); if (this.privateKeyLoca...
java
protected void createGoogleAppsPrivateKey() throws Exception { if (!isValidConfiguration()) { LOGGER.debug("Google Apps private key bean will not be created, because it's not configured"); return; } val bean = new PrivateKeyFactoryBean(); if (this.privateKeyLoca...
[ "protected", "void", "createGoogleAppsPrivateKey", "(", ")", "throws", "Exception", "{", "if", "(", "!", "isValidConfiguration", "(", ")", ")", "{", "LOGGER", ".", "debug", "(", "\"Google Apps private key bean will not be created, because it's not configured\"", ")", ";",...
Create the private key. @throws Exception if key creation ran into an error
[ "Create", "the", "private", "key", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-googleapps-core/src/main/java/org/apereo/cas/support/saml/authentication/principal/GoogleAccountsServiceResponseBuilder.java#L143-L165
126,756
apereo/cas
support/cas-server-support-saml-googleapps-core/src/main/java/org/apereo/cas/support/saml/authentication/principal/GoogleAccountsServiceResponseBuilder.java
GoogleAccountsServiceResponseBuilder.createGoogleAppsPublicKey
protected void createGoogleAppsPublicKey() throws Exception { if (!isValidConfiguration()) { LOGGER.debug("Google Apps public key bean will not be created, because it's not configured"); return; } val bean = new PublicKeyFactoryBean(); if (this.publicKeyLocation....
java
protected void createGoogleAppsPublicKey() throws Exception { if (!isValidConfiguration()) { LOGGER.debug("Google Apps public key bean will not be created, because it's not configured"); return; } val bean = new PublicKeyFactoryBean(); if (this.publicKeyLocation....
[ "protected", "void", "createGoogleAppsPublicKey", "(", ")", "throws", "Exception", "{", "if", "(", "!", "isValidConfiguration", "(", ")", ")", "{", "LOGGER", ".", "debug", "(", "\"Google Apps public key bean will not be created, because it's not configured\"", ")", ";", ...
Create the public key. @throws Exception if key creation ran into an error
[ "Create", "the", "public", "key", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-googleapps-core/src/main/java/org/apereo/cas/support/saml/authentication/principal/GoogleAccountsServiceResponseBuilder.java#L172-L193
126,757
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java
DefaultLogoutWebflowConfigurer.createTerminateSessionActionState
protected ActionState createTerminateSessionActionState(final Flow flow) { val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_TERMINATE_SESSION, CasWebflowConstants.ACTION_ID_TERMINATE_SESSION); createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_WARN, CasWebflowC...
java
protected ActionState createTerminateSessionActionState(final Flow flow) { val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_TERMINATE_SESSION, CasWebflowConstants.ACTION_ID_TERMINATE_SESSION); createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_WARN, CasWebflowC...
[ "protected", "ActionState", "createTerminateSessionActionState", "(", "final", "Flow", "flow", ")", "{", "val", "actionState", "=", "createActionState", "(", "flow", ",", "CasWebflowConstants", ".", "STATE_ID_TERMINATE_SESSION", ",", "CasWebflowConstants", ".", "ACTION_ID...
Create terminate session action state. @param flow the flow @return the action state
[ "Create", "terminate", "session", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java#L65-L70
126,758
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java
DefaultLogoutWebflowConfigurer.createLogoutViewState
protected void createLogoutViewState(final Flow flow) { val logoutView = createEndState(flow, CasWebflowConstants.STATE_ID_LOGOUT_VIEW, "casLogoutView"); logoutView.getEntryActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_LOGOUT_VIEW_SETUP)); }
java
protected void createLogoutViewState(final Flow flow) { val logoutView = createEndState(flow, CasWebflowConstants.STATE_ID_LOGOUT_VIEW, "casLogoutView"); logoutView.getEntryActionList().add(createEvaluateAction(CasWebflowConstants.ACTION_ID_LOGOUT_VIEW_SETUP)); }
[ "protected", "void", "createLogoutViewState", "(", "final", "Flow", "flow", ")", "{", "val", "logoutView", "=", "createEndState", "(", "flow", ",", "CasWebflowConstants", ".", "STATE_ID_LOGOUT_VIEW", ",", "\"casLogoutView\"", ")", ";", "logoutView", ".", "getEntryAc...
Create logout view state. @param flow the flow
[ "Create", "logout", "view", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java#L87-L90
126,759
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java
DefaultLogoutWebflowConfigurer.createFrontLogoutActionState
protected void createFrontLogoutActionState(final Flow flow) { val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_FRONT_LOGOUT, createEvaluateAction("frontChannelLogoutAction")); createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_FINISH, CasWebflowCon...
java
protected void createFrontLogoutActionState(final Flow flow) { val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_FRONT_LOGOUT, createEvaluateAction("frontChannelLogoutAction")); createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_FINISH, CasWebflowCon...
[ "protected", "void", "createFrontLogoutActionState", "(", "final", "Flow", "flow", ")", "{", "val", "actionState", "=", "createActionState", "(", "flow", ",", "CasWebflowConstants", ".", "STATE_ID_FRONT_LOGOUT", ",", "createEvaluateAction", "(", "\"frontChannelLogoutActio...
Create front logout action state. @param flow the flow
[ "Create", "front", "logout", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java#L106-L112
126,760
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java
DefaultLogoutWebflowConfigurer.createDoLogoutActionState
private void createDoLogoutActionState(final Flow flow) { val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_DO_LOGOUT, createEvaluateAction("logoutAction")); createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_FINISH, CasWebflowConstants.STATE_ID_FINISH_LOGOUT); ...
java
private void createDoLogoutActionState(final Flow flow) { val actionState = createActionState(flow, CasWebflowConstants.STATE_ID_DO_LOGOUT, createEvaluateAction("logoutAction")); createTransitionForState(actionState, CasWebflowConstants.TRANSITION_ID_FINISH, CasWebflowConstants.STATE_ID_FINISH_LOGOUT); ...
[ "private", "void", "createDoLogoutActionState", "(", "final", "Flow", "flow", ")", "{", "val", "actionState", "=", "createActionState", "(", "flow", ",", "CasWebflowConstants", ".", "STATE_ID_DO_LOGOUT", ",", "createEvaluateAction", "(", "\"logoutAction\"", ")", ")", ...
Create do logout action state. @param flow the flow
[ "Create", "do", "logout", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java#L119-L123
126,761
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java
DefaultLogoutWebflowConfigurer.createLogoutConfirmationView
protected void createLogoutConfirmationView(final Flow flow) { val view = createViewState(flow, CasWebflowConstants.STATE_ID_CONFIRM_LOGOUT_VIEW, "casConfirmLogoutView"); createTransitionForState(view, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_TERMINATE_SESSION); }
java
protected void createLogoutConfirmationView(final Flow flow) { val view = createViewState(flow, CasWebflowConstants.STATE_ID_CONFIRM_LOGOUT_VIEW, "casConfirmLogoutView"); createTransitionForState(view, CasWebflowConstants.TRANSITION_ID_SUCCESS, CasWebflowConstants.STATE_ID_TERMINATE_SESSION); }
[ "protected", "void", "createLogoutConfirmationView", "(", "final", "Flow", "flow", ")", "{", "val", "view", "=", "createViewState", "(", "flow", ",", "CasWebflowConstants", ".", "STATE_ID_CONFIRM_LOGOUT_VIEW", ",", "\"casConfirmLogoutView\"", ")", ";", "createTransition...
Create logout confirmation view. @param flow the flow
[ "Create", "logout", "confirmation", "view", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/DefaultLogoutWebflowConfigurer.java#L130-L133
126,762
apereo/cas
support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/CouchDbSamlMetadataDocument.java
CouchDbSamlMetadataDocument.merge
public CouchDbSamlMetadataDocument merge(final SamlMetadataDocument document) { setId(document.getId()); setName(document.getName()); setValue(document.getValue()); setSignature(document.getSignature()); return this; }
java
public CouchDbSamlMetadataDocument merge(final SamlMetadataDocument document) { setId(document.getId()); setName(document.getName()); setValue(document.getValue()); setSignature(document.getSignature()); return this; }
[ "public", "CouchDbSamlMetadataDocument", "merge", "(", "final", "SamlMetadataDocument", "document", ")", "{", "setId", "(", "document", ".", "getId", "(", ")", ")", ";", "setName", "(", "document", ".", "getName", "(", ")", ")", ";", "setValue", "(", "docume...
Merge other into this. @param document other document to merge in @return this
[ "Merge", "other", "into", "this", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-metadata-couchdb/src/main/java/org/apereo/cas/couchdb/saml/CouchDbSamlMetadataDocument.java#L47-L53
126,763
apereo/cas
support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/ServiceTicketResource.java
ServiceTicketResource.createServiceTicket
@PostMapping(value = "/v1/tickets/{tgtId:.+}", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public ResponseEntity<String> createServiceTicket(final HttpServletRequest httpServletRequest, @RequestBody(required = false) final MultiValueMap<String, Strin...
java
@PostMapping(value = "/v1/tickets/{tgtId:.+}", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public ResponseEntity<String> createServiceTicket(final HttpServletRequest httpServletRequest, @RequestBody(required = false) final MultiValueMap<String, Strin...
[ "@", "PostMapping", "(", "value", "=", "\"/v1/tickets/{tgtId:.+}\"", ",", "consumes", "=", "MediaType", ".", "APPLICATION_FORM_URLENCODED_VALUE", ")", "public", "ResponseEntity", "<", "String", ">", "createServiceTicket", "(", "final", "HttpServletRequest", "httpServletRe...
Create new service ticket. @param httpServletRequest http request @param requestBody request body @param tgtId ticket granting ticket id URI path param @return {@link ResponseEntity} representing RESTful response
[ "Create", "new", "service", "ticket", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/ServiceTicketResource.java#L65-L108
126,764
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java
SamlUtils.readCertificate
public static X509Certificate readCertificate(final Resource resource) { try (val in = resource.getInputStream()) { return CertUtil.readCertificate(in); } catch (final Exception e) { throw new IllegalArgumentException("Error reading certificate " + resource, e); } }
java
public static X509Certificate readCertificate(final Resource resource) { try (val in = resource.getInputStream()) { return CertUtil.readCertificate(in); } catch (final Exception e) { throw new IllegalArgumentException("Error reading certificate " + resource, e); } }
[ "public", "static", "X509Certificate", "readCertificate", "(", "final", "Resource", "resource", ")", "{", "try", "(", "val", "in", "=", "resource", ".", "getInputStream", "(", ")", ")", "{", "return", "CertUtil", ".", "readCertificate", "(", "in", ")", ";", ...
Read certificate x 509 certificate. @param resource the resource @return the x 509 certificate
[ "Read", "certificate", "x", "509", "certificate", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java#L55-L61
126,765
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java
SamlUtils.transformSamlObject
public static StringWriter transformSamlObject(final OpenSamlConfigBean configBean, final XMLObject samlObject) throws SamlException { return transformSamlObject(configBean, samlObject, false); }
java
public static StringWriter transformSamlObject(final OpenSamlConfigBean configBean, final XMLObject samlObject) throws SamlException { return transformSamlObject(configBean, samlObject, false); }
[ "public", "static", "StringWriter", "transformSamlObject", "(", "final", "OpenSamlConfigBean", "configBean", ",", "final", "XMLObject", "samlObject", ")", "throws", "SamlException", "{", "return", "transformSamlObject", "(", "configBean", ",", "samlObject", ",", "false"...
Transform saml object into string without indenting the final string. @param configBean the config bean @param samlObject the saml object @return the string writer @throws SamlException the saml exception
[ "Transform", "saml", "object", "into", "string", "without", "indenting", "the", "final", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java#L71-L73
126,766
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java
SamlUtils.transformSamlObject
public static StringWriter transformSamlObject(final OpenSamlConfigBean configBean, final XMLObject samlObject, final boolean indent) throws SamlException { val writer = new StringWriter(); try { val marshaller = configBean.getMarshallerFact...
java
public static StringWriter transformSamlObject(final OpenSamlConfigBean configBean, final XMLObject samlObject, final boolean indent) throws SamlException { val writer = new StringWriter(); try { val marshaller = configBean.getMarshallerFact...
[ "public", "static", "StringWriter", "transformSamlObject", "(", "final", "OpenSamlConfigBean", "configBean", ",", "final", "XMLObject", "samlObject", ",", "final", "boolean", "indent", ")", "throws", "SamlException", "{", "val", "writer", "=", "new", "StringWriter", ...
Transform saml object to String. @param configBean the config bean @param samlObject the saml object @param indent the indent @return the string @throws SamlException the saml exception
[ "Transform", "saml", "object", "to", "String", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java#L126-L150
126,767
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java
SamlUtils.buildCredentialForMetadataSignatureValidation
public static BasicCredential buildCredentialForMetadataSignatureValidation(final Resource resource) throws Exception { try { val x509FactoryBean = new BasicX509CredentialFactoryBean(); x509FactoryBean.setCertificateResource(resource); x509FactoryBean.afterPropertiesSet(); ...
java
public static BasicCredential buildCredentialForMetadataSignatureValidation(final Resource resource) throws Exception { try { val x509FactoryBean = new BasicX509CredentialFactoryBean(); x509FactoryBean.setCertificateResource(resource); x509FactoryBean.afterPropertiesSet(); ...
[ "public", "static", "BasicCredential", "buildCredentialForMetadataSignatureValidation", "(", "final", "Resource", "resource", ")", "throws", "Exception", "{", "try", "{", "val", "x509FactoryBean", "=", "new", "BasicX509CredentialFactoryBean", "(", ")", ";", "x509FactoryBe...
Build credential for metadata signature validation basic credential. @param resource the resource @return the basic credential @throws Exception the exception
[ "Build", "credential", "for", "metadata", "signature", "validation", "basic", "credential", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java#L225-L240
126,768
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java
SamlUtils.logSamlObject
public static String logSamlObject(final OpenSamlConfigBean configBean, final XMLObject samlObject) throws SamlException { val repeat = "*".repeat(SAML_OBJECT_LOG_ASTERIXLINE_LENGTH); LOGGER.debug(repeat); try (val writer = transformSamlObject(configBean, samlObject, true)) { LOGGER....
java
public static String logSamlObject(final OpenSamlConfigBean configBean, final XMLObject samlObject) throws SamlException { val repeat = "*".repeat(SAML_OBJECT_LOG_ASTERIXLINE_LENGTH); LOGGER.debug(repeat); try (val writer = transformSamlObject(configBean, samlObject, true)) { LOGGER....
[ "public", "static", "String", "logSamlObject", "(", "final", "OpenSamlConfigBean", "configBean", ",", "final", "XMLObject", "samlObject", ")", "throws", "SamlException", "{", "val", "repeat", "=", "\"*\"", ".", "repeat", "(", "SAML_OBJECT_LOG_ASTERIXLINE_LENGTH", ")",...
Log saml object. @param configBean the config bean @param samlObject the saml object @return the string @throws SamlException the saml exception
[ "Log", "saml", "object", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/SamlUtils.java#L250-L260
126,769
apereo/cas
support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/metadata/WSFederationMetadataController.java
WSFederationMetadataController.doGet
@GetMapping(path = WSFederationConstants.ENDPOINT_FEDERATION_METADATA) public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws Exception { try { response.setContentType(MediaType.TEXT_HTML_VALUE); val out = response.getWriter(); val ...
java
@GetMapping(path = WSFederationConstants.ENDPOINT_FEDERATION_METADATA) public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws Exception { try { response.setContentType(MediaType.TEXT_HTML_VALUE); val out = response.getWriter(); val ...
[ "@", "GetMapping", "(", "path", "=", "WSFederationConstants", ".", "ENDPOINT_FEDERATION_METADATA", ")", "public", "void", "doGet", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ")", "throws", "Exception", "{", "try", ...
Get Metadata. @param request the request @param response the response @throws Exception the exception
[ "Get", "Metadata", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/metadata/WSFederationMetadataController.java#L36-L47
126,770
apereo/cas
support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/CouchDbConsentDecision.java
CouchDbConsentDecision.copyDetailsFrom
@SneakyThrows public CouchDbConsentDecision copyDetailsFrom(final ConsentDecision other) { setAttributes(other.getAttributes()); setPrincipal(other.getPrincipal()); setCreatedDate(other.getCreatedDate()); setId(other.getId()); setOptions(other.getOptions()); setRemind...
java
@SneakyThrows public CouchDbConsentDecision copyDetailsFrom(final ConsentDecision other) { setAttributes(other.getAttributes()); setPrincipal(other.getPrincipal()); setCreatedDate(other.getCreatedDate()); setId(other.getId()); setOptions(other.getOptions()); setRemind...
[ "@", "SneakyThrows", "public", "CouchDbConsentDecision", "copyDetailsFrom", "(", "final", "ConsentDecision", "other", ")", "{", "setAttributes", "(", "other", ".", "getAttributes", "(", ")", ")", ";", "setPrincipal", "(", "other", ".", "getPrincipal", "(", ")", ...
Copy consent details to this instance. @param other decision to copy details from. @return CouchDb capable consent decision.
[ "Copy", "consent", "details", "to", "this", "instance", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/CouchDbConsentDecision.java#L81-L92
126,771
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcClientRegistrationUtils.java
OidcClientRegistrationUtils.getClientRegistrationResponse
@SneakyThrows public static OidcClientRegistrationResponse getClientRegistrationResponse(final OidcRegisteredService registeredService, final String serverPrefix) { val clientResponse = new OidcClientRegistrationResponse(); ...
java
@SneakyThrows public static OidcClientRegistrationResponse getClientRegistrationResponse(final OidcRegisteredService registeredService, final String serverPrefix) { val clientResponse = new OidcClientRegistrationResponse(); ...
[ "@", "SneakyThrows", "public", "static", "OidcClientRegistrationResponse", "getClientRegistrationResponse", "(", "final", "OidcRegisteredService", "registeredService", ",", "final", "String", "serverPrefix", ")", "{", "val", "clientResponse", "=", "new", "OidcClientRegistrati...
Gets client registration response. @param registeredService the registered service @param serverPrefix the server prefix @return the client registration response
[ "Gets", "client", "registration", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcClientRegistrationUtils.java#L40-L82
126,772
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcClientRegistrationUtils.java
OidcClientRegistrationUtils.getClientConfigurationUri
public static String getClientConfigurationUri(final OidcRegisteredService registeredService, final String serverPrefix) throws URISyntaxException { return new URIBuilder(serverPrefix .concat('/' + OidcConstants.BASE_OIDC_URL + '/' + OidcConstants.C...
java
public static String getClientConfigurationUri(final OidcRegisteredService registeredService, final String serverPrefix) throws URISyntaxException { return new URIBuilder(serverPrefix .concat('/' + OidcConstants.BASE_OIDC_URL + '/' + OidcConstants.C...
[ "public", "static", "String", "getClientConfigurationUri", "(", "final", "OidcRegisteredService", "registeredService", ",", "final", "String", "serverPrefix", ")", "throws", "URISyntaxException", "{", "return", "new", "URIBuilder", "(", "serverPrefix", ".", "concat", "(...
Gets client configuration uri. @param registeredService the registered service @param serverPrefix the server prefix @return the client configuration uri @throws URISyntaxException the uri syntax exception
[ "Gets", "client", "configuration", "uri", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcClientRegistrationUtils.java#L92-L99
126,773
apereo/cas
support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/RestResourceUtils.java
RestResourceUtils.createResponseEntityForAuthnFailure
public static ResponseEntity<String> createResponseEntityForAuthnFailure(final AuthenticationException e, final HttpServletRequest request, final ApplicationContext a...
java
public static ResponseEntity<String> createResponseEntityForAuthnFailure(final AuthenticationException e, final HttpServletRequest request, final ApplicationContext a...
[ "public", "static", "ResponseEntity", "<", "String", ">", "createResponseEntityForAuthnFailure", "(", "final", "AuthenticationException", "e", ",", "final", "HttpServletRequest", "request", ",", "final", "ApplicationContext", "applicationContext", ")", "{", "try", "{", ...
Create response entity for authn failure response. @param e the e @param request the http request @param applicationContext the application context @return the response entity
[ "Create", "response", "entity", "for", "authn", "failure", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-rest-core/src/main/java/org/apereo/cas/support/rest/resources/RestResourceUtils.java#L54-L71
126,774
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServicePublicKeyCipherExecutor.java
RegisteredServicePublicKeyCipherExecutor.createRegisteredServicePublicKey
private static PublicKey createRegisteredServicePublicKey(final RegisteredService registeredService) { if (registeredService.getPublicKey() == null) { LOGGER.debug("No public key is defined for service [{}]. No encoding will take place.", registeredService); return null; } ...
java
private static PublicKey createRegisteredServicePublicKey(final RegisteredService registeredService) { if (registeredService.getPublicKey() == null) { LOGGER.debug("No public key is defined for service [{}]. No encoding will take place.", registeredService); return null; } ...
[ "private", "static", "PublicKey", "createRegisteredServicePublicKey", "(", "final", "RegisteredService", "registeredService", ")", "{", "if", "(", "registeredService", ".", "getPublicKey", "(", ")", "==", "null", ")", "{", "LOGGER", ".", "debug", "(", "\"No public k...
Create registered service public key defined. @param registeredService the registered service @return the public key
[ "Create", "registered", "service", "public", "key", "defined", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServicePublicKeyCipherExecutor.java#L57-L68
126,775
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServicePublicKeyCipherExecutor.java
RegisteredServicePublicKeyCipherExecutor.initializeCipherBasedOnServicePublicKey
private static Cipher initializeCipherBasedOnServicePublicKey(final PublicKey publicKey, final RegisteredService registeredService) { try { LOGGER.debug("Using service [{}] public key [{}] to initialize the cipher", registeredService....
java
private static Cipher initializeCipherBasedOnServicePublicKey(final PublicKey publicKey, final RegisteredService registeredService) { try { LOGGER.debug("Using service [{}] public key [{}] to initialize the cipher", registeredService....
[ "private", "static", "Cipher", "initializeCipherBasedOnServicePublicKey", "(", "final", "PublicKey", "publicKey", ",", "final", "RegisteredService", "registeredService", ")", "{", "try", "{", "LOGGER", ".", "debug", "(", "\"Using service [{}] public key [{}] to initialize the...
Initialize cipher based on service public key. @param publicKey the public key @param registeredService the registered service @return the false if no public key is found or if cipher cannot be initialized, etc.
[ "Initialize", "cipher", "based", "on", "service", "public", "key", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServicePublicKeyCipherExecutor.java#L78-L94
126,776
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServicePublicKeyCipherExecutor.java
RegisteredServicePublicKeyCipherExecutor.encode
@Override public String encode(final String data, final Optional<RegisteredService> service) { try { if (service.isPresent()) { val registeredService = service.get(); val publicKey = createRegisteredServicePublicKey(registeredService); val result =...
java
@Override public String encode(final String data, final Optional<RegisteredService> service) { try { if (service.isPresent()) { val registeredService = service.get(); val publicKey = createRegisteredServicePublicKey(registeredService); val result =...
[ "@", "Override", "public", "String", "encode", "(", "final", "String", "data", ",", "final", "Optional", "<", "RegisteredService", ">", "service", ")", "{", "try", "{", "if", "(", "service", ".", "isPresent", "(", ")", ")", "{", "val", "registeredService",...
Encrypt using the given cipher associated with the service, and encode the data in base 64. @param data the data @param service the registered service @return the encoded piece of data in base64
[ "Encrypt", "using", "the", "given", "cipher", "associated", "with", "the", "service", "and", "encode", "the", "data", "in", "base", "64", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/util/RegisteredServicePublicKeyCipherExecutor.java#L104-L119
126,777
apereo/cas
support/cas-server-support-saml-mdui/src/main/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserAction.java
SamlMetadataUIParserAction.loadSamlMetadataIntoRequestContext
protected void loadSamlMetadataIntoRequestContext(final RequestContext requestContext, final String entityId, final RegisteredService registeredService) { LOGGER.debug("Locating SAML MDUI for entity [{}]", entityId); val mdui = MetadataUIUtils.locateMetadataUserInterfaceForEntityId( this.met...
java
protected void loadSamlMetadataIntoRequestContext(final RequestContext requestContext, final String entityId, final RegisteredService registeredService) { LOGGER.debug("Locating SAML MDUI for entity [{}]", entityId); val mdui = MetadataUIUtils.locateMetadataUserInterfaceForEntityId( this.met...
[ "protected", "void", "loadSamlMetadataIntoRequestContext", "(", "final", "RequestContext", "requestContext", ",", "final", "String", "entityId", ",", "final", "RegisteredService", "registeredService", ")", "{", "LOGGER", ".", "debug", "(", "\"Locating SAML MDUI for entity [...
Load saml metadata into request context. @param requestContext the request context @param entityId the entity id @param registeredService the registered service
[ "Load", "saml", "metadata", "into", "request", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui/src/main/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserAction.java#L75-L81
126,778
apereo/cas
support/cas-server-support-saml-mdui/src/main/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserAction.java
SamlMetadataUIParserAction.verifyRegisteredService
protected void verifyRegisteredService(final RequestContext requestContext, final RegisteredService registeredService) { if (registeredService == null || !registeredService.getAccessStrategy().isServiceAccessAllowed()) { LOGGER.debug("Service [{}] is not recognized/allowed by the CAS service registr...
java
protected void verifyRegisteredService(final RequestContext requestContext, final RegisteredService registeredService) { if (registeredService == null || !registeredService.getAccessStrategy().isServiceAccessAllowed()) { LOGGER.debug("Service [{}] is not recognized/allowed by the CAS service registr...
[ "protected", "void", "verifyRegisteredService", "(", "final", "RequestContext", "requestContext", ",", "final", "RegisteredService", "registeredService", ")", "{", "if", "(", "registeredService", "==", "null", "||", "!", "registeredService", ".", "getAccessStrategy", "(...
Verify registered service. @param requestContext the request context @param registeredService the registered service
[ "Verify", "registered", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui/src/main/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserAction.java#L89-L97
126,779
apereo/cas
support/cas-server-support-saml-mdui/src/main/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserAction.java
SamlMetadataUIParserAction.getEntityIdFromRequest
protected String getEntityIdFromRequest(final RequestContext requestContext) { val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext); return request.getParameter(this.entityIdParameterName); }
java
protected String getEntityIdFromRequest(final RequestContext requestContext) { val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext); return request.getParameter(this.entityIdParameterName); }
[ "protected", "String", "getEntityIdFromRequest", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "request", "=", "WebUtils", ".", "getHttpServletRequestFromExternalWebflowContext", "(", "requestContext", ")", ";", "return", "request", ".", "getParameter...
Gets entity id from request. @param requestContext the request context @return the entity id from request
[ "Gets", "entity", "id", "from", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui/src/main/java/org/apereo/cas/support/saml/mdui/web/flow/SamlMetadataUIParserAction.java#L135-L138
126,780
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/HttpRequestMultifactorAuthenticationProviderBypass.java
HttpRequestMultifactorAuthenticationProviderBypass.locateMatchingHttpRequest
protected boolean locateMatchingHttpRequest(final Authentication authentication, final HttpServletRequest request) { if (StringUtils.isNotBlank(bypassProperties.getHttpRequestRemoteAddress())) { if (httpRequestRemoteAddressPattern.matcher(request.getRemoteAddr()).find()) { LOGGER.deb...
java
protected boolean locateMatchingHttpRequest(final Authentication authentication, final HttpServletRequest request) { if (StringUtils.isNotBlank(bypassProperties.getHttpRequestRemoteAddress())) { if (httpRequestRemoteAddressPattern.matcher(request.getRemoteAddr()).find()) { LOGGER.deb...
[ "protected", "boolean", "locateMatchingHttpRequest", "(", "final", "Authentication", "authentication", ",", "final", "HttpServletRequest", "request", ")", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "bypassProperties", ".", "getHttpRequestRemoteAddress", "(", ...
Locate matching http request and determine if bypass should be enabled. @param authentication the authentication @param request the request @return true /false
[ "Locate", "matching", "http", "request", "and", "determine", "if", "bypass", "should", "be", "enabled", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/HttpRequestMultifactorAuthenticationProviderBypass.java#L69-L92
126,781
apereo/cas
support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/metadata/WSFederationMetadataWriter.java
WSFederationMetadataWriter.produceMetadataDocument
public static Document produceMetadataDocument(final CasConfigurationProperties config) { try { val wsfedIdp = config.getAuthn().getWsfedIdp(); val sts = wsfedIdp.getSts(); val prop = CryptoUtils.getSecurityProperties(sts.getRealm().getKeystoreFile(), sts.getRealm().getKeysto...
java
public static Document produceMetadataDocument(final CasConfigurationProperties config) { try { val wsfedIdp = config.getAuthn().getWsfedIdp(); val sts = wsfedIdp.getSts(); val prop = CryptoUtils.getSecurityProperties(sts.getRealm().getKeystoreFile(), sts.getRealm().getKeysto...
[ "public", "static", "Document", "produceMetadataDocument", "(", "final", "CasConfigurationProperties", "config", ")", "{", "try", "{", "val", "wsfedIdp", "=", "config", ".", "getAuthn", "(", ")", ".", "getWsfedIdp", "(", ")", ";", "val", "sts", "=", "wsfedIdp"...
Produce metadata document. @param config the config @return the document
[ "Produce", "metadata", "document", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ws-idp/src/main/java/org/apereo/cas/ws/idp/metadata/WSFederationMetadataWriter.java#L48-L81
126,782
apereo/cas
support/cas-server-support-couchdb-ticket-registry/src/main/java/org/apereo/cas/couchdb/tickets/TicketRepository.java
TicketRepository.delete
public long delete(final List<TicketDocument> ticketDocuments) { return (long) db.executeBulk(ticketDocuments.stream().map(BulkDeleteDocument::of) .collect(Collectors.toList())).size(); }
java
public long delete(final List<TicketDocument> ticketDocuments) { return (long) db.executeBulk(ticketDocuments.stream().map(BulkDeleteDocument::of) .collect(Collectors.toList())).size(); }
[ "public", "long", "delete", "(", "final", "List", "<", "TicketDocument", ">", "ticketDocuments", ")", "{", "return", "(", "long", ")", "db", ".", "executeBulk", "(", "ticketDocuments", ".", "stream", "(", ")", ".", "map", "(", "BulkDeleteDocument", "::", "...
Delete tickets. @param ticketDocuments tickets to be deleted. @return number of tickets deleted
[ "Delete", "tickets", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchdb-ticket-registry/src/main/java/org/apereo/cas/couchdb/tickets/TicketRepository.java#L33-L36
126,783
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java
SamlIdPObjectSigner.prepareSamlOutboundProtocolMessageSigningHandler
protected <T extends SAMLObject> void prepareSamlOutboundProtocolMessageSigningHandler(final MessageContext<T> outboundContext) throws Exception { LOGGER.trace("Attempting to sign the outbound SAML message..."); val handler = new SAMLOutboundProtocolMessageSigningHandler(); handler.setSignErrorR...
java
protected <T extends SAMLObject> void prepareSamlOutboundProtocolMessageSigningHandler(final MessageContext<T> outboundContext) throws Exception { LOGGER.trace("Attempting to sign the outbound SAML message..."); val handler = new SAMLOutboundProtocolMessageSigningHandler(); handler.setSignErrorR...
[ "protected", "<", "T", "extends", "SAMLObject", ">", "void", "prepareSamlOutboundProtocolMessageSigningHandler", "(", "final", "MessageContext", "<", "T", ">", "outboundContext", ")", "throws", "Exception", "{", "LOGGER", ".", "trace", "(", "\"Attempting to sign the out...
Prepare saml outbound protocol message signing handler. @param <T> the type parameter @param outboundContext the outbound context @throws Exception the exception
[ "Prepare", "saml", "outbound", "protocol", "message", "signing", "handler", "." ]
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/SamlIdPObjectSigner.java#L112-L118
126,784
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java
SamlIdPObjectSigner.prepareSamlOutboundDestinationHandler
protected <T extends SAMLObject> void prepareSamlOutboundDestinationHandler(final MessageContext<T> outboundContext) throws Exception { val handlerDest = new SAMLOutboundDestinationHandler(); handlerDest.initialize(); handlerDest.invoke(outboundContext); }
java
protected <T extends SAMLObject> void prepareSamlOutboundDestinationHandler(final MessageContext<T> outboundContext) throws Exception { val handlerDest = new SAMLOutboundDestinationHandler(); handlerDest.initialize(); handlerDest.invoke(outboundContext); }
[ "protected", "<", "T", "extends", "SAMLObject", ">", "void", "prepareSamlOutboundDestinationHandler", "(", "final", "MessageContext", "<", "T", ">", "outboundContext", ")", "throws", "Exception", "{", "val", "handlerDest", "=", "new", "SAMLOutboundDestinationHandler", ...
Prepare saml outbound destination handler. @param <T> the type parameter @param outboundContext the outbound context @throws Exception the exception
[ "Prepare", "saml", "outbound", "destination", "handler", "." ]
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/SamlIdPObjectSigner.java#L127-L131
126,785
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java
SamlIdPObjectSigner.prepareEndpointURLSchemeSecurityHandler
protected <T extends SAMLObject> void prepareEndpointURLSchemeSecurityHandler(final MessageContext<T> outboundContext) throws Exception { val handlerEnd = new EndpointURLSchemeSecurityHandler(); handlerEnd.initialize(); handlerEnd.invoke(outboundContext); }
java
protected <T extends SAMLObject> void prepareEndpointURLSchemeSecurityHandler(final MessageContext<T> outboundContext) throws Exception { val handlerEnd = new EndpointURLSchemeSecurityHandler(); handlerEnd.initialize(); handlerEnd.invoke(outboundContext); }
[ "protected", "<", "T", "extends", "SAMLObject", ">", "void", "prepareEndpointURLSchemeSecurityHandler", "(", "final", "MessageContext", "<", "T", ">", "outboundContext", ")", "throws", "Exception", "{", "val", "handlerEnd", "=", "new", "EndpointURLSchemeSecurityHandler"...
Prepare endpoint url scheme security handler. @param <T> the type parameter @param outboundContext the outbound context @throws Exception the exception
[ "Prepare", "endpoint", "url", "scheme", "security", "handler", "." ]
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/SamlIdPObjectSigner.java#L140-L144
126,786
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java
SamlIdPObjectSigner.prepareSecurityParametersContext
protected <T extends SAMLObject> void prepareSecurityParametersContext(final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final MessageContext<T> outboundContext, ...
java
protected <T extends SAMLObject> void prepareSecurityParametersContext(final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final MessageContext<T> outboundContext, ...
[ "protected", "<", "T", "extends", "SAMLObject", ">", "void", "prepareSecurityParametersContext", "(", "final", "SamlRegisteredServiceServiceProviderMetadataFacade", "adaptor", ",", "final", "MessageContext", "<", "T", ">", "outboundContext", ",", "final", "SamlRegisteredSer...
Prepare security parameters context. @param <T> the type parameter @param adaptor the adaptor @param outboundContext the outbound context @param service the service
[ "Prepare", "security", "parameters", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java#L154-L161
126,787
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java
SamlIdPObjectSigner.prepareOutboundContext
protected <T extends SAMLObject> void prepareOutboundContext(final T samlObject, final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final MessageContext<T> outboundContext, ...
java
protected <T extends SAMLObject> void prepareOutboundContext(final T samlObject, final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final MessageContext<T> outboundContext, ...
[ "protected", "<", "T", "extends", "SAMLObject", ">", "void", "prepareOutboundContext", "(", "final", "T", "samlObject", ",", "final", "SamlRegisteredServiceServiceProviderMetadataFacade", "adaptor", ",", "final", "MessageContext", "<", "T", ">", "outboundContext", ",", ...
Prepare outbound context. @param <T> the type parameter @param samlObject the saml object @param adaptor the adaptor @param outboundContext the outbound context @param binding the binding @param authnRequest the authn request @throws SamlException the saml exception
[ "Prepare", "outbound", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java#L174-L183
126,788
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java
SamlIdPObjectSigner.buildSignatureSigningParameters
@SneakyThrows protected SignatureSigningParameters buildSignatureSigningParameters(final RoleDescriptor descriptor, final SamlRegisteredService service) { val criteria = new CriteriaSet(); val signatureSigningConfiguration = ge...
java
@SneakyThrows protected SignatureSigningParameters buildSignatureSigningParameters(final RoleDescriptor descriptor, final SamlRegisteredService service) { val criteria = new CriteriaSet(); val signatureSigningConfiguration = ge...
[ "@", "SneakyThrows", "protected", "SignatureSigningParameters", "buildSignatureSigningParameters", "(", "final", "RoleDescriptor", "descriptor", ",", "final", "SamlRegisteredService", "service", ")", "{", "val", "criteria", "=", "new", "CriteriaSet", "(", ")", ";", "val...
Build signature signing parameters signature signing parameters. @param descriptor the descriptor @param service the service @return the signature signing parameters
[ "Build", "signature", "signing", "parameters", "signature", "signing", "parameters", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java#L192-L215
126,789
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectSigner.java
SamlIdPObjectSigner.getSigningPrivateKey
protected PrivateKey getSigningPrivateKey() throws Exception { val samlIdp = casProperties.getAuthn().getSamlIdp(); val signingKey = samlIdPMetadataLocator.getSigningKey(); val privateKeyFactoryBean = new PrivateKeyFactoryBean(); privateKeyFactoryBean.setLocation(signingKey); pri...
java
protected PrivateKey getSigningPrivateKey() throws Exception { val samlIdp = casProperties.getAuthn().getSamlIdp(); val signingKey = samlIdPMetadataLocator.getSigningKey(); val privateKeyFactoryBean = new PrivateKeyFactoryBean(); privateKeyFactoryBean.setLocation(signingKey); pri...
[ "protected", "PrivateKey", "getSigningPrivateKey", "(", ")", "throws", "Exception", "{", "val", "samlIdp", "=", "casProperties", ".", "getAuthn", "(", ")", ".", "getSamlIdp", "(", ")", ";", "val", "signingKey", "=", "samlIdPMetadataLocator", ".", "getSigningKey", ...
Gets signing private key. @return the signing private key @throws Exception the exception
[ "Gets", "signing", "private", "key", "." ]
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/SamlIdPObjectSigner.java#L355-L364
126,790
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/RegisteredServicesEventListener.java
RegisteredServicesEventListener.handleRegisteredServiceExpiredEvent
@EventListener public void handleRegisteredServiceExpiredEvent(final CasRegisteredServiceExpiredEvent event) { val registeredService = event.getRegisteredService(); val contacts = registeredService.getContacts(); val mail = casProperties.getServiceRegistry().getMail(); val sms = cas...
java
@EventListener public void handleRegisteredServiceExpiredEvent(final CasRegisteredServiceExpiredEvent event) { val registeredService = event.getRegisteredService(); val contacts = registeredService.getContacts(); val mail = casProperties.getServiceRegistry().getMail(); val sms = cas...
[ "@", "EventListener", "public", "void", "handleRegisteredServiceExpiredEvent", "(", "final", "CasRegisteredServiceExpiredEvent", "event", ")", "{", "val", "registeredService", "=", "event", ".", "getRegisteredService", "(", ")", ";", "val", "contacts", "=", "registeredS...
Handle registered service expired event. @param event the event
[ "Handle", "registered", "service", "expired", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/RegisteredServicesEventListener.java#L40-L65
126,791
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java
HttpRequestUtils.getHttpServletRequestFromRequestAttributes
public static HttpServletRequest getHttpServletRequestFromRequestAttributes() { try { return ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest(); } catch (final Exception e) { LOGGER.trace(e.getMessage(), e); } return null; ...
java
public static HttpServletRequest getHttpServletRequestFromRequestAttributes() { try { return ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest(); } catch (final Exception e) { LOGGER.trace(e.getMessage(), e); } return null; ...
[ "public", "static", "HttpServletRequest", "getHttpServletRequestFromRequestAttributes", "(", ")", "{", "try", "{", "return", "(", "(", "ServletRequestAttributes", ")", "RequestContextHolder", ".", "currentRequestAttributes", "(", ")", ")", ".", "getRequest", "(", ")", ...
Gets http servlet request from request attributes. @return the http servlet request from request attributes
[ "Gets", "http", "servlet", "request", "from", "request", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java#L51-L58
126,792
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java
HttpRequestUtils.getRequestHeaders
public static Map<String, String> getRequestHeaders(final HttpServletRequest request) { val headers = new LinkedHashMap<String, Object>(); val headerNames = request.getHeaderNames(); if (headerNames != null) { while (headerNames.hasMoreElements()) { val headerName = h...
java
public static Map<String, String> getRequestHeaders(final HttpServletRequest request) { val headers = new LinkedHashMap<String, Object>(); val headerNames = request.getHeaderNames(); if (headerNames != null) { while (headerNames.hasMoreElements()) { val headerName = h...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "getRequestHeaders", "(", "final", "HttpServletRequest", "request", ")", "{", "val", "headers", "=", "new", "LinkedHashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "val", "headerNames",...
Gets request headers. @param request the request @return the request headers
[ "Gets", "request", "headers", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java#L96-L107
126,793
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java
HttpRequestUtils.getHttpServletRequestUserAgent
public static String getHttpServletRequestUserAgent(final HttpServletRequest request) { if (request != null) { return request.getHeader(USER_AGENT_HEADER); } return null; }
java
public static String getHttpServletRequestUserAgent(final HttpServletRequest request) { if (request != null) { return request.getHeader(USER_AGENT_HEADER); } return null; }
[ "public", "static", "String", "getHttpServletRequestUserAgent", "(", "final", "HttpServletRequest", "request", ")", "{", "if", "(", "request", "!=", "null", ")", "{", "return", "request", ".", "getHeader", "(", "USER_AGENT_HEADER", ")", ";", "}", "return", "null...
Gets http servlet request user agent. @param request the request @return the http servlet request user agent
[ "Gets", "http", "servlet", "request", "user", "agent", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java#L115-L120
126,794
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java
HttpRequestUtils.getService
public static WebApplicationService getService(final List<ArgumentExtractor> argumentExtractors, final HttpServletRequest request) { return argumentExtractors .stream() .map(argumentExtractor -> argumentExtractor.extractService(request)) .filter(Objects::nonNull) ...
java
public static WebApplicationService getService(final List<ArgumentExtractor> argumentExtractors, final HttpServletRequest request) { return argumentExtractors .stream() .map(argumentExtractor -> argumentExtractor.extractService(request)) .filter(Objects::nonNull) ...
[ "public", "static", "WebApplicationService", "getService", "(", "final", "List", "<", "ArgumentExtractor", ">", "argumentExtractors", ",", "final", "HttpServletRequest", "request", ")", "{", "return", "argumentExtractors", ".", "stream", "(", ")", ".", "map", "(", ...
Gets the service from the request based on given extractors. @param argumentExtractors the argument extractors @param request the request @return the service, or null.
[ "Gets", "the", "service", "from", "the", "request", "based", "on", "given", "extractors", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java#L129-L136
126,795
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java
HttpRequestUtils.doesParameterExist
public static boolean doesParameterExist(final HttpServletRequest request, final String name) { val parameter = request.getParameter(name); if (StringUtils.isBlank(parameter)) { LOGGER.error("Missing request parameter: [{}]", name); return false; } LOGGER.debug("F...
java
public static boolean doesParameterExist(final HttpServletRequest request, final String name) { val parameter = request.getParameter(name); if (StringUtils.isBlank(parameter)) { LOGGER.error("Missing request parameter: [{}]", name); return false; } LOGGER.debug("F...
[ "public", "static", "boolean", "doesParameterExist", "(", "final", "HttpServletRequest", "request", ",", "final", "String", "name", ")", "{", "val", "parameter", "=", "request", ".", "getParameter", "(", "name", ")", ";", "if", "(", "StringUtils", ".", "isBlan...
Check if a parameter exists. @param request the HTTP request @param name the parameter name @return whether the parameter exists
[ "Check", "if", "a", "parameter", "exists", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java#L145-L153
126,796
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java
HttpRequestUtils.pingUrl
public static HttpStatus pingUrl(final String location) { try { val url = new URL(location); val connection = (HttpURLConnection) url.openConnection(); connection.setConnectTimeout(PING_URL_TIMEOUT); connection.setReadTimeout(PING_URL_TIMEOUT); connect...
java
public static HttpStatus pingUrl(final String location) { try { val url = new URL(location); val connection = (HttpURLConnection) url.openConnection(); connection.setConnectTimeout(PING_URL_TIMEOUT); connection.setReadTimeout(PING_URL_TIMEOUT); connect...
[ "public", "static", "HttpStatus", "pingUrl", "(", "final", "String", "location", ")", "{", "try", "{", "val", "url", "=", "new", "URL", "(", "location", ")", ";", "val", "connection", "=", "(", "HttpURLConnection", ")", "url", ".", "openConnection", "(", ...
Ping url and return http status. @param location the location @return the http status
[ "Ping", "url", "and", "return", "http", "status", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/HttpRequestUtils.java#L161-L174
126,797
apereo/cas
support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/MemcachedUtils.java
MemcachedUtils.newTranscoder
public static Transcoder newTranscoder(final BaseMemcachedProperties memcachedProperties, final Collection<Class> kryoSerializableClasses) { switch (StringUtils.trimToEmpty(memcachedProperties.getTranscoder()).toLowerCase()) { case "serial": ...
java
public static Transcoder newTranscoder(final BaseMemcachedProperties memcachedProperties, final Collection<Class> kryoSerializableClasses) { switch (StringUtils.trimToEmpty(memcachedProperties.getTranscoder()).toLowerCase()) { case "serial": ...
[ "public", "static", "Transcoder", "newTranscoder", "(", "final", "BaseMemcachedProperties", "memcachedProperties", ",", "final", "Collection", "<", "Class", ">", "kryoSerializableClasses", ")", "{", "switch", "(", "StringUtils", ".", "trimToEmpty", "(", "memcachedProper...
New transcoder transcoder. @param memcachedProperties the memcached properties @param kryoSerializableClasses the kryo serializable classes @return the transcoder
[ "New", "transcoder", "transcoder", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/MemcachedUtils.java#L46-L74
126,798
apereo/cas
api/cas-server-core-api-audit/src/main/java/org/apereo/cas/audit/AuditableExecutionResult.java
AuditableExecutionResult.of
public static AuditableExecutionResult of(final AuditableContext context) { val builder = AuditableExecutionResult.builder(); context.getTicketGrantingTicket().ifPresent(builder::ticketGrantingTicket); context.getAuthentication().ifPresent(builder::authentication); context.getAuthenticat...
java
public static AuditableExecutionResult of(final AuditableContext context) { val builder = AuditableExecutionResult.builder(); context.getTicketGrantingTicket().ifPresent(builder::ticketGrantingTicket); context.getAuthentication().ifPresent(builder::authentication); context.getAuthenticat...
[ "public", "static", "AuditableExecutionResult", "of", "(", "final", "AuditableContext", "context", ")", "{", "val", "builder", "=", "AuditableExecutionResult", ".", "builder", "(", ")", ";", "context", ".", "getTicketGrantingTicket", "(", ")", ".", "ifPresent", "(...
Of auditable execution result. @param context the context @return the auditable execution result
[ "Of", "auditable", "execution", "result", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-audit/src/main/java/org/apereo/cas/audit/AuditableExecutionResult.java#L86-L96
126,799
apereo/cas
support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/cache/resolver/BaseSamlRegisteredServiceMetadataResolver.java
BaseSamlRegisteredServiceMetadataResolver.buildMetadataResolverFrom
protected AbstractMetadataResolver buildMetadataResolverFrom(final SamlRegisteredService service, final SamlMetadataDocument metadataDocument) { try { val desc = StringUtils.defaultString(service.getDescription(), service.getName()); ...
java
protected AbstractMetadataResolver buildMetadataResolverFrom(final SamlRegisteredService service, final SamlMetadataDocument metadataDocument) { try { val desc = StringUtils.defaultString(service.getDescription(), service.getName()); ...
[ "protected", "AbstractMetadataResolver", "buildMetadataResolverFrom", "(", "final", "SamlRegisteredService", "service", ",", "final", "SamlMetadataDocument", "metadataDocument", ")", "{", "try", "{", "val", "desc", "=", "StringUtils", ".", "defaultString", "(", "service",...
Build metadata resolver from document. @param service the service @param metadataDocument the metadata document @return the metadata resolver
[ "Build", "metadata", "resolver", "from", "document", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/cache/resolver/BaseSamlRegisteredServiceMetadataResolver.java#L99-L117