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,400
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureFoursquareClient
protected void configureFoursquareClient(final Collection<BaseClient> properties) { val foursquare = pac4jProperties.getFoursquare(); if (StringUtils.isNotBlank(foursquare.getId()) && StringUtils.isNotBlank(foursquare.getSecret())) { val client = new FoursquareClient(foursquare.getId(), four...
java
protected void configureFoursquareClient(final Collection<BaseClient> properties) { val foursquare = pac4jProperties.getFoursquare(); if (StringUtils.isNotBlank(foursquare.getId()) && StringUtils.isNotBlank(foursquare.getSecret())) { val client = new FoursquareClient(foursquare.getId(), four...
[ "protected", "void", "configureFoursquareClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "foursquare", "=", "pac4jProperties", ".", "getFoursquare", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "fou...
Configure foursquare client. @param properties the properties
[ "Configure", "foursquare", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L166-L175
126,401
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureGoogleClient
protected void configureGoogleClient(final Collection<BaseClient> properties) { val google = pac4jProperties.getGoogle(); val client = new Google2Client(google.getId(), google.getSecret()); if (StringUtils.isNotBlank(google.getId()) && StringUtils.isNotBlank(google.getSecret())) { co...
java
protected void configureGoogleClient(final Collection<BaseClient> properties) { val google = pac4jProperties.getGoogle(); val client = new Google2Client(google.getId(), google.getSecret()); if (StringUtils.isNotBlank(google.getId()) && StringUtils.isNotBlank(google.getSecret())) { co...
[ "protected", "void", "configureGoogleClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "google", "=", "pac4jProperties", ".", "getGoogle", "(", ")", ";", "val", "client", "=", "new", "Google2Client", "(", "google", "."...
Configure google client. @param properties the properties
[ "Configure", "google", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L182-L194
126,402
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureFacebookClient
protected void configureFacebookClient(final Collection<BaseClient> properties) { val fb = pac4jProperties.getFacebook(); if (StringUtils.isNotBlank(fb.getId()) && StringUtils.isNotBlank(fb.getSecret())) { val client = new FacebookClient(fb.getId(), fb.getSecret()); configureCli...
java
protected void configureFacebookClient(final Collection<BaseClient> properties) { val fb = pac4jProperties.getFacebook(); if (StringUtils.isNotBlank(fb.getId()) && StringUtils.isNotBlank(fb.getSecret())) { val client = new FacebookClient(fb.getId(), fb.getSecret()); configureCli...
[ "protected", "void", "configureFacebookClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "fb", "=", "pac4jProperties", ".", "getFacebook", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "fb", ".", "...
Configure facebook client. @param properties the properties
[ "Configure", "facebook", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L201-L217
126,403
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureLinkedInClient
protected void configureLinkedInClient(final Collection<BaseClient> properties) { val ln = pac4jProperties.getLinkedIn(); if (StringUtils.isNotBlank(ln.getId()) && StringUtils.isNotBlank(ln.getSecret())) { val client = new LinkedIn2Client(ln.getId(), ln.getSecret()); configureCli...
java
protected void configureLinkedInClient(final Collection<BaseClient> properties) { val ln = pac4jProperties.getLinkedIn(); if (StringUtils.isNotBlank(ln.getId()) && StringUtils.isNotBlank(ln.getSecret())) { val client = new LinkedIn2Client(ln.getId(), ln.getSecret()); configureCli...
[ "protected", "void", "configureLinkedInClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "ln", "=", "pac4jProperties", ".", "getLinkedIn", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "ln", ".", "...
Configure linked in client. @param properties the properties
[ "Configure", "linked", "in", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L224-L240
126,404
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureHiOrgServerClient
protected void configureHiOrgServerClient(final Collection<BaseClient> properties) { val hiOrgServer = pac4jProperties.getHiOrgServer(); if (StringUtils.isNotBlank(hiOrgServer.getId()) && StringUtils.isNotBlank(hiOrgServer.getSecret())) { val client = new HiOrgServerClient(hiOrgServer.getId(...
java
protected void configureHiOrgServerClient(final Collection<BaseClient> properties) { val hiOrgServer = pac4jProperties.getHiOrgServer(); if (StringUtils.isNotBlank(hiOrgServer.getId()) && StringUtils.isNotBlank(hiOrgServer.getSecret())) { val client = new HiOrgServerClient(hiOrgServer.getId(...
[ "protected", "void", "configureHiOrgServerClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "hiOrgServer", "=", "pac4jProperties", ".", "getHiOrgServer", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "...
Configure HiOrg-Server client. @param properties the properties
[ "Configure", "HiOrg", "-", "Server", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L247-L258
126,405
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureTwitterClient
protected void configureTwitterClient(final Collection<BaseClient> properties) { val twitter = pac4jProperties.getTwitter(); if (StringUtils.isNotBlank(twitter.getId()) && StringUtils.isNotBlank(twitter.getSecret())) { val client = new TwitterClient(twitter.getId(), twitter.getSecret(), twit...
java
protected void configureTwitterClient(final Collection<BaseClient> properties) { val twitter = pac4jProperties.getTwitter(); if (StringUtils.isNotBlank(twitter.getId()) && StringUtils.isNotBlank(twitter.getSecret())) { val client = new TwitterClient(twitter.getId(), twitter.getSecret(), twit...
[ "protected", "void", "configureTwitterClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "twitter", "=", "pac4jProperties", ".", "getTwitter", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "twitter", ...
Configure twitter client. @param properties the properties
[ "Configure", "twitter", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L265-L274
126,406
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureWordPressClient
protected void configureWordPressClient(final Collection<BaseClient> properties) { val wp = pac4jProperties.getWordpress(); if (StringUtils.isNotBlank(wp.getId()) && StringUtils.isNotBlank(wp.getSecret())) { val client = new WordPressClient(wp.getId(), wp.getSecret()); configureC...
java
protected void configureWordPressClient(final Collection<BaseClient> properties) { val wp = pac4jProperties.getWordpress(); if (StringUtils.isNotBlank(wp.getId()) && StringUtils.isNotBlank(wp.getSecret())) { val client = new WordPressClient(wp.getId(), wp.getSecret()); configureC...
[ "protected", "void", "configureWordPressClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "wp", "=", "pac4jProperties", ".", "getWordpress", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "wp", ".", ...
Configure wordpress client. @param properties the properties
[ "Configure", "wordpress", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L281-L290
126,407
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureBitBucketClient
protected void configureBitBucketClient(final Collection<BaseClient> properties) { val bb = pac4jProperties.getBitbucket(); if (StringUtils.isNotBlank(bb.getId()) && StringUtils.isNotBlank(bb.getSecret())) { val client = new BitbucketClient(bb.getId(), bb.getSecret()); configureC...
java
protected void configureBitBucketClient(final Collection<BaseClient> properties) { val bb = pac4jProperties.getBitbucket(); if (StringUtils.isNotBlank(bb.getId()) && StringUtils.isNotBlank(bb.getSecret())) { val client = new BitbucketClient(bb.getId(), bb.getSecret()); configureC...
[ "protected", "void", "configureBitBucketClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "bb", "=", "pac4jProperties", ".", "getBitbucket", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "bb", ".", ...
Configure bitbucket client. @param properties the properties
[ "Configure", "bitbucket", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L297-L306
126,408
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configurePayPalClient
protected void configurePayPalClient(final Collection<BaseClient> properties) { val paypal = pac4jProperties.getPaypal(); if (StringUtils.isNotBlank(paypal.getId()) && StringUtils.isNotBlank(paypal.getSecret())) { val client = new PayPalClient(paypal.getId(), paypal.getSecret()); ...
java
protected void configurePayPalClient(final Collection<BaseClient> properties) { val paypal = pac4jProperties.getPaypal(); if (StringUtils.isNotBlank(paypal.getId()) && StringUtils.isNotBlank(paypal.getSecret())) { val client = new PayPalClient(paypal.getId(), paypal.getSecret()); ...
[ "protected", "void", "configurePayPalClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "paypal", "=", "pac4jProperties", ".", "getPaypal", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "paypal", ".",...
Configure paypal client. @param properties the properties
[ "Configure", "paypal", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L313-L322
126,409
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureClient
protected void configureClient(final BaseClient client, final Pac4jBaseClientProperties props) { val cname = props.getClientName(); if (StringUtils.isNotBlank(cname)) { client.setName(cname); } else { val className = client.getClass().getSimpleName(); val genN...
java
protected void configureClient(final BaseClient client, final Pac4jBaseClientProperties props) { val cname = props.getClientName(); if (StringUtils.isNotBlank(cname)) { client.setName(cname); } else { val className = client.getClass().getSimpleName(); val genN...
[ "protected", "void", "configureClient", "(", "final", "BaseClient", "client", ",", "final", "Pac4jBaseClientProperties", "props", ")", "{", "val", "cname", "=", "props", ".", "getClientName", "(", ")", ";", "if", "(", "StringUtils", ".", "isNotBlank", "(", "cn...
Sets client name. @param client the client @param props the props
[ "Sets", "client", "name", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L330-L346
126,410
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureCasClient
protected void configureCasClient(final Collection<BaseClient> properties) { val index = new AtomicInteger(); pac4jProperties.getCas() .stream() .filter(cas -> StringUtils.isNotBlank(cas.getLoginUrl())) .forEach(cas -> { val cfg = new CasConfiguration(...
java
protected void configureCasClient(final Collection<BaseClient> properties) { val index = new AtomicInteger(); pac4jProperties.getCas() .stream() .filter(cas -> StringUtils.isNotBlank(cas.getLoginUrl())) .forEach(cas -> { val cfg = new CasConfiguration(...
[ "protected", "void", "configureCasClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "index", "=", "new", "AtomicInteger", "(", ")", ";", "pac4jProperties", ".", "getCas", "(", ")", ".", "stream", "(", ")", ".", "fi...
Configure cas client. @param properties the properties
[ "Configure", "cas", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L353-L374
126,411
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureOAuth20Client
protected void configureOAuth20Client(final Collection<BaseClient> properties) { val index = new AtomicInteger(); pac4jProperties.getOauth2() .stream() .filter(oauth -> StringUtils.isNotBlank(oauth.getId()) && StringUtils.isNotBlank(oauth.getSecret())) .forEach(oauth ...
java
protected void configureOAuth20Client(final Collection<BaseClient> properties) { val index = new AtomicInteger(); pac4jProperties.getOauth2() .stream() .filter(oauth -> StringUtils.isNotBlank(oauth.getId()) && StringUtils.isNotBlank(oauth.getSecret())) .forEach(oauth ...
[ "protected", "void", "configureOAuth20Client", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "val", "index", "=", "new", "AtomicInteger", "(", ")", ";", "pac4jProperties", ".", "getOauth2", "(", ")", ".", "stream", "(", ")", "."...
Configure OAuth client. @param properties the properties
[ "Configure", "OAuth", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L457-L484
126,412
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.configureOidcClient
protected void configureOidcClient(final Collection<BaseClient> properties) { pac4jProperties.getOidc() .forEach(oidc -> { val client = getOidcClientFrom(oidc); LOGGER.debug("Created client [{}]", client); properties.add(client); }); }
java
protected void configureOidcClient(final Collection<BaseClient> properties) { pac4jProperties.getOidc() .forEach(oidc -> { val client = getOidcClientFrom(oidc); LOGGER.debug("Created client [{}]", client); properties.add(client); }); }
[ "protected", "void", "configureOidcClient", "(", "final", "Collection", "<", "BaseClient", ">", "properties", ")", "{", "pac4jProperties", ".", "getOidc", "(", ")", ".", "forEach", "(", "oidc", "->", "{", "val", "client", "=", "getOidcClientFrom", "(", "oidc",...
Configure oidc client. @param properties the properties
[ "Configure", "oidc", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L491-L498
126,413
apereo/cas
support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java
DelegatedClientFactory.build
public Set<BaseClient> build() { val clients = new LinkedHashSet<BaseClient>(); configureCasClient(clients); configureFacebookClient(clients); configureOidcClient(clients); configureOAuth20Client(clients); configureSamlClient(clients); configureTwitterClient(clie...
java
public Set<BaseClient> build() { val clients = new LinkedHashSet<BaseClient>(); configureCasClient(clients); configureFacebookClient(clients); configureOidcClient(clients); configureOAuth20Client(clients); configureSamlClient(clients); configureTwitterClient(clie...
[ "public", "Set", "<", "BaseClient", ">", "build", "(", ")", "{", "val", "clients", "=", "new", "LinkedHashSet", "<", "BaseClient", ">", "(", ")", ";", "configureCasClient", "(", "clients", ")", ";", "configureFacebookClient", "(", "clients", ")", ";", "con...
Build set of clients configured. @return the set
[ "Build", "set", "of", "clients", "configured", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-core-clients/src/main/java/org/apereo/cas/support/pac4j/authentication/DelegatedClientFactory.java#L564-L587
126,414
apereo/cas
support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/AbstractConsentAction.java
AbstractConsentAction.getRegisteredServiceForConsent
protected RegisteredService getRegisteredServiceForConsent(final RequestContext requestContext, final Service service) { val serviceToUse = this.authenticationRequestServiceSelectionStrategies.resolveService(service); val registeredService = this.servicesManager.findServiceBy(serviceToUse); Regi...
java
protected RegisteredService getRegisteredServiceForConsent(final RequestContext requestContext, final Service service) { val serviceToUse = this.authenticationRequestServiceSelectionStrategies.resolveService(service); val registeredService = this.servicesManager.findServiceBy(serviceToUse); Regi...
[ "protected", "RegisteredService", "getRegisteredServiceForConsent", "(", "final", "RequestContext", "requestContext", ",", "final", "Service", "service", ")", "{", "val", "serviceToUse", "=", "this", ".", "authenticationRequestServiceSelectionStrategies", ".", "resolveService...
Gets registered service for consent. @param requestContext the request context @param service the service @return the registered service for consent
[ "Gets", "registered", "service", "for", "consent", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/AbstractConsentAction.java#L53-L58
126,415
apereo/cas
support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/AbstractConsentAction.java
AbstractConsentAction.prepareConsentForRequestContext
protected void prepareConsentForRequestContext(final RequestContext requestContext) { val consentProperties = casProperties.getConsent(); val originalService = WebUtils.getService(requestContext); val service = this.authenticationRequestServiceSelectionStrategies.resolveService(originalService)...
java
protected void prepareConsentForRequestContext(final RequestContext requestContext) { val consentProperties = casProperties.getConsent(); val originalService = WebUtils.getService(requestContext); val service = this.authenticationRequestServiceSelectionStrategies.resolveService(originalService)...
[ "protected", "void", "prepareConsentForRequestContext", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "consentProperties", "=", "casProperties", ".", "getConsent", "(", ")", ";", "val", "originalService", "=", "WebUtils", ".", "getService", "(", ...
Prepare consent for request context. The original service is kept, and the resolved service is added to the flash-scope only to ensure consent works for all other callback services that deal with different protocols. @param requestContext the request context
[ "Prepare", "consent", "for", "request", "context", ".", "The", "original", "service", "is", "kept", "and", "the", "resolved", "service", "is", "added", "to", "the", "flash", "-", "scope", "only", "to", "ensure", "consent", "works", "for", "all", "other", "...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-webflow/src/main/java/org/apereo/cas/web/flow/AbstractConsentAction.java#L68-L89
126,416
apereo/cas
support/cas-server-support-events-couchdb/src/main/java/org/apereo/cas/couchdb/events/EventCouchDbRepository.java
EventCouchDbRepository.findByTypeSince
@View(name = "by_type_and_local_date_time", map = "function(doc) { emit([doc.type, doc.creationTime], doc) }") public List<CouchDbCasEvent> findByTypeSince(final String type, final LocalDateTime localDateTime) { val view = createQuery("by_type_and_local_date_time").startKey(ComplexKey.of(type, localDateTime...
java
@View(name = "by_type_and_local_date_time", map = "function(doc) { emit([doc.type, doc.creationTime], doc) }") public List<CouchDbCasEvent> findByTypeSince(final String type, final LocalDateTime localDateTime) { val view = createQuery("by_type_and_local_date_time").startKey(ComplexKey.of(type, localDateTime...
[ "@", "View", "(", "name", "=", "\"by_type_and_local_date_time\"", ",", "map", "=", "\"function(doc) { emit([doc.type, doc.creationTime], doc) }\"", ")", "public", "List", "<", "CouchDbCasEvent", ">", "findByTypeSince", "(", "final", "String", "type", ",", "final", "Loca...
Fund by type since a given date. @param type type to search for @param localDateTime time to search since @return events of the given type since the given time
[ "Fund", "by", "type", "since", "a", "given", "date", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-events-couchdb/src/main/java/org/apereo/cas/couchdb/events/EventCouchDbRepository.java#L42-L47
126,417
apereo/cas
support/cas-server-support-events-couchdb/src/main/java/org/apereo/cas/couchdb/events/EventCouchDbRepository.java
EventCouchDbRepository.findByPrincipalSince
@View(name = "by_principal_id_since", map = "function(doc) { emit([doc.principalId, doc.creationTime], doc) }") public Collection<CouchDbCasEvent> findByPrincipalSince(final String principalId, final LocalDateTime creationTime) { val view = createQuery("by_principal_id_since").startKey(ComplexKey.of(princip...
java
@View(name = "by_principal_id_since", map = "function(doc) { emit([doc.principalId, doc.creationTime], doc) }") public Collection<CouchDbCasEvent> findByPrincipalSince(final String principalId, final LocalDateTime creationTime) { val view = createQuery("by_principal_id_since").startKey(ComplexKey.of(princip...
[ "@", "View", "(", "name", "=", "\"by_principal_id_since\"", ",", "map", "=", "\"function(doc) { emit([doc.principalId, doc.creationTime], doc) }\"", ")", "public", "Collection", "<", "CouchDbCasEvent", ">", "findByPrincipalSince", "(", "final", "String", "principalId", ",",...
Find by principal. @param principalId principal to search for @param creationTime time to search after @return events for the given principal after the given time
[ "Find", "by", "principal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-events-couchdb/src/main/java/org/apereo/cas/couchdb/events/EventCouchDbRepository.java#L91-L96
126,418
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java
OAuth20DefaultAccessTokenResponseGenerator.generateResponseForDeviceToken
@SneakyThrows protected ModelAndView generateResponseForDeviceToken(final HttpServletRequest request, final HttpServletResponse response, final OAuth20AccessTokenResponseResult result) { val m...
java
@SneakyThrows protected ModelAndView generateResponseForDeviceToken(final HttpServletRequest request, final HttpServletResponse response, final OAuth20AccessTokenResponseResult result) { val m...
[ "@", "SneakyThrows", "protected", "ModelAndView", "generateResponseForDeviceToken", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ",", "final", "OAuth20AccessTokenResponseResult", "result", ")", "{", "val", "model", "=", "...
Generate response for device token model and view. @param request the request @param response the response @param result the result @return the model and view
[ "Generate", "response", "for", "device", "token", "model", "and", "view", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java#L70-L76
126,419
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java
OAuth20DefaultAccessTokenResponseGenerator.getDeviceTokenResponseModel
protected Map getDeviceTokenResponseModel(final OAuth20AccessTokenResponseResult result) { val model = new LinkedHashMap<String, Object>(); val uri = result.getCasProperties().getServer().getPrefix() .concat(OAuth20Constants.BASE_OAUTH20_URL) .concat("/") .concat(OAut...
java
protected Map getDeviceTokenResponseModel(final OAuth20AccessTokenResponseResult result) { val model = new LinkedHashMap<String, Object>(); val uri = result.getCasProperties().getServer().getPrefix() .concat(OAuth20Constants.BASE_OAUTH20_URL) .concat("/") .concat(OAut...
[ "protected", "Map", "getDeviceTokenResponseModel", "(", "final", "OAuth20AccessTokenResponseResult", "result", ")", "{", "val", "model", "=", "new", "LinkedHashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "val", "uri", "=", "result", ".", "getCasPrope...
Gets device token response model. @param result the result @return the device token response model
[ "Gets", "device", "token", "response", "model", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java#L84-L97
126,420
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java
OAuth20DefaultAccessTokenResponseGenerator.generateResponseForAccessToken
protected ModelAndView generateResponseForAccessToken(final HttpServletRequest request, final HttpServletResponse response, final OAuth20AccessTokenResponseResult result) { val model = getAccessTo...
java
protected ModelAndView generateResponseForAccessToken(final HttpServletRequest request, final HttpServletResponse response, final OAuth20AccessTokenResponseResult result) { val model = getAccessTo...
[ "protected", "ModelAndView", "generateResponseForAccessToken", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ",", "final", "OAuth20AccessTokenResponseResult", "result", ")", "{", "val", "model", "=", "getAccessTokenResponseMod...
Generate response for access token model and view. @param request the request @param response the response @param result the result @return the model and view
[ "Generate", "response", "for", "access", "token", "model", "and", "view", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java#L107-L112
126,421
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java
OAuth20DefaultAccessTokenResponseGenerator.getAccessTokenResponseModel
protected Map<String, Object> getAccessTokenResponseModel(final HttpServletRequest request, final HttpServletResponse response, final OAuth20AccessTokenResponseResult result) { val model =...
java
protected Map<String, Object> getAccessTokenResponseModel(final HttpServletRequest request, final HttpServletResponse response, final OAuth20AccessTokenResponseResult result) { val model =...
[ "protected", "Map", "<", "String", ",", "Object", ">", "getAccessTokenResponseModel", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", ",", "final", "OAuth20AccessTokenResponseResult", "result", ")", "{", "val", "model", ...
Generate internal. @param request the request @param response the response @param result the result @return the access token response model
[ "Generate", "internal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/response/accesstoken/response/OAuth20DefaultAccessTokenResponseGenerator.java#L122-L135
126,422
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/refreshtoken/OAuthRefreshTokenExpirationPolicy.java
OAuthRefreshTokenExpirationPolicy.isRefreshTokenExpired
@JsonIgnore protected boolean isRefreshTokenExpired(final TicketState ticketState) { if (ticketState == null) { return true; } val expiringTime = ticketState.getCreationTime().plus(this.timeToKillInSeconds, ChronoUnit.SECONDS); return expiringTime.isBefore(ZonedDateTime.n...
java
@JsonIgnore protected boolean isRefreshTokenExpired(final TicketState ticketState) { if (ticketState == null) { return true; } val expiringTime = ticketState.getCreationTime().plus(this.timeToKillInSeconds, ChronoUnit.SECONDS); return expiringTime.isBefore(ZonedDateTime.n...
[ "@", "JsonIgnore", "protected", "boolean", "isRefreshTokenExpired", "(", "final", "TicketState", "ticketState", ")", "{", "if", "(", "ticketState", "==", "null", ")", "{", "return", "true", ";", "}", "val", "expiringTime", "=", "ticketState", ".", "getCreationTi...
Is refresh token expired ? @param ticketState the ticket state @return the boolean
[ "Is", "refresh", "token", "expired", "?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/ticket/refreshtoken/OAuthRefreshTokenExpirationPolicy.java#L74-L81
126,423
apereo/cas
core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/authentication/BaseMultifactorAuthenticationProviderEventResolver.java
BaseMultifactorAuthenticationProviderEventResolver.resolveRegisteredServiceInRequestContext
protected RegisteredService resolveRegisteredServiceInRequestContext(final RequestContext requestContext) { val resolvedService = resolveServiceFromAuthenticationRequest(requestContext); if (resolvedService != null) { val service = getWebflowEventResolutionConfigurationContext().getServicesM...
java
protected RegisteredService resolveRegisteredServiceInRequestContext(final RequestContext requestContext) { val resolvedService = resolveServiceFromAuthenticationRequest(requestContext); if (resolvedService != null) { val service = getWebflowEventResolutionConfigurationContext().getServicesM...
[ "protected", "RegisteredService", "resolveRegisteredServiceInRequestContext", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "resolvedService", "=", "resolveServiceFromAuthenticationRequest", "(", "requestContext", ")", ";", "if", "(", "resolvedService", "...
Resolve registered service in request context. @param requestContext the request context @return the registered service
[ "Resolve", "registered", "service", "in", "request", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-mfa-api/src/main/java/org/apereo/cas/web/flow/authentication/BaseMultifactorAuthenticationProviderEventResolver.java#L32-L41
126,424
apereo/cas
support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/authentication/storage/MultifactorAuthenticationTrustStorageCleaner.java
MultifactorAuthenticationTrustStorageCleaner.clean
@Scheduled(initialDelayString = "${cas.authn.mfa.trusted.cleaner.schedule.startDelay:PT10S}", fixedDelayString = "${cas.authn.mfa.trusted.cleaner.schedule.repeatInterval:PT60S}") public void clean() { if (!trustedProperties.getCleaner().getSchedule().isEnabled()) { LOGGER.debug("[{}] is...
java
@Scheduled(initialDelayString = "${cas.authn.mfa.trusted.cleaner.schedule.startDelay:PT10S}", fixedDelayString = "${cas.authn.mfa.trusted.cleaner.schedule.repeatInterval:PT60S}") public void clean() { if (!trustedProperties.getCleaner().getSchedule().isEnabled()) { LOGGER.debug("[{}] is...
[ "@", "Scheduled", "(", "initialDelayString", "=", "\"${cas.authn.mfa.trusted.cleaner.schedule.startDelay:PT10S}\"", ",", "fixedDelayString", "=", "\"${cas.authn.mfa.trusted.cleaner.schedule.repeatInterval:PT60S}\"", ")", "public", "void", "clean", "(", ")", "{", "if", "(", "!",...
Clean up expired records.
[ "Clean", "up", "expired", "records", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/authentication/storage/MultifactorAuthenticationTrustStorageCleaner.java#L36-L55
126,425
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/validator/token/BaseOAuth20TokenRequestValidator.java
BaseOAuth20TokenRequestValidator.isGrantTypeSupported
private static boolean isGrantTypeSupported(final String type, final OAuth20GrantTypes... expectedTypes) { LOGGER.debug("Grant type received: [{}]", type); for (val expectedType : expectedTypes) { if (OAuth20Utils.isGrantType(type, expectedType)) { return true; } ...
java
private static boolean isGrantTypeSupported(final String type, final OAuth20GrantTypes... expectedTypes) { LOGGER.debug("Grant type received: [{}]", type); for (val expectedType : expectedTypes) { if (OAuth20Utils.isGrantType(type, expectedType)) { return true; } ...
[ "private", "static", "boolean", "isGrantTypeSupported", "(", "final", "String", "type", ",", "final", "OAuth20GrantTypes", "...", "expectedTypes", ")", "{", "LOGGER", ".", "debug", "(", "\"Grant type received: [{}]\"", ",", "type", ")", ";", "for", "(", "val", "...
Check the grant type against expected grant types. @param type the current grant type @param expectedTypes the expected grant types @return whether the grant type is supported
[ "Check", "the", "grant", "type", "against", "expected", "grant", "types", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/validator/token/BaseOAuth20TokenRequestValidator.java#L41-L50
126,426
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/validator/token/BaseOAuth20TokenRequestValidator.java
BaseOAuth20TokenRequestValidator.validateInternal
protected boolean validateInternal(final J2EContext context, final String grantType, final ProfileManager manager, final UserProfile userProfile) { return false; }
java
protected boolean validateInternal(final J2EContext context, final String grantType, final ProfileManager manager, final UserProfile userProfile) { return false; }
[ "protected", "boolean", "validateInternal", "(", "final", "J2EContext", "context", ",", "final", "String", "grantType", ",", "final", "ProfileManager", "manager", ",", "final", "UserProfile", "userProfile", ")", "{", "return", "false", ";", "}" ]
Validate internal. @param context the context @param grantType the grant type @param manager the manager @param userProfile the profile @return true/false
[ "Validate", "internal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/validator/token/BaseOAuth20TokenRequestValidator.java#L106-L109
126,427
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/handler/support/jaas/JaasAuthenticationHandler.java
JaasAuthenticationHandler.authenticateAndGetPrincipal
protected Principal authenticateAndGetPrincipal(final UsernamePasswordCredential credential) throws GeneralSecurityException { val lc = getLoginContext(credential); try { lc.login(); val principals = lc.getSubject().getPrincipals(); LOGGER.debug("JAAS principals extra...
java
protected Principal authenticateAndGetPrincipal(final UsernamePasswordCredential credential) throws GeneralSecurityException { val lc = getLoginContext(credential); try { lc.login(); val principals = lc.getSubject().getPrincipals(); LOGGER.debug("JAAS principals extra...
[ "protected", "Principal", "authenticateAndGetPrincipal", "(", "final", "UsernamePasswordCredential", "credential", ")", "throws", "GeneralSecurityException", "{", "val", "lc", "=", "getLoginContext", "(", "credential", ")", ";", "try", "{", "lc", ".", "login", "(", ...
Authenticate and get principal principal. @param credential the credential @return the principal @throws GeneralSecurityException the general security exception
[ "Authenticate", "and", "get", "principal", "principal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/handler/support/jaas/JaasAuthenticationHandler.java#L140-L157
126,428
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/handler/support/jaas/JaasAuthenticationHandler.java
JaasAuthenticationHandler.getLoginContext
protected LoginContext getLoginContext(final UsernamePasswordCredential credential) throws GeneralSecurityException { val callbackHandler = new UsernamePasswordCallbackHandler(credential.getUsername(), credential.getPassword()); if (this.loginConfigurationFile != null && StringUtils.isNotBlank(this.logi...
java
protected LoginContext getLoginContext(final UsernamePasswordCredential credential) throws GeneralSecurityException { val callbackHandler = new UsernamePasswordCallbackHandler(credential.getUsername(), credential.getPassword()); if (this.loginConfigurationFile != null && StringUtils.isNotBlank(this.logi...
[ "protected", "LoginContext", "getLoginContext", "(", "final", "UsernamePasswordCredential", "credential", ")", "throws", "GeneralSecurityException", "{", "val", "callbackHandler", "=", "new", "UsernamePasswordCallbackHandler", "(", "credential", ".", "getUsername", "(", ")"...
Gets login context. @param credential the credential @return the login context @throws GeneralSecurityException the general security exception
[ "Gets", "login", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/handler/support/jaas/JaasAuthenticationHandler.java#L166-L175
126,429
apereo/cas
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/idp/metadata/generator/BaseSamlIdPMetadataGenerator.java
BaseSamlIdPMetadataGenerator.buildMetadataGeneratorParameters
@SneakyThrows private String buildMetadataGeneratorParameters(final Pair<String, String> signing, final Pair<String, String> encryption) { val template = samlIdPMetadataGeneratorConfigurationContext.getResourceLoader().getResource("classpath:/template-idp-metadata.xml"); var signingCert = signing.g...
java
@SneakyThrows private String buildMetadataGeneratorParameters(final Pair<String, String> signing, final Pair<String, String> encryption) { val template = samlIdPMetadataGeneratorConfigurationContext.getResourceLoader().getResource("classpath:/template-idp-metadata.xml"); var signingCert = signing.g...
[ "@", "SneakyThrows", "private", "String", "buildMetadataGeneratorParameters", "(", "final", "Pair", "<", "String", ",", "String", ">", "signing", ",", "final", "Pair", "<", "String", ",", "String", ">", "encryption", ")", "{", "val", "template", "=", "samlIdPM...
Build metadata generator parameters by passing the encryption, signing and back-channel certs to the parameter generator. @param signing the signing @param encryption the encryption @return the metadata
[ "Build", "metadata", "generator", "parameters", "by", "passing", "the", "encryption", "signing", "and", "back", "-", "channel", "certs", "to", "the", "parameter", "generator", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/idp/metadata/generator/BaseSamlIdPMetadataGenerator.java#L96-L120
126,430
apereo/cas
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/idp/metadata/generator/BaseSamlIdPMetadataGenerator.java
BaseSamlIdPMetadataGenerator.generateCertificateAndKey
@SneakyThrows protected Pair<String, String> generateCertificateAndKey() { try (val certWriter = new StringWriter(); val keyWriter = new StringWriter()) { samlIdPMetadataGeneratorConfigurationContext.getSamlIdPCertificateAndKeyWriter().writeCertificateAndKey(keyWriter, certWriter); v...
java
@SneakyThrows protected Pair<String, String> generateCertificateAndKey() { try (val certWriter = new StringWriter(); val keyWriter = new StringWriter()) { samlIdPMetadataGeneratorConfigurationContext.getSamlIdPCertificateAndKeyWriter().writeCertificateAndKey(keyWriter, certWriter); v...
[ "@", "SneakyThrows", "protected", "Pair", "<", "String", ",", "String", ">", "generateCertificateAndKey", "(", ")", "{", "try", "(", "val", "certWriter", "=", "new", "StringWriter", "(", ")", ";", "val", "keyWriter", "=", "new", "StringWriter", "(", ")", "...
Generate certificate and key pair. @return the pair where key/left is the certificate and value is the key
[ "Generate", "certificate", "and", "key", "pair", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/idp/metadata/generator/BaseSamlIdPMetadataGenerator.java#L137-L144
126,431
apereo/cas
support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/ConsentDecisionCouchDbRepository.java
ConsentDecisionCouchDbRepository.findConsentDecision
@View(name = "by_consent_decision", map = "function(doc) {emit([doc.principal, doc.service], doc)}") public List<CouchDbConsentDecision> findConsentDecision(final String principal, final String service) { val view = createQuery("by_consent_decision").key(ComplexKey.of(principal, service)).includeDocs(true);...
java
@View(name = "by_consent_decision", map = "function(doc) {emit([doc.principal, doc.service], doc)}") public List<CouchDbConsentDecision> findConsentDecision(final String principal, final String service) { val view = createQuery("by_consent_decision").key(ComplexKey.of(principal, service)).includeDocs(true);...
[ "@", "View", "(", "name", "=", "\"by_consent_decision\"", ",", "map", "=", "\"function(doc) {emit([doc.principal, doc.service], doc)}\"", ")", "public", "List", "<", "CouchDbConsentDecision", ">", "findConsentDecision", "(", "final", "String", "principal", ",", "final", ...
Find all consent decisions for a given principal, service pair. Should only be one. @param principal User to search for. @param service Service name to search for. @return Consent decisions matching the given principal and service names.
[ "Find", "all", "consent", "decisions", "for", "a", "given", "principal", "service", "pair", ".", "Should", "only", "be", "one", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/ConsentDecisionCouchDbRepository.java#L42-L46
126,432
apereo/cas
support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/ConsentDecisionCouchDbRepository.java
ConsentDecisionCouchDbRepository.findFirstConsentDecision
public CouchDbConsentDecision findFirstConsentDecision(final String principal, final String service) { val view = createQuery("by_consent_decision").key(ComplexKey.of(principal, service)).limit(1).includeDocs(true); return db.queryView(view, CouchDbConsentDecision.class).stream().findFirst().orElse(null...
java
public CouchDbConsentDecision findFirstConsentDecision(final String principal, final String service) { val view = createQuery("by_consent_decision").key(ComplexKey.of(principal, service)).limit(1).includeDocs(true); return db.queryView(view, CouchDbConsentDecision.class).stream().findFirst().orElse(null...
[ "public", "CouchDbConsentDecision", "findFirstConsentDecision", "(", "final", "String", "principal", ",", "final", "String", "service", ")", "{", "val", "view", "=", "createQuery", "(", "\"by_consent_decision\"", ")", ".", "key", "(", "ComplexKey", ".", "of", "(",...
Find the first consent decision for a given principal, service pair. Should only be one of them anyway. @param principal User to search for. @param service Service name to search for. @return Consent decision matching the given principal and service names.
[ "Find", "the", "first", "consent", "decision", "for", "a", "given", "principal", "service", "pair", ".", "Should", "only", "be", "one", "of", "them", "anyway", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/ConsentDecisionCouchDbRepository.java#L54-L57
126,433
apereo/cas
support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/ConsentDecisionCouchDbRepository.java
ConsentDecisionCouchDbRepository.findByPrincipalAndId
@View(name = "by_principal_and_id", map = "function(doc) {emit([doc.principal, doc.id], doc)}") public CouchDbConsentDecision findByPrincipalAndId(final String principal, final long id) { val view = createQuery("by_principal_and_id").key(ComplexKey.of(principal, id)).limit(1).includeDocs(true); retu...
java
@View(name = "by_principal_and_id", map = "function(doc) {emit([doc.principal, doc.id], doc)}") public CouchDbConsentDecision findByPrincipalAndId(final String principal, final long id) { val view = createQuery("by_principal_and_id").key(ComplexKey.of(principal, id)).limit(1).includeDocs(true); retu...
[ "@", "View", "(", "name", "=", "\"by_principal_and_id\"", ",", "map", "=", "\"function(doc) {emit([doc.principal, doc.id], doc)}\"", ")", "public", "CouchDbConsentDecision", "findByPrincipalAndId", "(", "final", "String", "principal", ",", "final", "long", "id", ")", "{...
Find a consent decision by +long+ ID and principal name. For CouchDb, this ID is randomly generated and the pair should be unique, with a very high probability, but is not guaranteed. This method is mostly only used by tests. @param principal User to search for. @param id decision id to search for. @return First consen...
[ "Find", "a", "consent", "decision", "by", "+", "long", "+", "ID", "and", "principal", "name", ".", "For", "CouchDb", "this", "ID", "is", "randomly", "generated", "and", "the", "pair", "should", "be", "unique", "with", "a", "very", "high", "probability", ...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-couchdb/src/main/java/org/apereo/cas/couchdb/consent/ConsentDecisionCouchDbRepository.java#L75-L79
126,434
apereo/cas
api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/intel/IPAddressIntelligenceResponse.java
IPAddressIntelligenceResponse.allowed
public static IPAddressIntelligenceResponse allowed() { return builder() .status(IPAddressIntelligenceStatus.ALLOWED) .score(IPAddressIntelligenceStatus.ALLOWED.getScore()) .build(); }
java
public static IPAddressIntelligenceResponse allowed() { return builder() .status(IPAddressIntelligenceStatus.ALLOWED) .score(IPAddressIntelligenceStatus.ALLOWED.getScore()) .build(); }
[ "public", "static", "IPAddressIntelligenceResponse", "allowed", "(", ")", "{", "return", "builder", "(", ")", ".", "status", "(", "IPAddressIntelligenceStatus", ".", "ALLOWED", ")", ".", "score", "(", "IPAddressIntelligenceStatus", ".", "ALLOWED", ".", "getScore", ...
Allowed ip address intelligence response. @return the ip address intelligence response
[ "Allowed", "ip", "address", "intelligence", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/intel/IPAddressIntelligenceResponse.java#L74-L79
126,435
apereo/cas
api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/intel/IPAddressIntelligenceResponse.java
IPAddressIntelligenceResponse.banned
public static IPAddressIntelligenceResponse banned() { return builder() .status(IPAddressIntelligenceStatus.BANNED) .score(IPAddressIntelligenceStatus.BANNED.getScore()) .build(); }
java
public static IPAddressIntelligenceResponse banned() { return builder() .status(IPAddressIntelligenceStatus.BANNED) .score(IPAddressIntelligenceStatus.BANNED.getScore()) .build(); }
[ "public", "static", "IPAddressIntelligenceResponse", "banned", "(", ")", "{", "return", "builder", "(", ")", ".", "status", "(", "IPAddressIntelligenceStatus", ".", "BANNED", ")", ".", "score", "(", "IPAddressIntelligenceStatus", ".", "BANNED", ".", "getScore", "(...
Banned ip address intelligence response. @return the ip address intelligence response
[ "Banned", "ip", "address", "intelligence", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-authentication/src/main/java/org/apereo/cas/authentication/adaptive/intel/IPAddressIntelligenceResponse.java#L86-L91
126,436
apereo/cas
support/cas-server-support-aup-core/src/main/java/org/apereo/cas/aup/AcceptableUsagePolicyStatus.java
AcceptableUsagePolicyStatus.setProperty
public AcceptableUsagePolicyStatus setProperty(final String name, final Object value) { this.properties.remove(name); addProperty(name, value); return this; }
java
public AcceptableUsagePolicyStatus setProperty(final String name, final Object value) { this.properties.remove(name); addProperty(name, value); return this; }
[ "public", "AcceptableUsagePolicyStatus", "setProperty", "(", "final", "String", "name", ",", "final", "Object", "value", ")", "{", "this", ".", "properties", ".", "remove", "(", "name", ")", ";", "addProperty", "(", "name", ",", "value", ")", ";", "return", ...
Sets property. @param name the name @param value the value @return the property
[ "Sets", "property", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-core/src/main/java/org/apereo/cas/aup/AcceptableUsagePolicyStatus.java#L55-L59
126,437
apereo/cas
support/cas-server-support-aup-core/src/main/java/org/apereo/cas/aup/AcceptableUsagePolicyStatus.java
AcceptableUsagePolicyStatus.addProperty
public AcceptableUsagePolicyStatus addProperty(final String name, final Object value) { this.properties.put(name, value); return this; }
java
public AcceptableUsagePolicyStatus addProperty(final String name, final Object value) { this.properties.put(name, value); return this; }
[ "public", "AcceptableUsagePolicyStatus", "addProperty", "(", "final", "String", "name", ",", "final", "Object", "value", ")", "{", "this", ".", "properties", ".", "put", "(", "name", ",", "value", ")", ";", "return", "this", ";", "}" ]
Add property. @param name the name @param value the value @return the acceptable usage policy status
[ "Add", "property", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-core/src/main/java/org/apereo/cas/aup/AcceptableUsagePolicyStatus.java#L78-L81
126,438
apereo/cas
support/cas-server-support-hazelcast-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/HazelcastTicketRegistry.java
HazelcastTicketRegistry.shutdown
public void shutdown() { try { LOGGER.info("Shutting down Hazelcast instance [{}]", this.hazelcastInstance.getConfig().getInstanceName()); this.hazelcastInstance.shutdown(); } catch (final Exception e) { LOGGER.debug(e.getMessage()); } }
java
public void shutdown() { try { LOGGER.info("Shutting down Hazelcast instance [{}]", this.hazelcastInstance.getConfig().getInstanceName()); this.hazelcastInstance.shutdown(); } catch (final Exception e) { LOGGER.debug(e.getMessage()); } }
[ "public", "void", "shutdown", "(", ")", "{", "try", "{", "LOGGER", ".", "info", "(", "\"Shutting down Hazelcast instance [{}]\"", ",", "this", ".", "hazelcastInstance", ".", "getConfig", "(", ")", ".", "getInstanceName", "(", ")", ")", ";", "this", ".", "haz...
Make sure we shutdown HazelCast when the context is destroyed.
[ "Make", "sure", "we", "shutdown", "HazelCast", "when", "the", "context", "is", "destroyed", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-hazelcast-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/HazelcastTicketRegistry.java#L130-L137
126,439
apereo/cas
support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/CreateTicketGrantingTicketAction.java
CreateTicketGrantingTicketAction.calculateAuthenticationWarningMessages
private static Collection<MessageDescriptor> calculateAuthenticationWarningMessages(final TicketGrantingTicket tgtId, final MessageContext messageContext) { val entries = tgtId.getAuthentication().getSuccesses().entrySet(); val messages = entries .stream() .map(entry -> entry.get...
java
private static Collection<MessageDescriptor> calculateAuthenticationWarningMessages(final TicketGrantingTicket tgtId, final MessageContext messageContext) { val entries = tgtId.getAuthentication().getSuccesses().entrySet(); val messages = entries .stream() .map(entry -> entry.get...
[ "private", "static", "Collection", "<", "MessageDescriptor", ">", "calculateAuthenticationWarningMessages", "(", "final", "TicketGrantingTicket", "tgtId", ",", "final", "MessageContext", "messageContext", ")", "{", "val", "entries", "=", "tgtId", ".", "getAuthentication",...
Add warning messages to message context if needed. @param tgtId the tgt id @param messageContext the message context @return authn warnings from all handlers and results @since 4.1.0
[ "Add", "warning", "messages", "to", "message", "context", "if", "needed", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/CreateTicketGrantingTicketAction.java#L56-L70
126,440
apereo/cas
support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/CreateTicketGrantingTicketAction.java
CreateTicketGrantingTicketAction.addMessageDescriptorToMessageContext
protected static void addMessageDescriptorToMessageContext(final MessageContext context, final MessageDescriptor warning) { val builder = new MessageBuilder() .warning() .code(warning.getCode()) .defaultText(warning.getDefaultMessage()) .args((Object[]) warning.ge...
java
protected static void addMessageDescriptorToMessageContext(final MessageContext context, final MessageDescriptor warning) { val builder = new MessageBuilder() .warning() .code(warning.getCode()) .defaultText(warning.getDefaultMessage()) .args((Object[]) warning.ge...
[ "protected", "static", "void", "addMessageDescriptorToMessageContext", "(", "final", "MessageContext", "context", ",", "final", "MessageDescriptor", "warning", ")", "{", "val", "builder", "=", "new", "MessageBuilder", "(", ")", ".", "warning", "(", ")", ".", "code...
Adds a warning message to the message context. @param context Message context. @param warning Warning message.
[ "Adds", "a", "warning", "message", "to", "the", "message", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/CreateTicketGrantingTicketAction.java#L78-L85
126,441
apereo/cas
support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/CreateTicketGrantingTicketAction.java
CreateTicketGrantingTicketAction.createOrUpdateTicketGrantingTicket
protected TicketGrantingTicket createOrUpdateTicketGrantingTicket(final AuthenticationResult authenticationResult, final Authentication authentication, final String ticketGrantingTicket) { try { if (shouldIssueTicketGrantingTicket...
java
protected TicketGrantingTicket createOrUpdateTicketGrantingTicket(final AuthenticationResult authenticationResult, final Authentication authentication, final String ticketGrantingTicket) { try { if (shouldIssueTicketGrantingTicket...
[ "protected", "TicketGrantingTicket", "createOrUpdateTicketGrantingTicket", "(", "final", "AuthenticationResult", "authenticationResult", ",", "final", "Authentication", "authentication", ",", "final", "String", "ticketGrantingTicket", ")", "{", "try", "{", "if", "(", "shoul...
Create or update ticket granting ticket ticket granting ticket. @param authenticationResult the authentication result @param authentication the authentication @param ticketGrantingTicket the ticket granting ticket @return the ticket granting ticket
[ "Create", "or", "update", "ticket", "granting", "ticket", "ticket", "granting", "ticket", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-actions/src/main/java/org/apereo/cas/web/flow/login/CreateTicketGrantingTicketAction.java#L135-L154
126,442
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.signSamlResponse
public static String signSamlResponse(final String samlResponse, final PrivateKey privateKey, final PublicKey publicKey) { val doc = constructDocumentFromXml(samlResponse); if (doc != null) { val signedElement = signSamlElement(doc.getRootElement(), privateKey, publicKey); ...
java
public static String signSamlResponse(final String samlResponse, final PrivateKey privateKey, final PublicKey publicKey) { val doc = constructDocumentFromXml(samlResponse); if (doc != null) { val signedElement = signSamlElement(doc.getRootElement(), privateKey, publicKey); ...
[ "public", "static", "String", "signSamlResponse", "(", "final", "String", "samlResponse", ",", "final", "PrivateKey", "privateKey", ",", "final", "PublicKey", "publicKey", ")", "{", "val", "doc", "=", "constructDocumentFromXml", "(", "samlResponse", ")", ";", "if"...
Sign SAML response. @param samlResponse the SAML response @param privateKey the private key @param publicKey the public key @return the response
[ "Sign", "SAML", "response", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L107-L117
126,443
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.constructDocumentFromXml
public static Document constructDocumentFromXml(final String xmlString) { try { val builder = new SAXBuilder(); builder.setFeature("http://xml.org/sax/features/external-general-entities", false); builder.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true)...
java
public static Document constructDocumentFromXml(final String xmlString) { try { val builder = new SAXBuilder(); builder.setFeature("http://xml.org/sax/features/external-general-entities", false); builder.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true)...
[ "public", "static", "Document", "constructDocumentFromXml", "(", "final", "String", "xmlString", ")", "{", "try", "{", "val", "builder", "=", "new", "SAXBuilder", "(", ")", ";", "builder", ".", "setFeature", "(", "\"http://xml.org/sax/features/external-general-entitie...
Construct document from xml string. @param xmlString the xml string @return the document
[ "Construct", "document", "from", "xml", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L125-L135
126,444
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.signSamlElement
private static org.jdom.Element signSamlElement(final org.jdom.Element element, final PrivateKey privKey, final PublicKey pubKey) { try { val providerName = System.getProperty("jsr105Provider", SIGNATURE_FACTORY_PROVIDER_CLASS); val clazz = Class.forName(providerName); val s...
java
private static org.jdom.Element signSamlElement(final org.jdom.Element element, final PrivateKey privKey, final PublicKey pubKey) { try { val providerName = System.getProperty("jsr105Provider", SIGNATURE_FACTORY_PROVIDER_CLASS); val clazz = Class.forName(providerName); val s...
[ "private", "static", "org", ".", "jdom", ".", "Element", "signSamlElement", "(", "final", "org", ".", "jdom", ".", "Element", "element", ",", "final", "PrivateKey", "privKey", ",", "final", "PublicKey", "pubKey", ")", "{", "try", "{", "val", "providerName", ...
Sign SAML element. @param element the element @param privKey the priv key @param pubKey the pub key @return the element
[ "Sign", "SAML", "element", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L145-L185
126,445
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.getXmlSignatureInsertLocation
private static Node getXmlSignatureInsertLocation(final Element elem) { val nodeListExtensions = elem.getElementsByTagNameNS(SAMLConstants.SAML20P_NS, "Extensions"); if (nodeListExtensions.getLength() != 0) { return nodeListExtensions.item(nodeListExtensions.getLength() - 1); } ...
java
private static Node getXmlSignatureInsertLocation(final Element elem) { val nodeListExtensions = elem.getElementsByTagNameNS(SAMLConstants.SAML20P_NS, "Extensions"); if (nodeListExtensions.getLength() != 0) { return nodeListExtensions.item(nodeListExtensions.getLength() - 1); } ...
[ "private", "static", "Node", "getXmlSignatureInsertLocation", "(", "final", "Element", "elem", ")", "{", "val", "nodeListExtensions", "=", "elem", ".", "getElementsByTagNameNS", "(", "SAMLConstants", ".", "SAML20P_NS", ",", "\"Extensions\"", ")", ";", "if", "(", "...
Gets the xml signature insert location. @param elem the elem @return the xml signature insert location
[ "Gets", "the", "xml", "signature", "insert", "location", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L206-L213
126,446
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.toDom
private static Element toDom(final org.jdom.Element element) { return toDom(element.getDocument()).getDocumentElement(); }
java
private static Element toDom(final org.jdom.Element element) { return toDom(element.getDocument()).getDocumentElement(); }
[ "private", "static", "Element", "toDom", "(", "final", "org", ".", "jdom", ".", "Element", "element", ")", "{", "return", "toDom", "(", "element", ".", "getDocument", "(", ")", ")", ".", "getDocumentElement", "(", ")", ";", "}" ]
Convert the received jdom element to an Element. @param element the element @return the org.w3c.dom. element
[ "Convert", "the", "received", "jdom", "element", "to", "an", "Element", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L221-L223
126,447
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.toDom
private static org.w3c.dom.Document toDom(final Document doc) { try { val xmlOutputter = new XMLOutputter(); val elemStrWriter = new StringWriter(); xmlOutputter.output(doc, elemStrWriter); val xmlBytes = elemStrWriter.toString().getBytes(Charset.defaultCharset())...
java
private static org.w3c.dom.Document toDom(final Document doc) { try { val xmlOutputter = new XMLOutputter(); val elemStrWriter = new StringWriter(); xmlOutputter.output(doc, elemStrWriter); val xmlBytes = elemStrWriter.toString().getBytes(Charset.defaultCharset())...
[ "private", "static", "org", ".", "w3c", ".", "dom", ".", "Document", "toDom", "(", "final", "Document", "doc", ")", "{", "try", "{", "val", "xmlOutputter", "=", "new", "XMLOutputter", "(", ")", ";", "val", "elemStrWriter", "=", "new", "StringWriter", "("...
Convert the received jdom doc to a Document element. @param doc the doc @return the org.w3c.dom. document
[ "Convert", "the", "received", "jdom", "doc", "to", "a", "Document", "element", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L231-L251
126,448
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.newSamlObject
@SneakyThrows public <T extends SAMLObject> T newSamlObject(final Class<T> objectType) { val qName = getSamlObjectQName(objectType); val builder = (SAMLObjectBuilder<T>) XMLObjectProviderRegistrySupport.getBuilderFactory().getBuilder(qName); if (builder == null) { thr...
java
@SneakyThrows public <T extends SAMLObject> T newSamlObject(final Class<T> objectType) { val qName = getSamlObjectQName(objectType); val builder = (SAMLObjectBuilder<T>) XMLObjectProviderRegistrySupport.getBuilderFactory().getBuilder(qName); if (builder == null) { thr...
[ "@", "SneakyThrows", "public", "<", "T", "extends", "SAMLObject", ">", "T", "newSamlObject", "(", "final", "Class", "<", "T", ">", "objectType", ")", "{", "val", "qName", "=", "getSamlObjectQName", "(", "objectType", ")", ";", "val", "builder", "=", "(", ...
Create a new SAML object. @param <T> the generic type @param objectType the object type @return the t
[ "Create", "a", "new", "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/util/AbstractSamlObjectBuilder.java#L270-L279
126,449
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.newSoapObject
@SneakyThrows public <T extends SOAPObject> T newSoapObject(final Class<T> objectType) { val qName = getSamlObjectQName(objectType); val builder = (SOAPObjectBuilder<T>) XMLObjectProviderRegistrySupport.getBuilderFactory().getBuilder(qName); if (builder == null) { thr...
java
@SneakyThrows public <T extends SOAPObject> T newSoapObject(final Class<T> objectType) { val qName = getSamlObjectQName(objectType); val builder = (SOAPObjectBuilder<T>) XMLObjectProviderRegistrySupport.getBuilderFactory().getBuilder(qName); if (builder == null) { thr...
[ "@", "SneakyThrows", "public", "<", "T", "extends", "SOAPObject", ">", "T", "newSoapObject", "(", "final", "Class", "<", "T", ">", "objectType", ")", "{", "val", "qName", "=", "getSamlObjectQName", "(", "objectType", ")", ";", "val", "builder", "=", "(", ...
New soap object t. @param <T> the type parameter @param objectType the object type @return the t
[ "New", "soap", "object", "t", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L288-L297
126,450
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.getSamlObjectQName
public QName getSamlObjectQName(final Class objectType) { try { val f = objectType.getField(DEFAULT_ELEMENT_NAME_FIELD); return (QName) f.get(null); } catch (final NoSuchFieldException e) { throw new IllegalStateException("Cannot find field " + objectType.getName() + ...
java
public QName getSamlObjectQName(final Class objectType) { try { val f = objectType.getField(DEFAULT_ELEMENT_NAME_FIELD); return (QName) f.get(null); } catch (final NoSuchFieldException e) { throw new IllegalStateException("Cannot find field " + objectType.getName() + ...
[ "public", "QName", "getSamlObjectQName", "(", "final", "Class", "objectType", ")", "{", "try", "{", "val", "f", "=", "objectType", ".", "getField", "(", "DEFAULT_ELEMENT_NAME_FIELD", ")", ";", "return", "(", "QName", ")", "f", ".", "get", "(", "null", ")",...
Gets saml object QName. @param objectType the object type @return the saml object QName
[ "Gets", "saml", "object", "QName", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L305-L314
126,451
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.newAttributeValue
protected XMLObject newAttributeValue(final Object value, final String valueType, final QName elementName) { if (XSString.class.getSimpleName().equalsIgnoreCase(valueType)) { val builder = new XSStringBuilder(); val attrValueObj = builder.buildObject(elementName, XSString.TYPE_NAME); ...
java
protected XMLObject newAttributeValue(final Object value, final String valueType, final QName elementName) { if (XSString.class.getSimpleName().equalsIgnoreCase(valueType)) { val builder = new XSStringBuilder(); val attrValueObj = builder.buildObject(elementName, XSString.TYPE_NAME); ...
[ "protected", "XMLObject", "newAttributeValue", "(", "final", "Object", "value", ",", "final", "String", "valueType", ",", "final", "QName", "elementName", ")", "{", "if", "(", "XSString", ".", "class", ".", "getSimpleName", "(", ")", ".", "equalsIgnoreCase", "...
New attribute value. @param value the value @param valueType the value type @param elementName the element name @return the xS string
[ "New", "attribute", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L324-L380
126,452
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.generateSecureRandomId
public String generateSecureRandomId() { try { val random = new HexRandomStringGenerator(RANDOM_ID_SIZE); val hex = random.getNewString(); if (StringUtils.isBlank(hex)) { throw new IllegalArgumentException("Could not generate a secure random id based on " + ra...
java
public String generateSecureRandomId() { try { val random = new HexRandomStringGenerator(RANDOM_ID_SIZE); val hex = random.getNewString(); if (StringUtils.isBlank(hex)) { throw new IllegalArgumentException("Could not generate a secure random id based on " + ra...
[ "public", "String", "generateSecureRandomId", "(", ")", "{", "try", "{", "val", "random", "=", "new", "HexRandomStringGenerator", "(", "RANDOM_ID_SIZE", ")", ";", "val", "hex", "=", "random", ".", "getNewString", "(", ")", ";", "if", "(", "StringUtils", ".",...
Generate a secure random id. @return the secure id string
[ "Generate", "a", "secure", "random", "id", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L387-L398
126,453
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java
AbstractSamlObjectBuilder.addAttributeValuesToSamlAttribute
protected void addAttributeValuesToSamlAttribute(final String attributeName, final Object attributeValue, final String valueType, final List<XMLObject> attribute...
java
protected void addAttributeValuesToSamlAttribute(final String attributeName, final Object attributeValue, final String valueType, final List<XMLObject> attribute...
[ "protected", "void", "addAttributeValuesToSamlAttribute", "(", "final", "String", "attributeName", ",", "final", "Object", "attributeValue", ",", "final", "String", "valueType", ",", "final", "List", "<", "XMLObject", ">", "attributeList", ",", "final", "QName", "de...
Add attribute values to saml attribute. @param attributeName the attribute name @param attributeValue the attribute value @param valueType the value type @param attributeList the attribute list @param defaultElementName the default element name
[ "Add", "attribute", "values", "to", "saml", "attribute", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSamlObjectBuilder.java#L409-L428
126,454
apereo/cas
support/cas-server-support-scim/src/main/java/org/apereo/cas/scim/v1/ScimV1PrincipalAttributeMapper.java
ScimV1PrincipalAttributeMapper.getPrincipalAttributeValue
public String getPrincipalAttributeValue(final Principal p, final String attributeName) { val attributes = p.getAttributes(); if (attributes.containsKey(attributeName)) { return CollectionUtils.toCollection(attributes.get(attributeName)).iterator().next().toString(); } return...
java
public String getPrincipalAttributeValue(final Principal p, final String attributeName) { val attributes = p.getAttributes(); if (attributes.containsKey(attributeName)) { return CollectionUtils.toCollection(attributes.get(attributeName)).iterator().next().toString(); } return...
[ "public", "String", "getPrincipalAttributeValue", "(", "final", "Principal", "p", ",", "final", "String", "attributeName", ")", "{", "val", "attributes", "=", "p", ".", "getAttributes", "(", ")", ";", "if", "(", "attributes", ".", "containsKey", "(", "attribut...
Gets principal attribute value. @param p the p @param attributeName the attribute name @return the principal attribute value
[ "Gets", "principal", "attribute", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-scim/src/main/java/org/apereo/cas/scim/v1/ScimV1PrincipalAttributeMapper.java#L28-L34
126,455
apereo/cas
support/cas-server-support-logging-config-splunk/src/main/java/org/apereo/cas/logging/SplunkAppender.java
SplunkAppender.build
@PluginFactory public static SplunkAppender build(@PluginAttribute("name") final String name, @PluginElement("AppenderRef") final AppenderRef appenderRef, @PluginConfiguration final Configuration config) { return new SplunkAppende...
java
@PluginFactory public static SplunkAppender build(@PluginAttribute("name") final String name, @PluginElement("AppenderRef") final AppenderRef appenderRef, @PluginConfiguration final Configuration config) { return new SplunkAppende...
[ "@", "PluginFactory", "public", "static", "SplunkAppender", "build", "(", "@", "PluginAttribute", "(", "\"name\"", ")", "final", "String", "name", ",", "@", "PluginElement", "(", "\"AppenderRef\"", ")", "final", "AppenderRef", "appenderRef", ",", "@", "PluginConfi...
Create appender. @param name the name @param appenderRef the appender ref @param config the config @return the appender
[ "Create", "appender", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-logging-config-splunk/src/main/java/org/apereo/cas/logging/SplunkAppender.java#L45-L50
126,456
apereo/cas
support/cas-server-support-surrogate-authentication/src/main/java/org/apereo/cas/authentication/SurrogatePrincipalBuilder.java
SurrogatePrincipalBuilder.buildSurrogatePrincipal
public Principal buildSurrogatePrincipal(final String surrogate, final Principal primaryPrincipal, final Credential credentials, final RegisteredService registeredService) { val repositories = new HashSet<String>(0); if (registeredService != null) { ...
java
public Principal buildSurrogatePrincipal(final String surrogate, final Principal primaryPrincipal, final Credential credentials, final RegisteredService registeredService) { val repositories = new HashSet<String>(0); if (registeredService != null) { ...
[ "public", "Principal", "buildSurrogatePrincipal", "(", "final", "String", "surrogate", ",", "final", "Principal", "primaryPrincipal", ",", "final", "Credential", "credentials", ",", "final", "RegisteredService", "registeredService", ")", "{", "val", "repositories", "=",...
Build principal. @param surrogate the surrogate @param primaryPrincipal the primary principal @param credentials the credentials @param registeredService the registered service @return the principal
[ "Build", "principal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-surrogate-authentication/src/main/java/org/apereo/cas/authentication/SurrogatePrincipalBuilder.java#L35-L44
126,457
apereo/cas
support/cas-server-support-surrogate-authentication/src/main/java/org/apereo/cas/authentication/SurrogatePrincipalBuilder.java
SurrogatePrincipalBuilder.buildSurrogateAuthenticationResult
public Optional<AuthenticationResultBuilder> buildSurrogateAuthenticationResult(final AuthenticationResultBuilder authenticationResultBuilder, final Credential credential, ...
java
public Optional<AuthenticationResultBuilder> buildSurrogateAuthenticationResult(final AuthenticationResultBuilder authenticationResultBuilder, final Credential credential, ...
[ "public", "Optional", "<", "AuthenticationResultBuilder", ">", "buildSurrogateAuthenticationResult", "(", "final", "AuthenticationResultBuilder", "authenticationResultBuilder", ",", "final", "Credential", "credential", ",", "final", "String", "surrogateTargetId", ",", "final", ...
Build surrogate authentication result optional. @param authenticationResultBuilder the authentication result builder @param credential the credential @param surrogateTargetId the surrogate target id @param registeredService the registered service @return the optional
[ "Build", "surrogate", "authentication", "result", "optional", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-surrogate-authentication/src/main/java/org/apereo/cas/authentication/SurrogatePrincipalBuilder.java#L55-L67
126,458
apereo/cas
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlMetadataDocument.java
SamlMetadataDocument.getDecodedValue
@JsonIgnore public String getDecodedValue() { if (EncodingUtils.isBase64(value)) { return EncodingUtils.decodeBase64ToString(value); } return value; }
java
@JsonIgnore public String getDecodedValue() { if (EncodingUtils.isBase64(value)) { return EncodingUtils.decodeBase64ToString(value); } return value; }
[ "@", "JsonIgnore", "public", "String", "getDecodedValue", "(", ")", "{", "if", "(", "EncodingUtils", ".", "isBase64", "(", "value", ")", ")", "{", "return", "EncodingUtils", ".", "decodeBase64ToString", "(", "value", ")", ";", "}", "return", "value", ";", ...
Gets base-64 decoded value if needed, or the value itself. @return the decoded value
[ "Gets", "base", "-", "64", "decoded", "value", "if", "needed", "or", "the", "value", "itself", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlMetadataDocument.java#L63-L69
126,459
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java
DefaultRegisteredServiceAccessStrategy.doRequiredAttributesAllowPrincipalAccess
protected boolean doRequiredAttributesAllowPrincipalAccess(final Map<String, Object> principalAttributes, final Map<String, Set<String>> requiredAttributes) { LOGGER.debug("These required attributes [{}] are examined against [{}] before service can proceed.", requiredAttributes, principalAttributes); if...
java
protected boolean doRequiredAttributesAllowPrincipalAccess(final Map<String, Object> principalAttributes, final Map<String, Set<String>> requiredAttributes) { LOGGER.debug("These required attributes [{}] are examined against [{}] before service can proceed.", requiredAttributes, principalAttributes); if...
[ "protected", "boolean", "doRequiredAttributesAllowPrincipalAccess", "(", "final", "Map", "<", "String", ",", "Object", ">", "principalAttributes", ",", "final", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "requiredAttributes", ")", "{", "LOGGER", ...
Do required attributes allow principal access boolean. @param principalAttributes the principal attributes @param requiredAttributes the required attributes @return the boolean
[ "Do", "required", "attributes", "allow", "principal", "access", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java#L192-L198
126,460
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java
DefaultRegisteredServiceAccessStrategy.doRejectedAttributesRefusePrincipalAccess
protected boolean doRejectedAttributesRefusePrincipalAccess(final Map<String, Object> principalAttributes) { LOGGER.debug("These rejected attributes [{}] are examined against [{}] before service can proceed.", rejectedAttributes, principalAttributes); if (rejectedAttributes.isEmpty()) { retu...
java
protected boolean doRejectedAttributesRefusePrincipalAccess(final Map<String, Object> principalAttributes) { LOGGER.debug("These rejected attributes [{}] are examined against [{}] before service can proceed.", rejectedAttributes, principalAttributes); if (rejectedAttributes.isEmpty()) { retu...
[ "protected", "boolean", "doRejectedAttributesRefusePrincipalAccess", "(", "final", "Map", "<", "String", ",", "Object", ">", "principalAttributes", ")", "{", "LOGGER", ".", "debug", "(", "\"These rejected attributes [{}] are examined against [{}] before service can proceed.\"", ...
Do rejected attributes refuse principal access boolean. @param principalAttributes the principal attributes @return the boolean
[ "Do", "rejected", "attributes", "refuse", "principal", "access", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java#L206-L212
126,461
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java
DefaultRegisteredServiceAccessStrategy.enoughAttributesAvailableToProcess
protected boolean enoughAttributesAvailableToProcess(final String principal, final Map<String, Object> principalAttributes) { if (!enoughRequiredAttributesAvailableToProcess(principalAttributes, this.requiredAttributes)) { return false; } if (principalAttributes.size() < this.rejecte...
java
protected boolean enoughAttributesAvailableToProcess(final String principal, final Map<String, Object> principalAttributes) { if (!enoughRequiredAttributesAvailableToProcess(principalAttributes, this.requiredAttributes)) { return false; } if (principalAttributes.size() < this.rejecte...
[ "protected", "boolean", "enoughAttributesAvailableToProcess", "(", "final", "String", "principal", ",", "final", "Map", "<", "String", ",", "Object", ">", "principalAttributes", ")", "{", "if", "(", "!", "enoughRequiredAttributesAvailableToProcess", "(", "principalAttri...
Enough attributes available to process? Check collection sizes and determine if we have enough data to move on. @param principal the principal @param principalAttributes the principal attributes @return true /false
[ "Enough", "attributes", "available", "to", "process?", "Check", "collection", "sizes", "and", "determine", "if", "we", "have", "enough", "data", "to", "move", "on", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java#L222-L232
126,462
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java
DefaultRegisteredServiceAccessStrategy.enoughRequiredAttributesAvailableToProcess
protected boolean enoughRequiredAttributesAvailableToProcess(final Map<String, Object> principalAttributes, final Map<String, Set<String>> requiredAttributes) { if (principalAttributes.isEmpty() && !requiredAttributes.isEmpty()) { LOGGER.debug("No principal attributes are found to satisfy defined at...
java
protected boolean enoughRequiredAttributesAvailableToProcess(final Map<String, Object> principalAttributes, final Map<String, Set<String>> requiredAttributes) { if (principalAttributes.isEmpty() && !requiredAttributes.isEmpty()) { LOGGER.debug("No principal attributes are found to satisfy defined at...
[ "protected", "boolean", "enoughRequiredAttributesAvailableToProcess", "(", "final", "Map", "<", "String", ",", "Object", ">", "principalAttributes", ",", "final", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "requiredAttributes", ")", "{", "if", "(...
Enough required attributes available to process? Check collection sizes and determine if we have enough data to move on. @param principalAttributes the principal attributes @param requiredAttributes the required attributes @return true /false
[ "Enough", "required", "attributes", "available", "to", "process?", "Check", "collection", "sizes", "and", "determine", "if", "we", "have", "enough", "data", "to", "move", "on", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java#L242-L253
126,463
apereo/cas
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java
DefaultRegisteredServiceAccessStrategy.requiredAttributesFoundInMap
protected boolean requiredAttributesFoundInMap(final Map<String, Object> principalAttributes, final Map<String, Set<String>> requiredAttributes) { val difference = requiredAttributes.keySet().stream().filter(a -> principalAttributes.keySet().contains(a)).collect(Collectors.toSet()); LOGGER.debug("Differ...
java
protected boolean requiredAttributesFoundInMap(final Map<String, Object> principalAttributes, final Map<String, Set<String>> requiredAttributes) { val difference = requiredAttributes.keySet().stream().filter(a -> principalAttributes.keySet().contains(a)).collect(Collectors.toSet()); LOGGER.debug("Differ...
[ "protected", "boolean", "requiredAttributesFoundInMap", "(", "final", "Map", "<", "String", ",", "Object", ">", "principalAttributes", ",", "final", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "requiredAttributes", ")", "{", "val", "difference", ...
Check whether required attributes are found in the given map. @param principalAttributes the principal attributes @param requiredAttributes the attributes @return the boolean
[ "Check", "whether", "required", "attributes", "are", "found", "in", "the", "given", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/DefaultRegisteredServiceAccessStrategy.java#L262-L272
126,464
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java
SamlMetadataUIInfo.getStringValues
private static Collection<String> getStringValues(final List<?> items) { val list = new ArrayList<String>(); items.forEach(d -> { if (d instanceof XSURI) { list.add(((XSURI) d).getValue()); } else if (d instanceof XSString) { list.add(((XSString) d...
java
private static Collection<String> getStringValues(final List<?> items) { val list = new ArrayList<String>(); items.forEach(d -> { if (d instanceof XSURI) { list.add(((XSURI) d).getValue()); } else if (d instanceof XSString) { list.add(((XSString) d...
[ "private", "static", "Collection", "<", "String", ">", "getStringValues", "(", "final", "List", "<", "?", ">", "items", ")", "{", "val", "list", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "items", ".", "forEach", "(", "d", "->", "{",...
Gets string values from the list of mdui objects. @param items the items @return the string values
[ "Gets", "string", "values", "from", "the", "list", "of", "mdui", "objects", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java#L70-L80
126,465
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java
SamlMetadataUIInfo.getLogoUrls
@Override public Collection<Logo> getLogoUrls() { val list = new ArrayList<Logo>(); if (this.uiInfo != null) { list.addAll(this.uiInfo.getLogos().stream().map(l -> new Logo(l.getURL(), l.getHeight(), l.getWidth())).collect(Collectors.toList())); } return list; }
java
@Override public Collection<Logo> getLogoUrls() { val list = new ArrayList<Logo>(); if (this.uiInfo != null) { list.addAll(this.uiInfo.getLogos().stream().map(l -> new Logo(l.getURL(), l.getHeight(), l.getWidth())).collect(Collectors.toList())); } return list; }
[ "@", "Override", "public", "Collection", "<", "Logo", ">", "getLogoUrls", "(", ")", "{", "val", "list", "=", "new", "ArrayList", "<", "Logo", ">", "(", ")", ";", "if", "(", "this", ".", "uiInfo", "!=", "null", ")", "{", "list", ".", "addAll", "(", ...
Gets logo urls. @return the logo urls
[ "Gets", "logo", "urls", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java#L119-L126
126,466
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java
SamlMetadataUIInfo.getDescription
public String getDescription(final String locale) { if (this.uiInfo != null) { val description = getLocalizedValues(locale, this.uiInfo.getDescriptions()); return description != null ? description : super.getDescription(); } return super.getDescription(); }
java
public String getDescription(final String locale) { if (this.uiInfo != null) { val description = getLocalizedValues(locale, this.uiInfo.getDescriptions()); return description != null ? description : super.getDescription(); } return super.getDescription(); }
[ "public", "String", "getDescription", "(", "final", "String", "locale", ")", "{", "if", "(", "this", ".", "uiInfo", "!=", "null", ")", "{", "val", "description", "=", "getLocalizedValues", "(", "locale", ",", "this", ".", "uiInfo", ".", "getDescriptions", ...
Gets localized description. @param locale browser preferred language @return the description
[ "Gets", "localized", "description", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java#L134-L140
126,467
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java
SamlMetadataUIInfo.getDisplayName
public String getDisplayName(final String locale) { if (this.uiInfo != null) { val displayName = getLocalizedValues(locale, this.uiInfo.getDisplayNames()); return displayName != null ? displayName : super.getDisplayName(); } return super.getDisplayName(); }
java
public String getDisplayName(final String locale) { if (this.uiInfo != null) { val displayName = getLocalizedValues(locale, this.uiInfo.getDisplayNames()); return displayName != null ? displayName : super.getDisplayName(); } return super.getDisplayName(); }
[ "public", "String", "getDisplayName", "(", "final", "String", "locale", ")", "{", "if", "(", "this", ".", "uiInfo", "!=", "null", ")", "{", "val", "displayName", "=", "getLocalizedValues", "(", "locale", ",", "this", ".", "uiInfo", ".", "getDisplayNames", ...
Gets localized displayName. @param locale browser preferred language @return the displayName
[ "Gets", "localized", "displayName", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java#L153-L159
126,468
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java
SamlMetadataUIInfo.getInformationURL
public String getInformationURL(final String locale) { if (this.uiInfo != null) { val informationUrl = getLocalizedValues(locale, this.uiInfo.getInformationURLs()); return informationUrl != null ? informationUrl : super.getInformationURL(); } return super.getInformationUR...
java
public String getInformationURL(final String locale) { if (this.uiInfo != null) { val informationUrl = getLocalizedValues(locale, this.uiInfo.getInformationURLs()); return informationUrl != null ? informationUrl : super.getInformationURL(); } return super.getInformationUR...
[ "public", "String", "getInformationURL", "(", "final", "String", "locale", ")", "{", "if", "(", "this", ".", "uiInfo", "!=", "null", ")", "{", "val", "informationUrl", "=", "getLocalizedValues", "(", "locale", ",", "this", ".", "uiInfo", ".", "getInformation...
Gets localized informationURL. @param locale browser preferred language @return the informationURL
[ "Gets", "localized", "informationURL", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java#L172-L178
126,469
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java
SamlMetadataUIInfo.getPrivacyStatementURL
public String getPrivacyStatementURL(final String locale) { if (this.uiInfo != null) { val privacyStatementURL = getLocalizedValues(locale, this.uiInfo.getPrivacyStatementURLs()); return privacyStatementURL != null ? privacyStatementURL : super.getPrivacyStatementURL(); } ...
java
public String getPrivacyStatementURL(final String locale) { if (this.uiInfo != null) { val privacyStatementURL = getLocalizedValues(locale, this.uiInfo.getPrivacyStatementURLs()); return privacyStatementURL != null ? privacyStatementURL : super.getPrivacyStatementURL(); } ...
[ "public", "String", "getPrivacyStatementURL", "(", "final", "String", "locale", ")", "{", "if", "(", "this", ".", "uiInfo", "!=", "null", ")", "{", "val", "privacyStatementURL", "=", "getLocalizedValues", "(", "locale", ",", "this", ".", "uiInfo", ".", "getP...
Gets localized privacyStatementURL. @param locale browser preferred language @return the privacyStatementURL
[ "Gets", "localized", "privacyStatementURL", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java#L191-L197
126,470
apereo/cas
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java
SamlMetadataUIInfo.getLocalizedValues
private static String getLocalizedValues(final String locale, final List<?> items) { val foundLocale = findLocale(StringUtils.defaultString(locale, "en"), items); if (foundLocale.isPresent()) { return foundLocale.get(); } if (!items.isEmpty()) { val item = items....
java
private static String getLocalizedValues(final String locale, final List<?> items) { val foundLocale = findLocale(StringUtils.defaultString(locale, "en"), items); if (foundLocale.isPresent()) { return foundLocale.get(); } if (!items.isEmpty()) { val item = items....
[ "private", "static", "String", "getLocalizedValues", "(", "final", "String", "locale", ",", "final", "List", "<", "?", ">", "items", ")", "{", "val", "foundLocale", "=", "findLocale", "(", "StringUtils", ".", "defaultString", "(", "locale", ",", "\"en\"", ")...
Gets localized values. @param locale browser preferred language @param items the items @return the string value
[ "Gets", "localized", "values", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/SamlMetadataUIInfo.java#L211-L233
126,471
apereo/cas
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceServiceProviderMetadataFacade.java
SamlRegisteredServiceServiceProviderMetadataFacade.getSupportedNameIdFormats
public List<String> getSupportedNameIdFormats() { val nameIdFormats = new ArrayList<String>(); val children = this.ssoDescriptor.getOrderedChildren(); if (children != null) { nameIdFormats.addAll(children.stream().filter(NameIDFormat.class::isInstance) .map(child -> (...
java
public List<String> getSupportedNameIdFormats() { val nameIdFormats = new ArrayList<String>(); val children = this.ssoDescriptor.getOrderedChildren(); if (children != null) { nameIdFormats.addAll(children.stream().filter(NameIDFormat.class::isInstance) .map(child -> (...
[ "public", "List", "<", "String", ">", "getSupportedNameIdFormats", "(", ")", "{", "val", "nameIdFormats", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "val", "children", "=", "this", ".", "ssoDescriptor", ".", "getOrderedChildren", "(", ")", ...
Gets supported name formats. @return the supported name formats
[ "Gets", "supported", "name", "formats", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceServiceProviderMetadataFacade.java#L195-L203
126,472
apereo/cas
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceServiceProviderMetadataFacade.java
SamlRegisteredServiceServiceProviderMetadataFacade.getSingleLogoutService
public SingleLogoutService getSingleLogoutService(final String binding) { return getSingleLogoutServices().stream().filter(acs -> acs.getBinding().equalsIgnoreCase(binding)).findFirst().orElse(null); }
java
public SingleLogoutService getSingleLogoutService(final String binding) { return getSingleLogoutServices().stream().filter(acs -> acs.getBinding().equalsIgnoreCase(binding)).findFirst().orElse(null); }
[ "public", "SingleLogoutService", "getSingleLogoutService", "(", "final", "String", "binding", ")", "{", "return", "getSingleLogoutServices", "(", ")", ".", "stream", "(", ")", ".", "filter", "(", "acs", "->", "acs", ".", "getBinding", "(", ")", ".", "equalsIgn...
Gets single logout service for the requested binding. @param binding the binding @return the single logout service or null
[ "Gets", "single", "logout", "service", "for", "the", "requested", "binding", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceServiceProviderMetadataFacade.java#L223-L225
126,473
apereo/cas
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceServiceProviderMetadataFacade.java
SamlRegisteredServiceServiceProviderMetadataFacade.getAssertionConsumerService
public AssertionConsumerService getAssertionConsumerService(final String binding) { return getAssertionConsumerServices().stream().filter(acs -> acs.getBinding().equalsIgnoreCase(binding)).findFirst().orElse(null); }
java
public AssertionConsumerService getAssertionConsumerService(final String binding) { return getAssertionConsumerServices().stream().filter(acs -> acs.getBinding().equalsIgnoreCase(binding)).findFirst().orElse(null); }
[ "public", "AssertionConsumerService", "getAssertionConsumerService", "(", "final", "String", "binding", ")", "{", "return", "getAssertionConsumerServices", "(", ")", ".", "stream", "(", ")", ".", "filter", "(", "acs", "->", "acs", ".", "getBinding", "(", ")", "....
Gets assertion consumer service. @param binding the binding @return the assertion consumer service
[ "Gets", "assertion", "consumer", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/SamlRegisteredServiceServiceProviderMetadataFacade.java#L233-L235
126,474
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/DefaultCasDelegatingWebflowEventResolver.java
DefaultCasDelegatingWebflowEventResolver.resolveCandidateAuthenticationEvents
protected Set<Event> resolveCandidateAuthenticationEvents(final RequestContext context, final Service service, final RegisteredService registeredService) { val byEventId = Comparator.comp...
java
protected Set<Event> resolveCandidateAuthenticationEvents(final RequestContext context, final Service service, final RegisteredService registeredService) { val byEventId = Comparator.comp...
[ "protected", "Set", "<", "Event", ">", "resolveCandidateAuthenticationEvents", "(", "final", "RequestContext", "context", ",", "final", "Service", "service", ",", "final", "RegisteredService", "registeredService", ")", "{", "val", "byEventId", "=", "Comparator", ".", ...
Resolve candidate authentication events set. @param context the context @param service the service @param registeredService the registered service @return the set
[ "Resolve", "candidate", "authentication", "events", "set", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/DefaultCasDelegatingWebflowEventResolver.java#L132-L147
126,475
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getHttpServletRequestFromExternalWebflowContext
public static HttpServletRequest getHttpServletRequestFromExternalWebflowContext(final RequestContext context) { Assert.isInstanceOf(ServletExternalContext.class, context.getExternalContext(), "Cannot obtain HttpServletRequest from event of type: " + context.getExternalContext().getC...
java
public static HttpServletRequest getHttpServletRequestFromExternalWebflowContext(final RequestContext context) { Assert.isInstanceOf(ServletExternalContext.class, context.getExternalContext(), "Cannot obtain HttpServletRequest from event of type: " + context.getExternalContext().getC...
[ "public", "static", "HttpServletRequest", "getHttpServletRequestFromExternalWebflowContext", "(", "final", "RequestContext", "context", ")", "{", "Assert", ".", "isInstanceOf", "(", "ServletExternalContext", ".", "class", ",", "context", ".", "getExternalContext", "(", ")...
Gets the http servlet request from the context. @param context the context @return the http servlet request
[ "Gets", "the", "http", "servlet", "request", "from", "the", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L82-L88
126,476
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getHttpServletRequestFromExternalWebflowContext
public static HttpServletRequest getHttpServletRequestFromExternalWebflowContext() { val servletExternalContext = (ServletExternalContext) ExternalContextHolder.getExternalContext(); if (servletExternalContext != null) { return (HttpServletRequest) servletExternalContext.getNativeRequest(); ...
java
public static HttpServletRequest getHttpServletRequestFromExternalWebflowContext() { val servletExternalContext = (ServletExternalContext) ExternalContextHolder.getExternalContext(); if (servletExternalContext != null) { return (HttpServletRequest) servletExternalContext.getNativeRequest(); ...
[ "public", "static", "HttpServletRequest", "getHttpServletRequestFromExternalWebflowContext", "(", ")", "{", "val", "servletExternalContext", "=", "(", "ServletExternalContext", ")", "ExternalContextHolder", ".", "getExternalContext", "(", ")", ";", "if", "(", "servletExtern...
Gets the http servlet request from the current servlet context. @return the http servlet request
[ "Gets", "the", "http", "servlet", "request", "from", "the", "current", "servlet", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L95-L102
126,477
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getHttpServletResponseFromExternalWebflowContext
public static HttpServletResponse getHttpServletResponseFromExternalWebflowContext(final RequestContext context) { Assert.isInstanceOf(ServletExternalContext.class, context.getExternalContext(), "Cannot obtain HttpServletResponse from event of type: " + context.getExternalContext().getClass().getNam...
java
public static HttpServletResponse getHttpServletResponseFromExternalWebflowContext(final RequestContext context) { Assert.isInstanceOf(ServletExternalContext.class, context.getExternalContext(), "Cannot obtain HttpServletResponse from event of type: " + context.getExternalContext().getClass().getNam...
[ "public", "static", "HttpServletResponse", "getHttpServletResponseFromExternalWebflowContext", "(", "final", "RequestContext", "context", ")", "{", "Assert", ".", "isInstanceOf", "(", "ServletExternalContext", ".", "class", ",", "context", ".", "getExternalContext", "(", ...
Gets the http servlet response from the context. @param context the context @return the http servlet response
[ "Gets", "the", "http", "servlet", "response", "from", "the", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L110-L114
126,478
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getHttpServletResponseFromExternalWebflowContext
public static HttpServletResponse getHttpServletResponseFromExternalWebflowContext() { val servletExternalContext = (ServletExternalContext) ExternalContextHolder.getExternalContext(); if (servletExternalContext != null) { return (HttpServletResponse) servletExternalContext.getNativeResponse...
java
public static HttpServletResponse getHttpServletResponseFromExternalWebflowContext() { val servletExternalContext = (ServletExternalContext) ExternalContextHolder.getExternalContext(); if (servletExternalContext != null) { return (HttpServletResponse) servletExternalContext.getNativeResponse...
[ "public", "static", "HttpServletResponse", "getHttpServletResponseFromExternalWebflowContext", "(", ")", "{", "val", "servletExternalContext", "=", "(", "ServletExternalContext", ")", "ExternalContextHolder", ".", "getExternalContext", "(", ")", ";", "if", "(", "servletExte...
Gets the http servlet response from the current servlet context. @return the http servlet response
[ "Gets", "the", "http", "servlet", "response", "from", "the", "current", "servlet", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L121-L127
126,479
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getService
public static WebApplicationService getService(final List<ArgumentExtractor> argumentExtractors, final RequestContext context) { val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(context); return HttpRequestUtils.getService(argumentExtractors, request); }
java
public static WebApplicationService getService(final List<ArgumentExtractor> argumentExtractors, final RequestContext context) { val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(context); return HttpRequestUtils.getService(argumentExtractors, request); }
[ "public", "static", "WebApplicationService", "getService", "(", "final", "List", "<", "ArgumentExtractor", ">", "argumentExtractors", ",", "final", "RequestContext", "context", ")", "{", "val", "request", "=", "WebUtils", ".", "getHttpServletRequestFromExternalWebflowCont...
Gets the service. @param argumentExtractors the argument extractors @param context the context @return the service
[ "Gets", "the", "service", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L137-L140
126,480
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getService
public static WebApplicationService getService(final RequestContext context) { return context != null ? (WebApplicationService) context.getFlowScope().get(PARAMETER_SERVICE) : null; }
java
public static WebApplicationService getService(final RequestContext context) { return context != null ? (WebApplicationService) context.getFlowScope().get(PARAMETER_SERVICE) : null; }
[ "public", "static", "WebApplicationService", "getService", "(", "final", "RequestContext", "context", ")", "{", "return", "context", "!=", "null", "?", "(", "WebApplicationService", ")", "context", ".", "getFlowScope", "(", ")", ".", "get", "(", "PARAMETER_SERVICE...
Gets the service from the flow scope. @param context the context @return the service
[ "Gets", "the", "service", "from", "the", "flow", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L148-L150
126,481
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getRegisteredService
public static RegisteredService getRegisteredService(final RequestContext context) { return context != null ? (RegisteredService) context.getFlowScope().get(PARAMETER_REGISTERED_SERVICE) : null; }
java
public static RegisteredService getRegisteredService(final RequestContext context) { return context != null ? (RegisteredService) context.getFlowScope().get(PARAMETER_REGISTERED_SERVICE) : null; }
[ "public", "static", "RegisteredService", "getRegisteredService", "(", "final", "RequestContext", "context", ")", "{", "return", "context", "!=", "null", "?", "(", "RegisteredService", ")", "context", ".", "getFlowScope", "(", ")", ".", "get", "(", "PARAMETER_REGIS...
Gets the registered service from the flow scope. @param context the context @return the service
[ "Gets", "the", "registered", "service", "from", "the", "flow", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L158-L160
126,482
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getTicketGrantingTicketId
public static String getTicketGrantingTicketId(final RequestContext context) { val tgtFromRequest = getTicketGrantingTicketIdFrom(context.getRequestScope()); val tgtFromFlow = getTicketGrantingTicketIdFrom(context.getFlowScope()); return tgtFromRequest != null ? tgtFromRequest : tgtFromFlow; ...
java
public static String getTicketGrantingTicketId(final RequestContext context) { val tgtFromRequest = getTicketGrantingTicketIdFrom(context.getRequestScope()); val tgtFromFlow = getTicketGrantingTicketIdFrom(context.getFlowScope()); return tgtFromRequest != null ? tgtFromRequest : tgtFromFlow; ...
[ "public", "static", "String", "getTicketGrantingTicketId", "(", "final", "RequestContext", "context", ")", "{", "val", "tgtFromRequest", "=", "getTicketGrantingTicketIdFrom", "(", "context", ".", "getRequestScope", "(", ")", ")", ";", "val", "tgtFromFlow", "=", "get...
Gets the ticket granting ticket id from the request and flow scopes. @param context the context @return the ticket granting ticket id
[ "Gets", "the", "ticket", "granting", "ticket", "id", "from", "the", "request", "and", "flow", "scopes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L207-L211
126,483
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putServiceTicketInRequestScope
public static void putServiceTicketInRequestScope(final RequestContext context, final ServiceTicket ticketValue) { context.getRequestScope().put(PARAMETER_SERVICE_TICKET_ID, ticketValue.getId()); }
java
public static void putServiceTicketInRequestScope(final RequestContext context, final ServiceTicket ticketValue) { context.getRequestScope().put(PARAMETER_SERVICE_TICKET_ID, ticketValue.getId()); }
[ "public", "static", "void", "putServiceTicketInRequestScope", "(", "final", "RequestContext", "context", ",", "final", "ServiceTicket", "ticketValue", ")", "{", "context", ".", "getRequestScope", "(", ")", ".", "put", "(", "PARAMETER_SERVICE_TICKET_ID", ",", "ticketVa...
Put service ticket in request scope. @param context the context @param ticketValue the ticket value
[ "Put", "service", "ticket", "in", "request", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L229-L231
126,484
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putUnauthorizedRedirectUrlIntoFlowScope
public static void putUnauthorizedRedirectUrlIntoFlowScope(final RequestContext context, final URI url) { context.getFlowScope().put(PARAMETER_UNAUTHORIZED_REDIRECT_URL, url); }
java
public static void putUnauthorizedRedirectUrlIntoFlowScope(final RequestContext context, final URI url) { context.getFlowScope().put(PARAMETER_UNAUTHORIZED_REDIRECT_URL, url); }
[ "public", "static", "void", "putUnauthorizedRedirectUrlIntoFlowScope", "(", "final", "RequestContext", "context", ",", "final", "URI", "url", ")", "{", "context", ".", "getFlowScope", "(", ")", ".", "put", "(", "PARAMETER_UNAUTHORIZED_REDIRECT_URL", ",", "url", ")",...
Adds the unauthorized redirect url to the flow scope. @param context the request context @param url the uri to redirect the flow
[ "Adds", "the", "unauthorized", "redirect", "url", "to", "the", "flow", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L249-L251
126,485
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putLogoutRequests
public static void putLogoutRequests(final RequestContext context, final List<SingleLogoutRequest> requests) { context.getFlowScope().put(PARAMETER_LOGOUT_REQUESTS, requests); }
java
public static void putLogoutRequests(final RequestContext context, final List<SingleLogoutRequest> requests) { context.getFlowScope().put(PARAMETER_LOGOUT_REQUESTS, requests); }
[ "public", "static", "void", "putLogoutRequests", "(", "final", "RequestContext", "context", ",", "final", "List", "<", "SingleLogoutRequest", ">", "requests", ")", "{", "context", ".", "getFlowScope", "(", ")", ".", "put", "(", "PARAMETER_LOGOUT_REQUESTS", ",", ...
Put logout requests into flow scope. @param context the context @param requests the requests
[ "Put", "logout", "requests", "into", "flow", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L269-L271
126,486
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getLogoutRequests
public static List<SingleLogoutRequest> getLogoutRequests(final RequestContext context) { return (List<SingleLogoutRequest>) context.getFlowScope().get(PARAMETER_LOGOUT_REQUESTS); }
java
public static List<SingleLogoutRequest> getLogoutRequests(final RequestContext context) { return (List<SingleLogoutRequest>) context.getFlowScope().get(PARAMETER_LOGOUT_REQUESTS); }
[ "public", "static", "List", "<", "SingleLogoutRequest", ">", "getLogoutRequests", "(", "final", "RequestContext", "context", ")", "{", "return", "(", "List", "<", "SingleLogoutRequest", ">", ")", "context", ".", "getFlowScope", "(", ")", ".", "get", "(", "PARA...
Gets the logout requests from flow scope. @param context the context @return the logout requests
[ "Gets", "the", "logout", "requests", "from", "flow", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L289-L291
126,487
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putServiceIntoFlowScope
public static void putServiceIntoFlowScope(final RequestContext context, final Service service) { context.getFlowScope().put(PARAMETER_SERVICE, service); }
java
public static void putServiceIntoFlowScope(final RequestContext context, final Service service) { context.getFlowScope().put(PARAMETER_SERVICE, service); }
[ "public", "static", "void", "putServiceIntoFlowScope", "(", "final", "RequestContext", "context", ",", "final", "Service", "service", ")", "{", "context", ".", "getFlowScope", "(", ")", ".", "put", "(", "PARAMETER_SERVICE", ",", "service", ")", ";", "}" ]
Put service into flowscope. @param context the context @param service the service
[ "Put", "service", "into", "flowscope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L299-L301
126,488
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putServiceIntoFlashScope
public static void putServiceIntoFlashScope(final RequestContext context, final Service service) { context.getFlashScope().put(PARAMETER_SERVICE, service); }
java
public static void putServiceIntoFlashScope(final RequestContext context, final Service service) { context.getFlashScope().put(PARAMETER_SERVICE, service); }
[ "public", "static", "void", "putServiceIntoFlashScope", "(", "final", "RequestContext", "context", ",", "final", "Service", "service", ")", "{", "context", ".", "getFlashScope", "(", ")", ".", "put", "(", "PARAMETER_SERVICE", ",", "service", ")", ";", "}" ]
Put service into flashscope. @param context the context @param service the service
[ "Put", "service", "into", "flashscope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L309-L311
126,489
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getWarningCookie
public static boolean getWarningCookie(final RequestContext context) { val val = ObjectUtils.defaultIfNull(context.getFlowScope().get("warnCookieValue"), Boolean.FALSE.toString()).toString(); return Boolean.parseBoolean(val); }
java
public static boolean getWarningCookie(final RequestContext context) { val val = ObjectUtils.defaultIfNull(context.getFlowScope().get("warnCookieValue"), Boolean.FALSE.toString()).toString(); return Boolean.parseBoolean(val); }
[ "public", "static", "boolean", "getWarningCookie", "(", "final", "RequestContext", "context", ")", "{", "val", "val", "=", "ObjectUtils", ".", "defaultIfNull", "(", "context", ".", "getFlowScope", "(", ")", ".", "get", "(", "\"warnCookieValue\"", ")", ",", "Bo...
Gets warning cookie. @param context the context @return warning cookie value, if present.
[ "Gets", "warning", "cookie", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L329-L332
126,490
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putRegisteredService
public static void putRegisteredService(final RequestContext context, final RegisteredService registeredService) { context.getFlowScope().put(PARAMETER_REGISTERED_SERVICE, registeredService); }
java
public static void putRegisteredService(final RequestContext context, final RegisteredService registeredService) { context.getFlowScope().put(PARAMETER_REGISTERED_SERVICE, registeredService); }
[ "public", "static", "void", "putRegisteredService", "(", "final", "RequestContext", "context", ",", "final", "RegisteredService", "registeredService", ")", "{", "context", ".", "getFlowScope", "(", ")", ".", "put", "(", "PARAMETER_REGISTERED_SERVICE", ",", "registered...
Put registered service into flowscope. @param context the context @param registeredService the service
[ "Put", "registered", "service", "into", "flowscope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L340-L342
126,491
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getCredential
public static <T extends Credential> T getCredential(final RequestContext context, final @NonNull Class<T> clazz) { val credential = getCredential(context); if (credential == null) { return null; } if (!clazz.isAssignableFrom(credential.getClass())) { throw new Cl...
java
public static <T extends Credential> T getCredential(final RequestContext context, final @NonNull Class<T> clazz) { val credential = getCredential(context); if (credential == null) { return null; } if (!clazz.isAssignableFrom(credential.getClass())) { throw new Cl...
[ "public", "static", "<", "T", "extends", "Credential", ">", "T", "getCredential", "(", "final", "RequestContext", "context", ",", "final", "@", "NonNull", "Class", "<", "T", ">", "clazz", ")", "{", "val", "credential", "=", "getCredential", "(", "context", ...
Gets credential. @param <T> the type parameter @param context the context @param clazz the clazz @return the credential
[ "Gets", "credential", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L352-L363
126,492
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getCredential
public static Credential getCredential(final RequestContext context) { val cFromRequest = (Credential) context.getRequestScope().get(PARAMETER_CREDENTIAL); val cFromFlow = (Credential) context.getFlowScope().get(PARAMETER_CREDENTIAL); val cFromConversation = (Credential) context.getConversationS...
java
public static Credential getCredential(final RequestContext context) { val cFromRequest = (Credential) context.getRequestScope().get(PARAMETER_CREDENTIAL); val cFromFlow = (Credential) context.getFlowScope().get(PARAMETER_CREDENTIAL); val cFromConversation = (Credential) context.getConversationS...
[ "public", "static", "Credential", "getCredential", "(", "final", "RequestContext", "context", ")", "{", "val", "cFromRequest", "=", "(", "Credential", ")", "context", ".", "getRequestScope", "(", ")", ".", "get", "(", "PARAMETER_CREDENTIAL", ")", ";", "val", "...
Gets credential from the context. @param context the context @return the credential, or null if it cant be found in the context or if it has no id.
[ "Gets", "credential", "from", "the", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L371-L395
126,493
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putCredential
public static void putCredential(final RequestContext context, final Credential c) { if (c == null) { context.getRequestScope().remove(PARAMETER_CREDENTIAL); context.getFlowScope().remove(PARAMETER_CREDENTIAL); context.getConversationScope().remove(PARAMETER_CREDENTIAL); ...
java
public static void putCredential(final RequestContext context, final Credential c) { if (c == null) { context.getRequestScope().remove(PARAMETER_CREDENTIAL); context.getFlowScope().remove(PARAMETER_CREDENTIAL); context.getConversationScope().remove(PARAMETER_CREDENTIAL); ...
[ "public", "static", "void", "putCredential", "(", "final", "RequestContext", "context", ",", "final", "Credential", "c", ")", "{", "if", "(", "c", "==", "null", ")", "{", "context", ".", "getRequestScope", "(", ")", ".", "remove", "(", "PARAMETER_CREDENTIAL"...
Puts credential into the context. @param context the context @param c the c
[ "Puts", "credential", "into", "the", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L403-L413
126,494
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.isAuthenticatingAtPublicWorkstation
public static boolean isAuthenticatingAtPublicWorkstation(final RequestContext ctx) { if (ctx.getFlowScope().contains(PUBLIC_WORKSTATION_ATTRIBUTE)) { LOGGER.debug("Public workstation flag detected. SSO session will be considered renewed."); return true; } return false; ...
java
public static boolean isAuthenticatingAtPublicWorkstation(final RequestContext ctx) { if (ctx.getFlowScope().contains(PUBLIC_WORKSTATION_ATTRIBUTE)) { LOGGER.debug("Public workstation flag detected. SSO session will be considered renewed."); return true; } return false; ...
[ "public", "static", "boolean", "isAuthenticatingAtPublicWorkstation", "(", "final", "RequestContext", "ctx", ")", "{", "if", "(", "ctx", ".", "getFlowScope", "(", ")", ".", "contains", "(", "PUBLIC_WORKSTATION_ATTRIBUTE", ")", ")", "{", "LOGGER", ".", "debug", "...
Is authenticating at a public workstation? @param ctx the ctx @return true if the cookie value is present
[ "Is", "authenticating", "at", "a", "public", "workstation?" ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L422-L428
126,495
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putPublicWorkstationToFlowIfRequestParameterPresent
public static void putPublicWorkstationToFlowIfRequestParameterPresent(final RequestContext context) { if (StringUtils.isNotBlank(context.getExternalContext().getRequestParameterMap().get(PUBLIC_WORKSTATION_ATTRIBUTE))) { context.getFlowScope().put(PUBLIC_WORKSTATION_ATTRIBUTE, Boolean.TRUE); ...
java
public static void putPublicWorkstationToFlowIfRequestParameterPresent(final RequestContext context) { if (StringUtils.isNotBlank(context.getExternalContext().getRequestParameterMap().get(PUBLIC_WORKSTATION_ATTRIBUTE))) { context.getFlowScope().put(PUBLIC_WORKSTATION_ATTRIBUTE, Boolean.TRUE); ...
[ "public", "static", "void", "putPublicWorkstationToFlowIfRequestParameterPresent", "(", "final", "RequestContext", "context", ")", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "context", ".", "getExternalContext", "(", ")", ".", "getRequestParameterMap", "(", ...
Put public workstation into the flow if request parameter present. @param context the context
[ "Put", "public", "workstation", "into", "the", "flow", "if", "request", "parameter", "present", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L436-L440
126,496
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putWarnCookieIfRequestParameterPresent
public static void putWarnCookieIfRequestParameterPresent(final CasCookieBuilder warnCookieGenerator, final RequestContext context) { if (warnCookieGenerator != null) { LOGGER.trace("Evaluating request to determine if warning cookie should be generated"); val response = WebUtils.getHttpS...
java
public static void putWarnCookieIfRequestParameterPresent(final CasCookieBuilder warnCookieGenerator, final RequestContext context) { if (warnCookieGenerator != null) { LOGGER.trace("Evaluating request to determine if warning cookie should be generated"); val response = WebUtils.getHttpS...
[ "public", "static", "void", "putWarnCookieIfRequestParameterPresent", "(", "final", "CasCookieBuilder", "warnCookieGenerator", ",", "final", "RequestContext", "context", ")", "{", "if", "(", "warnCookieGenerator", "!=", "null", ")", "{", "LOGGER", ".", "trace", "(", ...
Put warn cookie if request parameter present. @param warnCookieGenerator the warn cookie generator @param context the context
[ "Put", "warn", "cookie", "if", "request", "parameter", "present", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L448-L458
126,497
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putAuthentication
public static void putAuthentication(final Authentication authentication, final RequestContext ctx) { ctx.getConversationScope().put(PARAMETER_AUTHENTICATION, authentication); }
java
public static void putAuthentication(final Authentication authentication, final RequestContext ctx) { ctx.getConversationScope().put(PARAMETER_AUTHENTICATION, authentication); }
[ "public", "static", "void", "putAuthentication", "(", "final", "Authentication", "authentication", ",", "final", "RequestContext", "ctx", ")", "{", "ctx", ".", "getConversationScope", "(", ")", ".", "put", "(", "PARAMETER_AUTHENTICATION", ",", "authentication", ")",...
Put authentication into conversation scope. @param authentication the authentication @param ctx the ctx
[ "Put", "authentication", "into", "conversation", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L466-L468
126,498
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.putAuthenticationResultBuilder
public static void putAuthenticationResultBuilder(final AuthenticationResultBuilder builder, final RequestContext ctx) { ctx.getConversationScope().put(PARAMETER_AUTHENTICATION_RESULT_BUILDER, builder); }
java
public static void putAuthenticationResultBuilder(final AuthenticationResultBuilder builder, final RequestContext ctx) { ctx.getConversationScope().put(PARAMETER_AUTHENTICATION_RESULT_BUILDER, builder); }
[ "public", "static", "void", "putAuthenticationResultBuilder", "(", "final", "AuthenticationResultBuilder", "builder", ",", "final", "RequestContext", "ctx", ")", "{", "ctx", ".", "getConversationScope", "(", ")", ".", "put", "(", "PARAMETER_AUTHENTICATION_RESULT_BUILDER",...
Put authentication result builder. @param builder the builder @param ctx the ctx
[ "Put", "authentication", "result", "builder", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L486-L488
126,499
apereo/cas
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java
WebUtils.getPrincipalFromRequestContext
public static Principal getPrincipalFromRequestContext(final RequestContext requestContext, final TicketRegistrySupport ticketRegistrySupport) { val tgt = WebUtils.getTicketGrantingTicketId(requestContext); if (StringUtils.isBlank(tgt)) { ...
java
public static Principal getPrincipalFromRequestContext(final RequestContext requestContext, final TicketRegistrySupport ticketRegistrySupport) { val tgt = WebUtils.getTicketGrantingTicketId(requestContext); if (StringUtils.isBlank(tgt)) { ...
[ "public", "static", "Principal", "getPrincipalFromRequestContext", "(", "final", "RequestContext", "requestContext", ",", "final", "TicketRegistrySupport", "ticketRegistrySupport", ")", "{", "val", "tgt", "=", "WebUtils", ".", "getTicketGrantingTicketId", "(", "requestConte...
Gets the authenticated principal. @param requestContext the request context @param ticketRegistrySupport the ticket registry support @return the principal
[ "Gets", "the", "authenticated", "principal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java#L497-L505