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,600
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/ServiceTicketRequestWebflowEventResolver.java
ServiceTicketRequestWebflowEventResolver.grantServiceTicket
protected Event grantServiceTicket(final RequestContext context) { val ticketGrantingTicketId = WebUtils.getTicketGrantingTicketId(context); val credential = getCredentialFromContext(context); try { val service = WebUtils.getService(context); val authn = getWebflowEventR...
java
protected Event grantServiceTicket(final RequestContext context) { val ticketGrantingTicketId = WebUtils.getTicketGrantingTicketId(context); val credential = getCredentialFromContext(context); try { val service = WebUtils.getService(context); val authn = getWebflowEventR...
[ "protected", "Event", "grantServiceTicket", "(", "final", "RequestContext", "context", ")", "{", "val", "ticketGrantingTicketId", "=", "WebUtils", ".", "getTicketGrantingTicketId", "(", "context", ")", ";", "val", "credential", "=", "getCredentialFromContext", "(", "c...
Grant service ticket for the given credential based on the service and tgt that are found in the request context. @param context the context @return the resulting event. Warning, authentication failure or error. @since 4.1.0
[ "Grant", "service", "ticket", "for", "the", "given", "credential", "based", "on", "the", "service", "and", "tgt", "that", "are", "found", "in", "the", "request", "context", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/resolver/impl/ServiceTicketRequestWebflowEventResolver.java#L89-L122
126,601
apereo/cas
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/authentication/handler/support/WsFederationAuthenticationHandler.java
WsFederationAuthenticationHandler.supports
@Override public boolean supports(final Credential credentials) { return credentials != null && WsFederationCredential.class.isAssignableFrom(credentials.getClass()); }
java
@Override public boolean supports(final Credential credentials) { return credentials != null && WsFederationCredential.class.isAssignableFrom(credentials.getClass()); }
[ "@", "Override", "public", "boolean", "supports", "(", "final", "Credential", "credentials", ")", "{", "return", "credentials", "!=", "null", "&&", "WsFederationCredential", ".", "class", ".", "isAssignableFrom", "(", "credentials", ".", "getClass", "(", ")", ")...
Determines if this handler can support the credentials provided. @param credentials the credentials to test @return true if supported, otherwise false
[ "Determines", "if", "this", "handler", "can", "support", "the", "credentials", "provided", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/authentication/handler/support/WsFederationAuthenticationHandler.java#L37-L40
126,602
apereo/cas
support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/jasypt/JasyptListAlgorithmsCommand.java
JasyptListAlgorithmsCommand.listAlgorithms
@ShellMethod(key = "jasypt-list-algorithms", value = "List alogrithms you can use with Jasypt for property encryption") public void listAlgorithms(@ShellOption(value = {"includeBC"}, help = "Include Bouncy Castle provider") final boolean includeBC) { if (includeBC) { if (Security.getProv...
java
@ShellMethod(key = "jasypt-list-algorithms", value = "List alogrithms you can use with Jasypt for property encryption") public void listAlgorithms(@ShellOption(value = {"includeBC"}, help = "Include Bouncy Castle provider") final boolean includeBC) { if (includeBC) { if (Security.getProv...
[ "@", "ShellMethod", "(", "key", "=", "\"jasypt-list-algorithms\"", ",", "value", "=", "\"List alogrithms you can use with Jasypt for property encryption\"", ")", "public", "void", "listAlgorithms", "(", "@", "ShellOption", "(", "value", "=", "{", "\"includeBC\"", "}", "...
List algorithms you can use Jasypt. @param includeBC whether to include the BouncyCastle provider
[ "List", "algorithms", "you", "can", "use", "Jasypt", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/jasypt/JasyptListAlgorithmsCommand.java#L30-L50
126,603
apereo/cas
support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java
Saml2ClientMetadataController.getFirstServiceProviderMetadata
@GetMapping("/sp/metadata") public ResponseEntity<String> getFirstServiceProviderMetadata() { val saml2Client = builtClients.findClient(SAML2Client.class); if (saml2Client != null) { return getSaml2ClientServiceProviderMetadataResponseEntity(saml2Client); } return getNotA...
java
@GetMapping("/sp/metadata") public ResponseEntity<String> getFirstServiceProviderMetadata() { val saml2Client = builtClients.findClient(SAML2Client.class); if (saml2Client != null) { return getSaml2ClientServiceProviderMetadataResponseEntity(saml2Client); } return getNotA...
[ "@", "GetMapping", "(", "\"/sp/metadata\"", ")", "public", "ResponseEntity", "<", "String", ">", "getFirstServiceProviderMetadata", "(", ")", "{", "val", "saml2Client", "=", "builtClients", ".", "findClient", "(", "SAML2Client", ".", "class", ")", ";", "if", "("...
Gets first service provider metadata. @return the first service provider metadata
[ "Gets", "first", "service", "provider", "metadata", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java#L42-L49
126,604
apereo/cas
support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java
Saml2ClientMetadataController.getFirstIdentityProviderMetadata
@GetMapping("/sp/idp/metadata") public ResponseEntity<String> getFirstIdentityProviderMetadata() { val saml2Client = builtClients.findClient(SAML2Client.class); if (saml2Client != null) { return getSaml2ClientIdentityProviderMetadataResponseEntity(saml2Client); } return g...
java
@GetMapping("/sp/idp/metadata") public ResponseEntity<String> getFirstIdentityProviderMetadata() { val saml2Client = builtClients.findClient(SAML2Client.class); if (saml2Client != null) { return getSaml2ClientIdentityProviderMetadataResponseEntity(saml2Client); } return g...
[ "@", "GetMapping", "(", "\"/sp/idp/metadata\"", ")", "public", "ResponseEntity", "<", "String", ">", "getFirstIdentityProviderMetadata", "(", ")", "{", "val", "saml2Client", "=", "builtClients", ".", "findClient", "(", "SAML2Client", ".", "class", ")", ";", "if", ...
Gets first idp metadata. @return the first service provider metadata
[ "Gets", "first", "idp", "metadata", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java#L56-L63
126,605
apereo/cas
support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java
Saml2ClientMetadataController.getServiceProviderMetadataByName
@GetMapping("/sp/{client}/metadata") public ResponseEntity<String> getServiceProviderMetadataByName(@PathVariable("client") final String client) { val saml2Client = (SAML2Client) builtClients.findClient(client); if (saml2Client != null) { return getSaml2ClientServiceProviderMetadataRespo...
java
@GetMapping("/sp/{client}/metadata") public ResponseEntity<String> getServiceProviderMetadataByName(@PathVariable("client") final String client) { val saml2Client = (SAML2Client) builtClients.findClient(client); if (saml2Client != null) { return getSaml2ClientServiceProviderMetadataRespo...
[ "@", "GetMapping", "(", "\"/sp/{client}/metadata\"", ")", "public", "ResponseEntity", "<", "String", ">", "getServiceProviderMetadataByName", "(", "@", "PathVariable", "(", "\"client\"", ")", "final", "String", "client", ")", "{", "val", "saml2Client", "=", "(", "...
Gets service provider metadata by name. @param client the client @return the service provider metadata by name
[ "Gets", "service", "provider", "metadata", "by", "name", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java#L71-L78
126,606
apereo/cas
support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java
Saml2ClientMetadataController.getIdentityProviderMetadataByName
@GetMapping("/sp/{client}/idp/metadata") public ResponseEntity<String> getIdentityProviderMetadataByName(@PathVariable("client") final String client) { val saml2Client = (SAML2Client) builtClients.findClient(client); if (saml2Client != null) { return getSaml2ClientIdentityProviderMetadat...
java
@GetMapping("/sp/{client}/idp/metadata") public ResponseEntity<String> getIdentityProviderMetadataByName(@PathVariable("client") final String client) { val saml2Client = (SAML2Client) builtClients.findClient(client); if (saml2Client != null) { return getSaml2ClientIdentityProviderMetadat...
[ "@", "GetMapping", "(", "\"/sp/{client}/idp/metadata\"", ")", "public", "ResponseEntity", "<", "String", ">", "getIdentityProviderMetadataByName", "(", "@", "PathVariable", "(", "\"client\"", ")", "final", "String", "client", ")", "{", "val", "saml2Client", "=", "("...
Gets idp metadata by name. @param client the client @return the service provider metadata by name
[ "Gets", "idp", "metadata", "by", "name", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-webflow/src/main/java/org/apereo/cas/web/saml2/Saml2ClientMetadataController.java#L86-L93
126,607
apereo/cas
support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/jasypt/JasyptListProvidersCommand.java
JasyptListProvidersCommand.listAlgorithms
@ShellMethod(key = "jasypt-list-providers", value = "List encryption providers with PBE Ciphers you can use with Jasypt") public void listAlgorithms(@ShellOption(value = {"includeBC"}, help = "Include Bouncy Castle provider") final boolean includeBC) { if (includeBC) { if (Security.getPr...
java
@ShellMethod(key = "jasypt-list-providers", value = "List encryption providers with PBE Ciphers you can use with Jasypt") public void listAlgorithms(@ShellOption(value = {"includeBC"}, help = "Include Bouncy Castle provider") final boolean includeBC) { if (includeBC) { if (Security.getPr...
[ "@", "ShellMethod", "(", "key", "=", "\"jasypt-list-providers\"", ",", "value", "=", "\"List encryption providers with PBE Ciphers you can use with Jasypt\"", ")", "public", "void", "listAlgorithms", "(", "@", "ShellOption", "(", "value", "=", "{", "\"includeBC\"", "}", ...
List providers you can use Jasypt. @param includeBC whether to include the BouncyCastle provider
[ "List", "providers", "you", "can", "use", "Jasypt", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/jasypt/JasyptListProvidersCommand.java#L31-L57
126,608
apereo/cas
support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/util/MultifactorAuthenticationTrustUtils.java
MultifactorAuthenticationTrustUtils.generateGeography
public static String generateGeography() { val clientInfo = ClientInfoHolder.getClientInfo(); return clientInfo.getClientIpAddress().concat("@").concat(WebUtils.getHttpServletRequestUserAgentFromRequestContext()); }
java
public static String generateGeography() { val clientInfo = ClientInfoHolder.getClientInfo(); return clientInfo.getClientIpAddress().concat("@").concat(WebUtils.getHttpServletRequestUserAgentFromRequestContext()); }
[ "public", "static", "String", "generateGeography", "(", ")", "{", "val", "clientInfo", "=", "ClientInfoHolder", ".", "getClientInfo", "(", ")", ";", "return", "clientInfo", ".", "getClientIpAddress", "(", ")", ".", "concat", "(", "\"@\"", ")", ".", "concat", ...
Generate geography. @return the geography
[ "Generate", "geography", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/util/MultifactorAuthenticationTrustUtils.java#L45-L48
126,609
apereo/cas
support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/util/MultifactorAuthenticationTrustUtils.java
MultifactorAuthenticationTrustUtils.trackTrustedMultifactorAuthenticationAttribute
public static void trackTrustedMultifactorAuthenticationAttribute( final Authentication authn, final String attributeName) { val newAuthn = DefaultAuthenticationBuilder.newInstance(authn) .addAttribute(attributeName, Boolean.TRUE) .build(); LOGGER.debug("Updated ...
java
public static void trackTrustedMultifactorAuthenticationAttribute( final Authentication authn, final String attributeName) { val newAuthn = DefaultAuthenticationBuilder.newInstance(authn) .addAttribute(attributeName, Boolean.TRUE) .build(); LOGGER.debug("Updated ...
[ "public", "static", "void", "trackTrustedMultifactorAuthenticationAttribute", "(", "final", "Authentication", "authn", ",", "final", "String", "attributeName", ")", "{", "val", "newAuthn", "=", "DefaultAuthenticationBuilder", ".", "newInstance", "(", "authn", ")", ".", ...
Track trusted multifactor authentication attribute. @param authn the authn @param attributeName the attribute name
[ "Track", "trusted", "multifactor", "authentication", "attribute", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/util/MultifactorAuthenticationTrustUtils.java#L56-L65
126,610
apereo/cas
support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/util/MultifactorAuthenticationTrustUtils.java
MultifactorAuthenticationTrustUtils.setMultifactorAuthenticationTrustedInScope
public static void setMultifactorAuthenticationTrustedInScope(final RequestContext requestContext) { val flashScope = requestContext.getFlashScope(); flashScope.put(AbstractMultifactorTrustedDeviceWebflowConfigurer.MFA_TRUSTED_AUTHN_SCOPE_ATTR, Boolean.TRUE); }
java
public static void setMultifactorAuthenticationTrustedInScope(final RequestContext requestContext) { val flashScope = requestContext.getFlashScope(); flashScope.put(AbstractMultifactorTrustedDeviceWebflowConfigurer.MFA_TRUSTED_AUTHN_SCOPE_ATTR, Boolean.TRUE); }
[ "public", "static", "void", "setMultifactorAuthenticationTrustedInScope", "(", "final", "RequestContext", "requestContext", ")", "{", "val", "flashScope", "=", "requestContext", ".", "getFlashScope", "(", ")", ";", "flashScope", ".", "put", "(", "AbstractMultifactorTrus...
Sets multifactor authentication trusted in scope. @param requestContext the request context
[ "Sets", "multifactor", "authentication", "trusted", "in", "scope", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/util/MultifactorAuthenticationTrustUtils.java#L83-L86
126,611
apereo/cas
support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/authentication/api/MultifactorAuthenticationTrustRecord.java
MultifactorAuthenticationTrustRecord.newInstance
public static MultifactorAuthenticationTrustRecord newInstance(final String principal, final String geography, final String fingerprint) { val r = new MultifactorAuthenticationTrustRecord(); r.setRecordDate(LocalDateTime.now().truncatedTo(ChronoUnit.SECONDS)); r.setPrincipal(principal); ...
java
public static MultifactorAuthenticationTrustRecord newInstance(final String principal, final String geography, final String fingerprint) { val r = new MultifactorAuthenticationTrustRecord(); r.setRecordDate(LocalDateTime.now().truncatedTo(ChronoUnit.SECONDS)); r.setPrincipal(principal); ...
[ "public", "static", "MultifactorAuthenticationTrustRecord", "newInstance", "(", "final", "String", "principal", ",", "final", "String", "geography", ",", "final", "String", "fingerprint", ")", "{", "val", "r", "=", "new", "MultifactorAuthenticationTrustRecord", "(", "...
New instance of authentication trust record. @param principal the principal @param geography the geography @param fingerprint the device fingerprint @return the authentication trust record
[ "New", "instance", "of", "authentication", "trust", "record", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa/src/main/java/org/apereo/cas/trusted/authentication/api/MultifactorAuthenticationTrustRecord.java#L83-L90
126,612
apereo/cas
support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/MongoDbConnectionFactory.java
MongoDbConnectionFactory.buildMongoTemplate
public MongoTemplate buildMongoTemplate(final BaseMongoDbProperties mongo) { val mongoDbFactory = mongoDbFactory(buildMongoDbClient(mongo), mongo); return new MongoTemplate(mongoDbFactory, mappingMongoConverter(mongoDbFactory)); }
java
public MongoTemplate buildMongoTemplate(final BaseMongoDbProperties mongo) { val mongoDbFactory = mongoDbFactory(buildMongoDbClient(mongo), mongo); return new MongoTemplate(mongoDbFactory, mappingMongoConverter(mongoDbFactory)); }
[ "public", "MongoTemplate", "buildMongoTemplate", "(", "final", "BaseMongoDbProperties", "mongo", ")", "{", "val", "mongoDbFactory", "=", "mongoDbFactory", "(", "buildMongoDbClient", "(", "mongo", ")", ",", "mongo", ")", ";", "return", "new", "MongoTemplate", "(", ...
Build mongo template. @param mongo the mongo properties settings @return the mongo template
[ "Build", "mongo", "template", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/MongoDbConnectionFactory.java#L105-L108
126,613
apereo/cas
support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/MongoDbConnectionFactory.java
MongoDbConnectionFactory.createCollection
public void createCollection(final MongoOperations mongoTemplate, final String collectionName, final boolean dropCollection) { if (dropCollection) { LOGGER.trace("Dropping database collection: [{}]", collectionName); mongoTemplate.dropCollection(collectionName); } if (!m...
java
public void createCollection(final MongoOperations mongoTemplate, final String collectionName, final boolean dropCollection) { if (dropCollection) { LOGGER.trace("Dropping database collection: [{}]", collectionName); mongoTemplate.dropCollection(collectionName); } if (!m...
[ "public", "void", "createCollection", "(", "final", "MongoOperations", "mongoTemplate", ",", "final", "String", "collectionName", ",", "final", "boolean", "dropCollection", ")", "{", "if", "(", "dropCollection", ")", "{", "LOGGER", ".", "trace", "(", "\"Dropping d...
Create collection. @param mongoTemplate the mongo template @param collectionName the collection name @param dropCollection the drop collection
[ "Create", "collection", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/MongoDbConnectionFactory.java#L127-L137
126,614
apereo/cas
support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/MongoDbConnectionFactory.java
MongoDbConnectionFactory.buildMongoDbClient
public static MongoClient buildMongoDbClient(final BaseMongoDbProperties mongo) { if (StringUtils.isNotBlank(mongo.getClientUri())) { LOGGER.debug("Using MongoDb client URI [{}] to connect to MongoDb instance", mongo.getClientUri()); return buildMongoDbClient(mongo.getClientUri(), build...
java
public static MongoClient buildMongoDbClient(final BaseMongoDbProperties mongo) { if (StringUtils.isNotBlank(mongo.getClientUri())) { LOGGER.debug("Using MongoDb client URI [{}] to connect to MongoDb instance", mongo.getClientUri()); return buildMongoDbClient(mongo.getClientUri(), build...
[ "public", "static", "MongoClient", "buildMongoDbClient", "(", "final", "BaseMongoDbProperties", "mongo", ")", "{", "if", "(", "StringUtils", ".", "isNotBlank", "(", "mongo", ".", "getClientUri", "(", ")", ")", ")", "{", "LOGGER", ".", "debug", "(", "\"Using Mo...
Build mongo db client. @param mongo the mongo @return the mongo client
[ "Build", "mongo", "db", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/MongoDbConnectionFactory.java#L276-L305
126,615
apereo/cas
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/saml/idp/SamlIdPResponseProperties.java
SamlIdPResponseProperties.configureAttributeNameFormats
public Map<String, String> configureAttributeNameFormats() { if (this.attributeNameFormats.isEmpty()) { return new HashMap<>(0); } val nameFormats = new HashMap<String, String>(); this.attributeNameFormats .forEach(value -> Arrays.stream(value.split(",")) ...
java
public Map<String, String> configureAttributeNameFormats() { if (this.attributeNameFormats.isEmpty()) { return new HashMap<>(0); } val nameFormats = new HashMap<String, String>(); this.attributeNameFormats .forEach(value -> Arrays.stream(value.split(",")) ...
[ "public", "Map", "<", "String", ",", "String", ">", "configureAttributeNameFormats", "(", ")", "{", "if", "(", "this", ".", "attributeNameFormats", ".", "isEmpty", "(", ")", ")", "{", "return", "new", "HashMap", "<>", "(", "0", ")", ";", "}", "val", "n...
Configure attribute name formats and build a map. @return the map
[ "Configure", "attribute", "name", "formats", "and", "build", "a", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/model/support/saml/idp/SamlIdPResponseProperties.java#L60-L75
126,616
apereo/cas
support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/LdapSpnegoKnownClientSystemsFilterAction.java
LdapSpnegoKnownClientSystemsFilterAction.createConnection
protected Connection createConnection() throws LdapException { LOGGER.debug("Establishing a connection..."); val connection = this.connectionFactory.getConnection(); connection.open(); return connection; }
java
protected Connection createConnection() throws LdapException { LOGGER.debug("Establishing a connection..."); val connection = this.connectionFactory.getConnection(); connection.open(); return connection; }
[ "protected", "Connection", "createConnection", "(", ")", "throws", "LdapException", "{", "LOGGER", ".", "debug", "(", "\"Establishing a connection...\"", ")", ";", "val", "connection", "=", "this", ".", "connectionFactory", ".", "getConnection", "(", ")", ";", "co...
Create and open a connection to ldap via the given config and provider. @return the connection @throws LdapException the ldap exception
[ "Create", "and", "open", "a", "connection", "to", "ldap", "via", "the", "given", "config", "and", "provider", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/LdapSpnegoKnownClientSystemsFilterAction.java#L66-L71
126,617
apereo/cas
support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/LdapSpnegoKnownClientSystemsFilterAction.java
LdapSpnegoKnownClientSystemsFilterAction.executeSearchForSpnegoAttribute
@SneakyThrows protected boolean executeSearchForSpnegoAttribute(final String remoteIp) { val remoteHostName = getRemoteHostName(remoteIp); LOGGER.debug("Resolved remote hostname [{}] based on ip [{}]", remoteHostName, remoteIp); try (val connection = createConnection()) { ...
java
@SneakyThrows protected boolean executeSearchForSpnegoAttribute(final String remoteIp) { val remoteHostName = getRemoteHostName(remoteIp); LOGGER.debug("Resolved remote hostname [{}] based on ip [{}]", remoteHostName, remoteIp); try (val connection = createConnection()) { ...
[ "@", "SneakyThrows", "protected", "boolean", "executeSearchForSpnegoAttribute", "(", "final", "String", "remoteIp", ")", "{", "val", "remoteHostName", "=", "getRemoteHostName", "(", "remoteIp", ")", ";", "LOGGER", ".", "debug", "(", "\"Resolved remote hostname [{}] base...
Searches the ldap instance for the attribute value. @param remoteIp the remote ip @return true/false
[ "Searches", "the", "ldap", "instance", "for", "the", "attribute", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/LdapSpnegoKnownClientSystemsFilterAction.java#L113-L132
126,618
apereo/cas
support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/LdapSpnegoKnownClientSystemsFilterAction.java
LdapSpnegoKnownClientSystemsFilterAction.processSpnegoAttribute
protected boolean processSpnegoAttribute(final Response<SearchResult> searchResult) { val result = searchResult.getResult(); if (result == null || result.getEntries().isEmpty()) { LOGGER.debug("Spnego attribute is not found in the search results"); return false; } ...
java
protected boolean processSpnegoAttribute(final Response<SearchResult> searchResult) { val result = searchResult.getResult(); if (result == null || result.getEntries().isEmpty()) { LOGGER.debug("Spnego attribute is not found in the search results"); return false; } ...
[ "protected", "boolean", "processSpnegoAttribute", "(", "final", "Response", "<", "SearchResult", ">", "searchResult", ")", "{", "val", "result", "=", "searchResult", ".", "getResult", "(", ")", ";", "if", "(", "result", "==", "null", "||", "result", ".", "ge...
Verify spnego attribute value. @param searchResult the search result @return true if attribute value exists and has a value
[ "Verify", "spnego", "attribute", "value", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/client/LdapSpnegoKnownClientSystemsFilterAction.java#L140-L151
126,619
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java
PrincipalAttributesRepositoryCache.getCachedAttributesFor
public Map<String, List<Object>> getCachedAttributesFor(final RegisteredService registeredService, final CachingPrincipalAttributesRepository repository, final Principal principal) { val cache...
java
public Map<String, List<Object>> getCachedAttributesFor(final RegisteredService registeredService, final CachingPrincipalAttributesRepository repository, final Principal principal) { val cache...
[ "public", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "getCachedAttributesFor", "(", "final", "RegisteredService", "registeredService", ",", "final", "CachingPrincipalAttributesRepository", "repository", ",", "final", "Principal", "principal", ")", "{"...
Gets cached attributes. Locate the cache for the service first. @param registeredService the registered service @param repository the repository @param principal the principal @return the cached attributes for
[ "Gets", "cached", "attributes", ".", "Locate", "the", "cache", "for", "the", "service", "first", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java#L54-L62
126,620
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java
PrincipalAttributesRepositoryCache.putCachedAttributesFor
public void putCachedAttributesFor(final RegisteredService registeredService, final CachingPrincipalAttributesRepository repository, final String id, final Map<String, List<Object>> attributes) { val cache = getRegisteredServiceCacheI...
java
public void putCachedAttributesFor(final RegisteredService registeredService, final CachingPrincipalAttributesRepository repository, final String id, final Map<String, List<Object>> attributes) { val cache = getRegisteredServiceCacheI...
[ "public", "void", "putCachedAttributesFor", "(", "final", "RegisteredService", "registeredService", ",", "final", "CachingPrincipalAttributesRepository", "repository", ",", "final", "String", "id", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ...
Put cached attributes. @param registeredService the registered service @param repository the repository @param id the id @param attributes the attributes
[ "Put", "cached", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java#L72-L77
126,621
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java
PrincipalAttributesRepositoryCache.getRegisteredServiceCacheInstance
private Cache<String, Map<String, List<Object>>> getRegisteredServiceCacheInstance(final RegisteredService registeredService, final CachingPrincipalAttributesRepository repository) { val key = buildRegisteredServiceCacheKey(r...
java
private Cache<String, Map<String, List<Object>>> getRegisteredServiceCacheInstance(final RegisteredService registeredService, final CachingPrincipalAttributesRepository repository) { val key = buildRegisteredServiceCacheKey(r...
[ "private", "Cache", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", ">", "getRegisteredServiceCacheInstance", "(", "final", "RegisteredService", "registeredService", ",", "final", "CachingPrincipalAttributesRepository", "repository", ")...
Gets registered service cache instance. @param registeredService the registered service @param repository the repository @return the registered service cache instance
[ "Gets", "registered", "service", "cache", "instance", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java#L97-L106
126,622
apereo/cas
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java
PrincipalAttributesRepositoryCache.initializeCache
private static Cache<String, Map<String, List<Object>>> initializeCache(final CachingPrincipalAttributesRepository repository) { val unit = TimeUnit.valueOf(StringUtils.defaultString(repository.getTimeUnit(), DEFAULT_CACHE_EXPIRATION_UNIT)); return Caffeine.newBuilder() .initialCapacity(DEFA...
java
private static Cache<String, Map<String, List<Object>>> initializeCache(final CachingPrincipalAttributesRepository repository) { val unit = TimeUnit.valueOf(StringUtils.defaultString(repository.getTimeUnit(), DEFAULT_CACHE_EXPIRATION_UNIT)); return Caffeine.newBuilder() .initialCapacity(DEFA...
[ "private", "static", "Cache", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", ">", "initializeCache", "(", "final", "CachingPrincipalAttributesRepository", "repository", ")", "{", "val", "unit", "=", "TimeUnit", ".", "valueOf", ...
Initialize cache cache. @param repository the repository @return the cache
[ "Initialize", "cache", "cache", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/PrincipalAttributesRepositoryCache.java#L114-L121
126,623
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.getNameID
public NameID getNameID(final String nameIdFormat, final String nameIdValue) { val nameId = newSamlObject(NameID.class); nameId.setFormat(nameIdFormat); nameId.setValue(nameIdValue); return nameId; }
java
public NameID getNameID(final String nameIdFormat, final String nameIdValue) { val nameId = newSamlObject(NameID.class); nameId.setFormat(nameIdFormat); nameId.setValue(nameIdValue); return nameId; }
[ "public", "NameID", "getNameID", "(", "final", "String", "nameIdFormat", ",", "final", "String", "nameIdValue", ")", "{", "val", "nameId", "=", "newSamlObject", "(", "NameID", ".", "class", ")", ";", "nameId", ".", "setFormat", "(", "nameIdFormat", ")", ";",...
Gets name id. @param nameIdFormat the name id format @param nameIdValue the name id value @return the name iD
[ "Gets", "name", "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/AbstractSaml20ObjectBuilder.java#L95-L100
126,624
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newEcpResponse
public org.opensaml.saml.saml2.ecp.Response newEcpResponse(final String assertionConsumerUrl) { val samlResponse = newSamlObject(org.opensaml.saml.saml2.ecp.Response.class); samlResponse.setSOAP11MustUnderstand(Boolean.TRUE); samlResponse.setSOAP11Actor(ActorBearing.SOAP11_ACTOR_NEXT); s...
java
public org.opensaml.saml.saml2.ecp.Response newEcpResponse(final String assertionConsumerUrl) { val samlResponse = newSamlObject(org.opensaml.saml.saml2.ecp.Response.class); samlResponse.setSOAP11MustUnderstand(Boolean.TRUE); samlResponse.setSOAP11Actor(ActorBearing.SOAP11_ACTOR_NEXT); s...
[ "public", "org", ".", "opensaml", ".", "saml", ".", "saml2", ".", "ecp", ".", "Response", "newEcpResponse", "(", "final", "String", "assertionConsumerUrl", ")", "{", "val", "samlResponse", "=", "newSamlObject", "(", "org", ".", "opensaml", ".", "saml", ".", ...
Create a new SAML ECP response object. @param assertionConsumerUrl the assertion consumer url @return the response
[ "Create", "a", "new", "SAML", "ECP", "response", "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/AbstractSaml20ObjectBuilder.java#L108-L114
126,625
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newLogoutRequest
public LogoutRequest newLogoutRequest(final String id, final DateTime issueInstant, final String destination, final Issuer issuer, final String sessionIndex, final NameID nameId) { val request = newSamlObject(LogoutRequest.class...
java
public LogoutRequest newLogoutRequest(final String id, final DateTime issueInstant, final String destination, final Issuer issuer, final String sessionIndex, final NameID nameId) { val request = newSamlObject(LogoutRequest.class...
[ "public", "LogoutRequest", "newLogoutRequest", "(", "final", "String", "id", ",", "final", "DateTime", "issueInstant", ",", "final", "String", "destination", ",", "final", "Issuer", "issuer", ",", "final", "String", "sessionIndex", ",", "final", "NameID", "nameId"...
New saml2 logout request. @param id the id @param issueInstant the issue instant @param destination the destination @param issuer the issuer @param sessionIndex the session index @param nameId the name id @return the logout request
[ "New", "saml2", "logout", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java#L207-L227
126,626
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newIssuer
public Issuer newIssuer(final String issuerValue) { val issuer = newSamlObject(Issuer.class); issuer.setValue(issuerValue); return issuer; }
java
public Issuer newIssuer(final String issuerValue) { val issuer = newSamlObject(Issuer.class); issuer.setValue(issuerValue); return issuer; }
[ "public", "Issuer", "newIssuer", "(", "final", "String", "issuerValue", ")", "{", "val", "issuer", "=", "newSamlObject", "(", "Issuer", ".", "class", ")", ";", "issuer", ".", "setValue", "(", "issuerValue", ")", ";", "return", "issuer", ";", "}" ]
New issuer. @param issuerValue the issuer @return the issuer
[ "New", "issuer", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java#L235-L239
126,627
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newAttributeStatement
public AttributeStatement newAttributeStatement(final Map<String, Object> attributes, final Map<String, String> attributeFriendlyNames, final Map<String, String> attributeValueTypes, ...
java
public AttributeStatement newAttributeStatement(final Map<String, Object> attributes, final Map<String, String> attributeFriendlyNames, final Map<String, String> attributeValueTypes, ...
[ "public", "AttributeStatement", "newAttributeStatement", "(", "final", "Map", "<", "String", ",", "Object", ">", "attributes", ",", "final", "Map", "<", "String", ",", "String", ">", "attributeFriendlyNames", ",", "final", "Map", "<", "String", ",", "String", ...
New attribute statement attribute statement. @param attributes the attributes @param attributeFriendlyNames the attribute friendly names @param attributeValueTypes the attribute value types @param configuredNameFormats the configured name formats @param defaultNameFormat the default name format @r...
[ "New", "attribute", "statement", "attribute", "statement", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java#L283-L290
126,628
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.addAttributeValuesToSaml2Attribute
public void addAttributeValuesToSaml2Attribute(final String attributeName, final Object attributeValue, final String valueType, final List<XMLObject> attributeList) { ...
java
public void addAttributeValuesToSaml2Attribute(final String attributeName, final Object attributeValue, final String valueType, final List<XMLObject> attributeList) { ...
[ "public", "void", "addAttributeValuesToSaml2Attribute", "(", "final", "String", "attributeName", ",", "final", "Object", "attributeValue", ",", "final", "String", "valueType", ",", "final", "List", "<", "XMLObject", ">", "attributeList", ")", "{", "addAttributeValuesT...
Add saml2 attribute values for attribute. @param attributeName the attribute name @param attributeValue the attribute value @param valueType the value type @param attributeList the attribute list
[ "Add", "saml2", "attribute", "values", "for", "attribute", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java#L300-L305
126,629
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newAttribute
protected Attribute newAttribute(final String attributeFriendlyName, final String attributeName, final Object attributeValue, final Map<String, String> configuredNameFormats, ...
java
protected Attribute newAttribute(final String attributeFriendlyName, final String attributeName, final Object attributeValue, final Map<String, String> configuredNameFormats, ...
[ "protected", "Attribute", "newAttribute", "(", "final", "String", "attributeFriendlyName", ",", "final", "String", "attributeName", ",", "final", "Object", "attributeValue", ",", "final", "Map", "<", "String", ",", "String", ">", "configuredNameFormats", ",", "final...
New attribute. @param attributeFriendlyName the attribute friendly name @param attributeName the attribute name @param attributeValue the attribute value @param configuredNameFormats the configured name formats. If an attribute is found in this collection, the linked name format will be used. @param def...
[ "New", "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/AbstractSaml20ObjectBuilder.java#L318-L348
126,630
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newAuthnStatement
public AuthnStatement newAuthnStatement(final String contextClassRef, final ZonedDateTime authnInstant, final String sessionIndex) { LOGGER.trace("Building authentication statement with context class ref [{}] @ [{}] with index [{}]", contextClassRef, authn...
java
public AuthnStatement newAuthnStatement(final String contextClassRef, final ZonedDateTime authnInstant, final String sessionIndex) { LOGGER.trace("Building authentication statement with context class ref [{}] @ [{}] with index [{}]", contextClassRef, authn...
[ "public", "AuthnStatement", "newAuthnStatement", "(", "final", "String", "contextClassRef", ",", "final", "ZonedDateTime", "authnInstant", ",", "final", "String", "sessionIndex", ")", "{", "LOGGER", ".", "trace", "(", "\"Building authentication statement with context class ...
New authn statement. @param contextClassRef the context class ref such as {@link AuthnContext#PASSWORD_AUTHN_CTX} @param authnInstant the authn instant @param sessionIndex the session index @return the authn statement
[ "New", "authn", "statement", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java#L358-L373
126,631
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newSubject
public Subject newSubject(final String nameIdFormat, final String nameIdValue, final String recipient, final ZonedDateTime notOnOrAfter, final String inResponseTo, final ZonedDateTime notBefore) { val nameID = getNameID(nameIdFormat, nameIdValue); ...
java
public Subject newSubject(final String nameIdFormat, final String nameIdValue, final String recipient, final ZonedDateTime notOnOrAfter, final String inResponseTo, final ZonedDateTime notBefore) { val nameID = getNameID(nameIdFormat, nameIdValue); ...
[ "public", "Subject", "newSubject", "(", "final", "String", "nameIdFormat", ",", "final", "String", "nameIdValue", ",", "final", "String", "recipient", ",", "final", "ZonedDateTime", "notOnOrAfter", ",", "final", "String", "inResponseTo", ",", "final", "ZonedDateTime...
New subject subject. @param nameIdFormat the name id format @param nameIdValue the name id value @param recipient the recipient @param notOnOrAfter the not on or after @param inResponseTo the in response to @param notBefore the not before @return the subject
[ "New", "subject", "subject", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java#L410-L415
126,632
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.newSubject
public Subject newSubject(final NameID nameId, final NameID subjectConfNameId, final String recipient, final ZonedDateTime notOnOrAfter, final String inResponseTo, final ...
java
public Subject newSubject(final NameID nameId, final NameID subjectConfNameId, final String recipient, final ZonedDateTime notOnOrAfter, final String inResponseTo, final ...
[ "public", "Subject", "newSubject", "(", "final", "NameID", "nameId", ",", "final", "NameID", "subjectConfNameId", ",", "final", "String", "recipient", ",", "final", "ZonedDateTime", "notOnOrAfter", ",", "final", "String", "inResponseTo", ",", "final", "ZonedDateTime...
New subject element. @param nameId the nameId @param subjectConfNameId the subject conf name id @param recipient the recipient @param notOnOrAfter the not on or after @param inResponseTo the in response to @param notBefore the not before @return the subject
[ "New", "subject", "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/AbstractSaml20ObjectBuilder.java#L428-L478
126,633
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.decodeSamlAuthnRequest
public String decodeSamlAuthnRequest(final String encodedRequestXmlString) { if (StringUtils.isEmpty(encodedRequestXmlString)) { return null; } val decodedBytes = EncodingUtils.decodeBase64(encodedRequestXmlString); if (decodedBytes == null) { return null; ...
java
public String decodeSamlAuthnRequest(final String encodedRequestXmlString) { if (StringUtils.isEmpty(encodedRequestXmlString)) { return null; } val decodedBytes = EncodingUtils.decodeBase64(encodedRequestXmlString); if (decodedBytes == null) { return null; ...
[ "public", "String", "decodeSamlAuthnRequest", "(", "final", "String", "encodedRequestXmlString", ")", "{", "if", "(", "StringUtils", ".", "isEmpty", "(", "encodedRequestXmlString", ")", ")", "{", "return", "null", ";", "}", "val", "decodedBytes", "=", "EncodingUti...
Decode authn request xml. @param encodedRequestXmlString the encoded request xml string @return the request
[ "Decode", "authn", "request", "xml", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java#L491-L502
126,634
apereo/cas
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java
AbstractSaml20ObjectBuilder.inflateAuthnRequest
protected String inflateAuthnRequest(final byte[] decodedBytes) { val inflated = CompressionUtils.inflate(decodedBytes); if (!StringUtils.isEmpty(inflated)) { return inflated; } return CompressionUtils.decodeByteArrayToString(decodedBytes); }
java
protected String inflateAuthnRequest(final byte[] decodedBytes) { val inflated = CompressionUtils.inflate(decodedBytes); if (!StringUtils.isEmpty(inflated)) { return inflated; } return CompressionUtils.decodeByteArrayToString(decodedBytes); }
[ "protected", "String", "inflateAuthnRequest", "(", "final", "byte", "[", "]", "decodedBytes", ")", "{", "val", "inflated", "=", "CompressionUtils", ".", "inflate", "(", "decodedBytes", ")", ";", "if", "(", "!", "StringUtils", ".", "isEmpty", "(", "inflated", ...
Inflate authn request string. @param decodedBytes the decoded bytes @return the string
[ "Inflate", "authn", "request", "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/AbstractSaml20ObjectBuilder.java#L510-L516
126,635
apereo/cas
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/profile/OidcRegisteredServicePreProcessorEventListener.java
OidcRegisteredServicePreProcessorEventListener.handleRegisteredServicesLoadedEvent
@EventListener public void handleRegisteredServicesLoadedEvent(final CasRegisteredServicesLoadedEvent event) { event.getServices() .stream() .filter(OidcRegisteredService.class::isInstance) .forEach(s -> { LOGGER.trace("Attempting to reconcile scopes and a...
java
@EventListener public void handleRegisteredServicesLoadedEvent(final CasRegisteredServicesLoadedEvent event) { event.getServices() .stream() .filter(OidcRegisteredService.class::isInstance) .forEach(s -> { LOGGER.trace("Attempting to reconcile scopes and a...
[ "@", "EventListener", "public", "void", "handleRegisteredServicesLoadedEvent", "(", "final", "CasRegisteredServicesLoadedEvent", "event", ")", "{", "event", ".", "getServices", "(", ")", ".", "stream", "(", ")", ".", "filter", "(", "OidcRegisteredService", ".", "cla...
Handle registered service loaded event. @param event the event
[ "Handle", "registered", "service", "loaded", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/profile/OidcRegisteredServicePreProcessorEventListener.java#L30-L40
126,636
apereo/cas
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/AuthenticationCredentialsThreadLocalBinder.java
AuthenticationCredentialsThreadLocalBinder.bindCurrent
public static void bindCurrent(final Credential... credentials) { CURRENT_CREDENTIAL_IDS.set(Arrays.stream(credentials).map(Credential::getId).toArray(String[]::new)); }
java
public static void bindCurrent(final Credential... credentials) { CURRENT_CREDENTIAL_IDS.set(Arrays.stream(credentials).map(Credential::getId).toArray(String[]::new)); }
[ "public", "static", "void", "bindCurrent", "(", "final", "Credential", "...", "credentials", ")", "{", "CURRENT_CREDENTIAL_IDS", ".", "set", "(", "Arrays", ".", "stream", "(", "credentials", ")", ".", "map", "(", "Credential", "::", "getId", ")", ".", "toArr...
Bind credentials to ThreadLocal. @param credentials the credentials
[ "Bind", "credentials", "to", "ThreadLocal", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/AuthenticationCredentialsThreadLocalBinder.java#L58-L60
126,637
apereo/cas
webapp/cas-server-webapp-init/src/main/java/org/apereo/cas/CasEmbeddedContainerUtils.java
CasEmbeddedContainerUtils.getRuntimeProperties
public static Map<String, Object> getRuntimeProperties(final Boolean embeddedContainerActive) { val properties = new HashMap<String, Object>(); properties.put(EMBEDDED_CONTAINER_CONFIG_ACTIVE, embeddedContainerActive); return properties; }
java
public static Map<String, Object> getRuntimeProperties(final Boolean embeddedContainerActive) { val properties = new HashMap<String, Object>(); properties.put(EMBEDDED_CONTAINER_CONFIG_ACTIVE, embeddedContainerActive); return properties; }
[ "public", "static", "Map", "<", "String", ",", "Object", ">", "getRuntimeProperties", "(", "final", "Boolean", "embeddedContainerActive", ")", "{", "val", "properties", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "properties", "....
Gets runtime properties. @param embeddedContainerActive the embedded container active @return the runtime properties
[ "Gets", "runtime", "properties", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-init/src/main/java/org/apereo/cas/CasEmbeddedContainerUtils.java#L39-L43
126,638
apereo/cas
webapp/cas-server-webapp-init/src/main/java/org/apereo/cas/CasEmbeddedContainerUtils.java
CasEmbeddedContainerUtils.getCasBannerInstance
public static Banner getCasBannerInstance() { val packageName = CasEmbeddedContainerUtils.class.getPackage().getName(); val reflections = new Reflections(new ConfigurationBuilder() .filterInputsBy(new FilterBuilder().includePackage(packageName)) .setUrls(ClasspathHelper.f...
java
public static Banner getCasBannerInstance() { val packageName = CasEmbeddedContainerUtils.class.getPackage().getName(); val reflections = new Reflections(new ConfigurationBuilder() .filterInputsBy(new FilterBuilder().includePackage(packageName)) .setUrls(ClasspathHelper.f...
[ "public", "static", "Banner", "getCasBannerInstance", "(", ")", "{", "val", "packageName", "=", "CasEmbeddedContainerUtils", ".", "class", ".", "getPackage", "(", ")", ".", "getName", "(", ")", ";", "val", "reflections", "=", "new", "Reflections", "(", "new", ...
Gets cas banner instance. @return the cas banner instance
[ "Gets", "cas", "banner", "instance", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-init/src/main/java/org/apereo/cas/CasEmbeddedContainerUtils.java#L50-L70
126,639
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java
ScriptingUtils.executeGroovyShellScript
public static <T> T executeGroovyShellScript(final String script, final Map<String, Object> variables, final Class<T> clazz) { try { val binding = new Binding(); val shell = new GroovyShell(...
java
public static <T> T executeGroovyShellScript(final String script, final Map<String, Object> variables, final Class<T> clazz) { try { val binding = new Binding(); val shell = new GroovyShell(...
[ "public", "static", "<", "T", ">", "T", "executeGroovyShellScript", "(", "final", "String", "script", ",", "final", "Map", "<", "String", ",", "Object", ">", "variables", ",", "final", "Class", "<", "T", ">", "clazz", ")", "{", "try", "{", "val", "bind...
Execute groovy shell script t. @param <T> the type parameter @param script the script @param variables the variables @param clazz the clazz @return the t
[ "Execute", "groovy", "shell", "script", "t", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java#L103-L123
126,640
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java
ScriptingUtils.executeGroovyScript
public static <T> T executeGroovyScript(final Resource groovyScript, final Object[] args, final Class<T> clazz, final boolean failOnError) { return executeGroovyScript(groovyScript, "run", args, clazz, failOnError); }
java
public static <T> T executeGroovyScript(final Resource groovyScript, final Object[] args, final Class<T> clazz, final boolean failOnError) { return executeGroovyScript(groovyScript, "run", args, clazz, failOnError); }
[ "public", "static", "<", "T", ">", "T", "executeGroovyScript", "(", "final", "Resource", "groovyScript", ",", "final", "Object", "[", "]", "args", ",", "final", "Class", "<", "T", ">", "clazz", ",", "final", "boolean", "failOnError", ")", "{", "return", ...
Execute groovy script via run object. @param <T> the type parameter @param groovyScript the groovy script @param args the args @param clazz the clazz @param failOnError the fail on error @return the object
[ "Execute", "groovy", "script", "via", "run", "object", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java#L135-L139
126,641
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java
ScriptingUtils.parseGroovyScript
public static GroovyObject parseGroovyScript(final Resource groovyScript, final boolean failOnError) { return AccessController.doPrivileged((PrivilegedAction<GroovyObject>) () -> { val parent = ScriptingUtils.class.getClassLoader(); try (v...
java
public static GroovyObject parseGroovyScript(final Resource groovyScript, final boolean failOnError) { return AccessController.doPrivileged((PrivilegedAction<GroovyObject>) () -> { val parent = ScriptingUtils.class.getClassLoader(); try (v...
[ "public", "static", "GroovyObject", "parseGroovyScript", "(", "final", "Resource", "groovyScript", ",", "final", "boolean", "failOnError", ")", "{", "return", "AccessController", ".", "doPrivileged", "(", "(", "PrivilegedAction", "<", "GroovyObject", ">", ")", "(", ...
Parse groovy script groovy object. @param groovyScript the groovy script @param failOnError the fail on error @return the groovy object
[ "Parse", "groovy", "script", "groovy", "object", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java#L276-L296
126,642
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java
ScriptingUtils.executeScriptEngine
public static <T> T executeScriptEngine(final String scriptFile, final Object[] args, final Class<T> clazz) { try { val engineName = getScriptEngineName(scriptFile); val engine = new ScriptEngineManager().getEngineByName(engineName); if (engine == null || StringUtils.isBlank(...
java
public static <T> T executeScriptEngine(final String scriptFile, final Object[] args, final Class<T> clazz) { try { val engineName = getScriptEngineName(scriptFile); val engine = new ScriptEngineManager().getEngineByName(engineName); if (engine == null || StringUtils.isBlank(...
[ "public", "static", "<", "T", ">", "T", "executeScriptEngine", "(", "final", "String", "scriptFile", ",", "final", "Object", "[", "]", "args", ",", "final", "Class", "<", "T", ">", "clazz", ")", "{", "try", "{", "val", "engineName", "=", "getScriptEngine...
Execute groovy script engine t. @param <T> the type parameter @param scriptFile the script file @param args the args @param clazz the clazz @return the t
[ "Execute", "groovy", "script", "engine", "t", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java#L337-L365
126,643
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java
ScriptingUtils.executeGroovyScriptEngine
public static <T> T executeGroovyScriptEngine(final String script, final Map<String, Object> variables, final Class<T> clazz) { try { val engine = new ScriptEngineManager().getEngineByName("groovy"); ...
java
public static <T> T executeGroovyScriptEngine(final String script, final Map<String, Object> variables, final Class<T> clazz) { try { val engine = new ScriptEngineManager().getEngineByName("groovy"); ...
[ "public", "static", "<", "T", ">", "T", "executeGroovyScriptEngine", "(", "final", "String", "script", ",", "final", "Map", "<", "String", ",", "Object", ">", "variables", ",", "final", "Class", "<", "T", ">", "clazz", ")", "{", "try", "{", "val", "eng...
Execute inline groovy script engine. @param <T> the type parameter @param script the script @param variables the variables @param clazz the clazz @return the t
[ "Execute", "inline", "groovy", "script", "engine", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java#L376-L398
126,644
apereo/cas
support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/web/controllers/BaseUmaEndpointController.java
BaseUmaEndpointController.getResourceSetUriLocation
protected String getResourceSetUriLocation(final ResourceSet saved) { return getUmaConfigurationContext().getCasProperties() .getAuthn().getUma().getIssuer() + OAuth20Constants.BASE_OAUTH20_URL + '/' + OAuth20Constants.UMA_RESOURCE_SET_REGISTRATION_URL + '/' + sav...
java
protected String getResourceSetUriLocation(final ResourceSet saved) { return getUmaConfigurationContext().getCasProperties() .getAuthn().getUma().getIssuer() + OAuth20Constants.BASE_OAUTH20_URL + '/' + OAuth20Constants.UMA_RESOURCE_SET_REGISTRATION_URL + '/' + sav...
[ "protected", "String", "getResourceSetUriLocation", "(", "final", "ResourceSet", "saved", ")", "{", "return", "getUmaConfigurationContext", "(", ")", ".", "getCasProperties", "(", ")", ".", "getAuthn", "(", ")", ".", "getUma", "(", ")", ".", "getIssuer", "(", ...
Gets resource set uri location. @param saved the saved @return the resource set uri location
[ "Gets", "resource", "set", "uri", "location", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-uma-core/src/main/java/org/apereo/cas/uma/web/controllers/BaseUmaEndpointController.java#L92-L98
126,645
apereo/cas
support/cas-server-support-wsfederation-webflow/src/main/java/org/apereo/cas/web/flow/WsFederationResponseValidator.java
WsFederationResponseValidator.validateWsFederationAuthenticationRequest
public void validateWsFederationAuthenticationRequest(final RequestContext context) { val service = wsFederationCookieManager.retrieve(context); LOGGER.debug("Retrieved service [{}] from the session cookie", service); val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(contex...
java
public void validateWsFederationAuthenticationRequest(final RequestContext context) { val service = wsFederationCookieManager.retrieve(context); LOGGER.debug("Retrieved service [{}] from the session cookie", service); val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(contex...
[ "public", "void", "validateWsFederationAuthenticationRequest", "(", "final", "RequestContext", "context", ")", "{", "val", "service", "=", "wsFederationCookieManager", ".", "retrieve", "(", "context", ")", ";", "LOGGER", ".", "debug", "(", "\"Retrieved service [{}] from...
Validate ws federation authentication request event. @param context the context
[ "Validate", "ws", "federation", "authentication", "request", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-wsfederation-webflow/src/main/java/org/apereo/cas/web/flow/WsFederationResponseValidator.java#L42-L67
126,646
apereo/cas
support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java
AcceptableUsagePolicyWebflowConfigurer.createTransitionStateToAcceptableUsagePolicy
protected void createTransitionStateToAcceptableUsagePolicy(final Flow flow) { val submit = getRealSubmissionState(flow); createTransitionForState(submit, CasWebflowConstants.TRANSITION_ID_SUCCESS, STATE_ID_AUP_CHECK, true); }
java
protected void createTransitionStateToAcceptableUsagePolicy(final Flow flow) { val submit = getRealSubmissionState(flow); createTransitionForState(submit, CasWebflowConstants.TRANSITION_ID_SUCCESS, STATE_ID_AUP_CHECK, true); }
[ "protected", "void", "createTransitionStateToAcceptableUsagePolicy", "(", "final", "Flow", "flow", ")", "{", "val", "submit", "=", "getRealSubmissionState", "(", "flow", ")", ";", "createTransitionForState", "(", "submit", ",", "CasWebflowConstants", ".", "TRANSITION_ID...
Create transition state to acceptable usage policy. @param flow the flow
[ "Create", "transition", "state", "to", "acceptable", "usage", "policy", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java#L52-L55
126,647
apereo/cas
support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java
AcceptableUsagePolicyWebflowConfigurer.createSubmitActionState
protected void createSubmitActionState(final Flow flow) { val aupAcceptedAction = createActionState(flow, AUP_ACCEPTED_ACTION, "acceptableUsagePolicySubmitAction"); val target = getRealSubmissionState(flow).getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getTargetStateId(); val transiti...
java
protected void createSubmitActionState(final Flow flow) { val aupAcceptedAction = createActionState(flow, AUP_ACCEPTED_ACTION, "acceptableUsagePolicySubmitAction"); val target = getRealSubmissionState(flow).getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getTargetStateId(); val transiti...
[ "protected", "void", "createSubmitActionState", "(", "final", "Flow", "flow", ")", "{", "val", "aupAcceptedAction", "=", "createActionState", "(", "flow", ",", "AUP_ACCEPTED_ACTION", ",", "\"acceptableUsagePolicySubmitAction\"", ")", ";", "val", "target", "=", "getRea...
Create submit action state. @param flow the flow
[ "Create", "submit", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java#L72-L78
126,648
apereo/cas
support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java
AcceptableUsagePolicyWebflowConfigurer.createAcceptableUsagePolicyView
protected void createAcceptableUsagePolicyView(final Flow flow) { val viewState = createViewState(flow, VIEW_ID_ACCEPTABLE_USAGE_POLICY_VIEW, "casAcceptableUsagePolicyView"); createTransitionForState(viewState, CasWebflowConstants.TRANSITION_ID_SUBMIT, AUP_ACCEPTED_ACTION); }
java
protected void createAcceptableUsagePolicyView(final Flow flow) { val viewState = createViewState(flow, VIEW_ID_ACCEPTABLE_USAGE_POLICY_VIEW, "casAcceptableUsagePolicyView"); createTransitionForState(viewState, CasWebflowConstants.TRANSITION_ID_SUBMIT, AUP_ACCEPTED_ACTION); }
[ "protected", "void", "createAcceptableUsagePolicyView", "(", "final", "Flow", "flow", ")", "{", "val", "viewState", "=", "createViewState", "(", "flow", ",", "VIEW_ID_ACCEPTABLE_USAGE_POLICY_VIEW", ",", "\"casAcceptableUsagePolicyView\"", ")", ";", "createTransitionForState...
Create acceptable usage policy view. @param flow the flow
[ "Create", "acceptable", "usage", "policy", "view", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java#L85-L88
126,649
apereo/cas
support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java
AcceptableUsagePolicyWebflowConfigurer.createVerifyActionState
protected void createVerifyActionState(final Flow flow) { val actionState = createActionState(flow, STATE_ID_AUP_CHECK, AUP_VERIFY_ACTION); val transitionSet = actionState.getTransitionSet(); val target = getRealSubmissionState(flow).getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getT...
java
protected void createVerifyActionState(final Flow flow) { val actionState = createActionState(flow, STATE_ID_AUP_CHECK, AUP_VERIFY_ACTION); val transitionSet = actionState.getTransitionSet(); val target = getRealSubmissionState(flow).getTransition(CasWebflowConstants.TRANSITION_ID_SUCCESS).getT...
[ "protected", "void", "createVerifyActionState", "(", "final", "Flow", "flow", ")", "{", "val", "actionState", "=", "createActionState", "(", "flow", ",", "STATE_ID_AUP_CHECK", ",", "AUP_VERIFY_ACTION", ")", ";", "val", "transitionSet", "=", "actionState", ".", "ge...
Create verify action state. @param flow the flow
[ "Create", "verify", "action", "state", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-aup-webflow/src/main/java/org/apereo/cas/web/flow/AcceptableUsagePolicyWebflowConfigurer.java#L95-L106
126,650
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java
CompressionUtils.deflate
public static String deflate(final byte[] bytes) { val data = new String(bytes, StandardCharsets.UTF_8); return deflate(data); }
java
public static String deflate(final byte[] bytes) { val data = new String(bytes, StandardCharsets.UTF_8); return deflate(data); }
[ "public", "static", "String", "deflate", "(", "final", "byte", "[", "]", "bytes", ")", "{", "val", "data", "=", "new", "String", "(", "bytes", ",", "StandardCharsets", ".", "UTF_8", ")", ";", "return", "deflate", "(", "data", ")", ";", "}" ]
Deflate the given bytes using zlib. @param bytes the bytes @return the converted string
[ "Deflate", "the", "given", "bytes", "using", "zlib", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java#L41-L44
126,651
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java
CompressionUtils.decompress
@SneakyThrows public static String decompress(final String zippedBase64Str) { val bytes = EncodingUtils.decodeBase64(zippedBase64Str); try (val zi = new GZIPInputStream(new ByteArrayInputStream(bytes))) { return IOUtils.toString(zi, Charset.defaultCharset()); } }
java
@SneakyThrows public static String decompress(final String zippedBase64Str) { val bytes = EncodingUtils.decodeBase64(zippedBase64Str); try (val zi = new GZIPInputStream(new ByteArrayInputStream(bytes))) { return IOUtils.toString(zi, Charset.defaultCharset()); } }
[ "@", "SneakyThrows", "public", "static", "String", "decompress", "(", "final", "String", "zippedBase64Str", ")", "{", "val", "bytes", "=", "EncodingUtils", ".", "decodeBase64", "(", "zippedBase64Str", ")", ";", "try", "(", "val", "zi", "=", "new", "GZIPInputSt...
First decode base64 String to byte array, then use ZipInputStream to revert the byte array to a string. @param zippedBase64Str the zipped base 64 str @return the string, or null
[ "First", "decode", "base64", "String", "to", "byte", "array", "then", "use", "ZipInputStream", "to", "revert", "the", "byte", "array", "to", "a", "string", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java#L98-L104
126,652
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java
CompressionUtils.compress
@SneakyThrows public static String compress(final String srcTxt) { try (val rstBao = new ByteArrayOutputStream(); val zos = new GZIPOutputStream(rstBao)) { zos.write(srcTxt.getBytes(StandardCharsets.UTF_8)); zos.flush(); zos.finish(); val bytes = rstBao.toByte...
java
@SneakyThrows public static String compress(final String srcTxt) { try (val rstBao = new ByteArrayOutputStream(); val zos = new GZIPOutputStream(rstBao)) { zos.write(srcTxt.getBytes(StandardCharsets.UTF_8)); zos.flush(); zos.finish(); val bytes = rstBao.toByte...
[ "@", "SneakyThrows", "public", "static", "String", "compress", "(", "final", "String", "srcTxt", ")", "{", "try", "(", "val", "rstBao", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "val", "zos", "=", "new", "GZIPOutputStream", "(", "rstBao", ")", ")...
Use ZipOutputStream to zip text to byte array, then convert byte array to base64 string, so it can be transferred via http request. @param srcTxt the src txt @return the string in UTF-8 format and base64'ed, or null.
[ "Use", "ZipOutputStream", "to", "zip", "text", "to", "byte", "array", "then", "convert", "byte", "array", "to", "base64", "string", "so", "it", "can", "be", "transferred", "via", "http", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CompressionUtils.java#L140-L150
126,653
apereo/cas
support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/kryo/serial/RegisteredServiceSerializer.java
RegisteredServiceSerializer.writeObjectByReflection
private static void writeObjectByReflection(final Kryo kryo, final Output output, final Object obj) { val className = obj.getClass().getCanonicalName(); kryo.writeObject(output, className); kryo.writeObject(output, obj); }
java
private static void writeObjectByReflection(final Kryo kryo, final Output output, final Object obj) { val className = obj.getClass().getCanonicalName(); kryo.writeObject(output, className); kryo.writeObject(output, obj); }
[ "private", "static", "void", "writeObjectByReflection", "(", "final", "Kryo", "kryo", ",", "final", "Output", "output", ",", "final", "Object", "obj", ")", "{", "val", "className", "=", "obj", ".", "getClass", "(", ")", ".", "getCanonicalName", "(", ")", "...
Write object by reflection. @param kryo the kryo @param output the output @param obj the obj
[ "Write", "object", "by", "reflection", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/kryo/serial/RegisteredServiceSerializer.java#L60-L64
126,654
apereo/cas
support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/kryo/serial/RegisteredServiceSerializer.java
RegisteredServiceSerializer.readObjectByReflection
@SneakyThrows private static <T> T readObjectByReflection(final Kryo kryo, final Input input, final Class<T> clazz) { val className = kryo.readObject(input, String.class); val foundClass = (Class<T>) Class.forName(className); val result = kryo.readObject(input, foundClass); if (!cla...
java
@SneakyThrows private static <T> T readObjectByReflection(final Kryo kryo, final Input input, final Class<T> clazz) { val className = kryo.readObject(input, String.class); val foundClass = (Class<T>) Class.forName(className); val result = kryo.readObject(input, foundClass); if (!cla...
[ "@", "SneakyThrows", "private", "static", "<", "T", ">", "T", "readObjectByReflection", "(", "final", "Kryo", "kryo", ",", "final", "Input", "input", ",", "final", "Class", "<", "T", ">", "clazz", ")", "{", "val", "className", "=", "kryo", ".", "readObje...
Read object by reflection. @param <T> the type parameter @param kryo the kryo @param input the input @param clazz the clazz @return the t
[ "Read", "object", "by", "reflection", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/kryo/serial/RegisteredServiceSerializer.java#L75-L87
126,655
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java
SerializationUtils.serializeAndEncodeObject
public static byte[] serializeAndEncodeObject(final CipherExecutor cipher, final Serializable object, final Object[] parameters) { val outBytes = serialize(object); return (byte[]) cipher.encode(outBytes,...
java
public static byte[] serializeAndEncodeObject(final CipherExecutor cipher, final Serializable object, final Object[] parameters) { val outBytes = serialize(object); return (byte[]) cipher.encode(outBytes,...
[ "public", "static", "byte", "[", "]", "serializeAndEncodeObject", "(", "final", "CipherExecutor", "cipher", ",", "final", "Serializable", "object", ",", "final", "Object", "[", "]", "parameters", ")", "{", "val", "outBytes", "=", "serialize", "(", "object", ")...
Serialize and encode object. @param cipher the cipher @param object the object @param parameters the parameters @return the byte [] @since 4.2
[ "Serialize", "and", "encode", "object", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java#L102-L107
126,656
apereo/cas
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java
SerializationUtils.decodeAndDeserializeObject
@SneakyThrows public static <T extends Serializable> T decodeAndDeserializeObject(final byte[] object, final CipherExecutor cipher, final Class<T> type) { return de...
java
@SneakyThrows public static <T extends Serializable> T decodeAndDeserializeObject(final byte[] object, final CipherExecutor cipher, final Class<T> type) { return de...
[ "@", "SneakyThrows", "public", "static", "<", "T", "extends", "Serializable", ">", "T", "decodeAndDeserializeObject", "(", "final", "byte", "[", "]", "object", ",", "final", "CipherExecutor", "cipher", ",", "final", "Class", "<", "T", ">", "type", ")", "{", ...
Decode and deserialize object t. @param <T> the type parameter @param object the object @param cipher the cipher @param type the type @return the t
[ "Decode", "and", "deserialize", "object", "t", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java#L150-L155
126,657
apereo/cas
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java
GitRepository.getObjectsInRepository
@SneakyThrows public Collection<GitObject> getObjectsInRepository(final TreeFilter filter) { val repository = this.gitInstance.getRepository(); val head = repository.resolve(Constants.HEAD); try (val walk = new RevWalk(repository)) { val commit = walk.parseCommit(head); ...
java
@SneakyThrows public Collection<GitObject> getObjectsInRepository(final TreeFilter filter) { val repository = this.gitInstance.getRepository(); val head = repository.resolve(Constants.HEAD); try (val walk = new RevWalk(repository)) { val commit = walk.parseCommit(head); ...
[ "@", "SneakyThrows", "public", "Collection", "<", "GitObject", ">", "getObjectsInRepository", "(", "final", "TreeFilter", "filter", ")", "{", "val", "repository", "=", "this", ".", "gitInstance", ".", "getRepository", "(", ")", ";", "val", "head", "=", "reposi...
Gets objects in repository. @param filter the filter @return the objects in repository
[ "Gets", "objects", "in", "repository", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java#L82-L102
126,658
apereo/cas
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java
GitRepository.readObject
@SneakyThrows public GitObject readObject(final TreeWalk treeWalk) { val objectId = treeWalk.getObjectId(0); val repository = this.gitInstance.getRepository(); val loader = repository.open(objectId); val out = new ByteArrayOutputStream(); loader.copyTo(out); return Gi...
java
@SneakyThrows public GitObject readObject(final TreeWalk treeWalk) { val objectId = treeWalk.getObjectId(0); val repository = this.gitInstance.getRepository(); val loader = repository.open(objectId); val out = new ByteArrayOutputStream(); loader.copyTo(out); return Gi...
[ "@", "SneakyThrows", "public", "GitObject", "readObject", "(", "final", "TreeWalk", "treeWalk", ")", "{", "val", "objectId", "=", "treeWalk", ".", "getObjectId", "(", "0", ")", ";", "val", "repository", "=", "this", ".", "gitInstance", ".", "getRepository", ...
Read object. @param treeWalk the tree walk @return the git object
[ "Read", "object", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java#L110-L122
126,659
apereo/cas
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java
GitRepository.commitAll
@SneakyThrows public void commitAll(final String message) { this.gitInstance.add().addFilepattern(".").call(); this.gitInstance.commit() .setMessage(message) .setAll(true) .setAuthor("CAS", "cas@apereo.org") .call(); }
java
@SneakyThrows public void commitAll(final String message) { this.gitInstance.add().addFilepattern(".").call(); this.gitInstance.commit() .setMessage(message) .setAll(true) .setAuthor("CAS", "cas@apereo.org") .call(); }
[ "@", "SneakyThrows", "public", "void", "commitAll", "(", "final", "String", "message", ")", "{", "this", ".", "gitInstance", ".", "add", "(", ")", ".", "addFilepattern", "(", "\".\"", ")", ".", "call", "(", ")", ";", "this", ".", "gitInstance", ".", "c...
Commit all. @param message the message
[ "Commit", "all", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java#L129-L137
126,660
apereo/cas
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java
GitRepository.pull
@SneakyThrows public boolean pull() { val remotes = this.gitInstance.getRepository().getRemoteNames(); if (!remotes.isEmpty()) { return this.gitInstance.pull() .setTimeout(TIMEOUT_SECONDS) .setFastForward(MergeCommand.FastForwardMode.FF_ONLY) ...
java
@SneakyThrows public boolean pull() { val remotes = this.gitInstance.getRepository().getRemoteNames(); if (!remotes.isEmpty()) { return this.gitInstance.pull() .setTimeout(TIMEOUT_SECONDS) .setFastForward(MergeCommand.FastForwardMode.FF_ONLY) ...
[ "@", "SneakyThrows", "public", "boolean", "pull", "(", ")", "{", "val", "remotes", "=", "this", ".", "gitInstance", ".", "getRepository", "(", ")", ".", "getRemoteNames", "(", ")", ";", "if", "(", "!", "remotes", ".", "isEmpty", "(", ")", ")", "{", "...
Pull repository changes. @return the boolean
[ "Pull", "repository", "changes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/git/GitRepository.java#L161-L174
126,661
apereo/cas
support/cas-server-support-mongo-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/MongoDbTicketRegistry.java
MongoDbTicketRegistry.getExpireAt
private static Date getExpireAt(final Ticket ticket) { val expirationPolicy = ticket.getExpirationPolicy(); val ttl = ticket instanceof TicketState ? expirationPolicy.getTimeToLive((TicketState) ticket) : expirationPolicy.getTimeToLive(); if (ttl < 1) { retur...
java
private static Date getExpireAt(final Ticket ticket) { val expirationPolicy = ticket.getExpirationPolicy(); val ttl = ticket instanceof TicketState ? expirationPolicy.getTimeToLive((TicketState) ticket) : expirationPolicy.getTimeToLive(); if (ttl < 1) { retur...
[ "private", "static", "Date", "getExpireAt", "(", "final", "Ticket", "ticket", ")", "{", "val", "expirationPolicy", "=", "ticket", ".", "getExpirationPolicy", "(", ")", ";", "val", "ttl", "=", "ticket", "instanceof", "TicketState", "?", "expirationPolicy", ".", ...
Calculate the time at which the ticket is eligible for automated deletion by MongoDb. Makes the assumption that the CAS server date and the Mongo server date are in sync.
[ "Calculate", "the", "time", "at", "which", "the", "ticket", "is", "eligible", "for", "automated", "deletion", "by", "MongoDb", ".", "Makes", "the", "assumption", "that", "the", "CAS", "server", "date", "and", "the", "Mongo", "server", "date", "are", "in", ...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-mongo-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/MongoDbTicketRegistry.java#L65-L76
126,662
apereo/cas
support/cas-server-support-mongo-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/MongoDbTicketRegistry.java
MongoDbTicketRegistry.removeDifferingIndexIfAny
private static void removeDifferingIndexIfAny(final MongoCollection collection, final Index index) { val indexes = (ListIndexesIterable<Document>) collection.listIndexes(); var indexExistsWithDifferentOptions = false; for (val existingIndex : indexes) { val keyMatches = existingInde...
java
private static void removeDifferingIndexIfAny(final MongoCollection collection, final Index index) { val indexes = (ListIndexesIterable<Document>) collection.listIndexes(); var indexExistsWithDifferentOptions = false; for (val existingIndex : indexes) { val keyMatches = existingInde...
[ "private", "static", "void", "removeDifferingIndexIfAny", "(", "final", "MongoCollection", "collection", ",", "final", "Index", "index", ")", "{", "val", "indexes", "=", "(", "ListIndexesIterable", "<", "Document", ">", ")", "collection", ".", "listIndexes", "(", ...
Remove any index with the same indexKey but differing indexOptions in anticipation of recreating it. @param collection The collection to check the indexes of @param index The index to find
[ "Remove", "any", "index", "with", "the", "same", "indexKey", "but", "differing", "indexOptions", "in", "anticipation", "of", "recreating", "it", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-mongo-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/MongoDbTicketRegistry.java#L110-L125
126,663
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/BaseMultifactorAuthenticationProviderBypass.java
BaseMultifactorAuthenticationProviderBypass.locateMatchingAttributeValue
protected static boolean locateMatchingAttributeValue(final String attrName, final String attrValue, final Map<String, List<Object>> attributes) { return locateMatchingAttributeValue(attrName, attrValue, attributes, true); }
java
protected static boolean locateMatchingAttributeValue(final String attrName, final String attrValue, final Map<String, List<Object>> attributes) { return locateMatchingAttributeValue(attrName, attrValue, attributes, true); }
[ "protected", "static", "boolean", "locateMatchingAttributeValue", "(", "final", "String", "attrName", ",", "final", "String", "attrValue", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ")", "{", "return", "locateMatching...
Locate matching attribute value boolean. @param attrName the attr name @param attrValue the attr value @param attributes the attributes @return true/false
[ "Locate", "matching", "attribute", "value", "boolean", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/BaseMultifactorAuthenticationProviderBypass.java#L88-L91
126,664
apereo/cas
core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/BaseMultifactorAuthenticationProviderBypass.java
BaseMultifactorAuthenticationProviderBypass.locateMatchingAttributeValue
protected static boolean locateMatchingAttributeValue(final String attrName, final String attrValue, final Map<String, List<Object>> attributes, final boolean matchIfNoValueProvided) { LOGGER.debu...
java
protected static boolean locateMatchingAttributeValue(final String attrName, final String attrValue, final Map<String, List<Object>> attributes, final boolean matchIfNoValueProvided) { LOGGER.debu...
[ "protected", "static", "boolean", "locateMatchingAttributeValue", "(", "final", "String", "attrName", ",", "final", "String", "attrValue", ",", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ",", "final", "boolean", "matchIfNo...
Evaluate attribute rules for bypass. @param attrName the attr name @param attrValue the attr value @param attributes the attributes @param matchIfNoValueProvided the force match on value @return true a matching attribute name/value is found
[ "Evaluate", "attribute", "rules", "for", "bypass", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-authentication-mfa-api/src/main/java/org/apereo/cas/authentication/bypass/BaseMultifactorAuthenticationProviderBypass.java#L102-L142
126,665
apereo/cas
support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/CouchDbMultifactorAuthenticationTrustRecord.java
CouchDbMultifactorAuthenticationTrustRecord.merge
public CouchDbMultifactorAuthenticationTrustRecord merge(final MultifactorAuthenticationTrustRecord other) { setId(other.getId()); setPrincipal(other.getPrincipal()); setDeviceFingerprint(other.getDeviceFingerprint()); setRecordDate(other.getRecordDate()); setRecordKey(other.getR...
java
public CouchDbMultifactorAuthenticationTrustRecord merge(final MultifactorAuthenticationTrustRecord other) { setId(other.getId()); setPrincipal(other.getPrincipal()); setDeviceFingerprint(other.getDeviceFingerprint()); setRecordDate(other.getRecordDate()); setRecordKey(other.getR...
[ "public", "CouchDbMultifactorAuthenticationTrustRecord", "merge", "(", "final", "MultifactorAuthenticationTrustRecord", "other", ")", "{", "setId", "(", "other", ".", "getId", "(", ")", ")", ";", "setPrincipal", "(", "other", ".", "getPrincipal", "(", ")", ")", ";...
Merge other record into this one for updating. @param other record to be merged into this one @return this
[ "Merge", "other", "record", "into", "this", "one", "for", "updating", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-trusted-mfa-couchdb/src/main/java/org/apereo/cas/couchdb/trusted/CouchDbMultifactorAuthenticationTrustRecord.java#L59-L67
126,666
apereo/cas
core/cas-server-core-web/src/main/java/org/apereo/cas/config/CasCoreWebConfiguration.java
CasCoreWebConfiguration.casCommonMessages
@Bean public PropertiesFactoryBean casCommonMessages() { val properties = new PropertiesFactoryBean(); val resourceLoader = new DefaultResourceLoader(); val commonNames = casProperties.getMessageBundle().getCommonNames(); val resourceList = commonNames .stream() ...
java
@Bean public PropertiesFactoryBean casCommonMessages() { val properties = new PropertiesFactoryBean(); val resourceLoader = new DefaultResourceLoader(); val commonNames = casProperties.getMessageBundle().getCommonNames(); val resourceList = commonNames .stream() ...
[ "@", "Bean", "public", "PropertiesFactoryBean", "casCommonMessages", "(", ")", "{", "val", "properties", "=", "new", "PropertiesFactoryBean", "(", ")", ";", "val", "resourceLoader", "=", "new", "DefaultResourceLoader", "(", ")", ";", "val", "commonNames", "=", "...
Load property files containing non-i18n fallback values that should be exposed to Thyme templates. keys in properties files added last will take precedence over the internal cas_common_messages.properties. Keys in regular messages bundles will override any of the common messages. @return PropertiesFactoryBean containi...
[ "Load", "property", "files", "containing", "non", "-", "i18n", "fallback", "values", "that", "should", "be", "exposed", "to", "Thyme", "templates", ".", "keys", "in", "properties", "files", "added", "last", "will", "take", "precedence", "over", "the", "interna...
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-web/src/main/java/org/apereo/cas/config/CasCoreWebConfiguration.java#L55-L70
126,667
apereo/cas
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java
BaseDuoSecurityAuthenticationService.buildHttpPostAuthRequest
protected Http buildHttpPostAuthRequest() { return new Http(HttpMethod.POST.name(), duoProperties.getDuoApiHost(), String.format("/auth/v%s/auth", AUTH_API_VERSION)); }
java
protected Http buildHttpPostAuthRequest() { return new Http(HttpMethod.POST.name(), duoProperties.getDuoApiHost(), String.format("/auth/v%s/auth", AUTH_API_VERSION)); }
[ "protected", "Http", "buildHttpPostAuthRequest", "(", ")", "{", "return", "new", "Http", "(", "HttpMethod", ".", "POST", ".", "name", "(", ")", ",", "duoProperties", ".", "getDuoApiHost", "(", ")", ",", "String", ".", "format", "(", "\"/auth/v%s/auth\"", ","...
Build http post auth request http. @return the http
[ "Build", "http", "post", "auth", "request", "http", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java#L179-L183
126,668
apereo/cas
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java
BaseDuoSecurityAuthenticationService.buildHttpPostUserPreAuthRequest
protected Http buildHttpPostUserPreAuthRequest(final String username) { val usersRequest = new Http(HttpMethod.POST.name(), duoProperties.getDuoApiHost(), String.format("/auth/v%s/preauth", AUTH_API_VERSION)); usersRequest.addParam("username", username); return usersReque...
java
protected Http buildHttpPostUserPreAuthRequest(final String username) { val usersRequest = new Http(HttpMethod.POST.name(), duoProperties.getDuoApiHost(), String.format("/auth/v%s/preauth", AUTH_API_VERSION)); usersRequest.addParam("username", username); return usersReque...
[ "protected", "Http", "buildHttpPostUserPreAuthRequest", "(", "final", "String", "username", ")", "{", "val", "usersRequest", "=", "new", "Http", "(", "HttpMethod", ".", "POST", ".", "name", "(", ")", ",", "duoProperties", ".", "getDuoApiHost", "(", ")", ",", ...
Build http post get user auth request. @param username the username @return the http
[ "Build", "http", "post", "get", "user", "auth", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java#L191-L197
126,669
apereo/cas
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java
BaseDuoSecurityAuthenticationService.signHttpAuthRequest
@SneakyThrows protected Http signHttpAuthRequest(final Http request, final String id) { request.addParam("username", id); request.addParam("factor", "auto"); request.addParam("device", "auto"); request.signRequest( duoProperties.getDuoIntegrationKey(), duoProp...
java
@SneakyThrows protected Http signHttpAuthRequest(final Http request, final String id) { request.addParam("username", id); request.addParam("factor", "auto"); request.addParam("device", "auto"); request.signRequest( duoProperties.getDuoIntegrationKey(), duoProp...
[ "@", "SneakyThrows", "protected", "Http", "signHttpAuthRequest", "(", "final", "Http", "request", ",", "final", "String", "id", ")", "{", "request", ".", "addParam", "(", "\"username\"", ",", "id", ")", ";", "request", ".", "addParam", "(", "\"factor\"", ","...
Sign http request. @param request the request @param id the id @return the http
[ "Sign", "http", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java#L207-L216
126,670
apereo/cas
support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java
BaseDuoSecurityAuthenticationService.signHttpUserPreAuthRequest
@SneakyThrows protected Http signHttpUserPreAuthRequest(final Http request) { request.signRequest( duoProperties.getDuoIntegrationKey(), duoProperties.getDuoSecretKey()); return request; }
java
@SneakyThrows protected Http signHttpUserPreAuthRequest(final Http request) { request.signRequest( duoProperties.getDuoIntegrationKey(), duoProperties.getDuoSecretKey()); return request; }
[ "@", "SneakyThrows", "protected", "Http", "signHttpUserPreAuthRequest", "(", "final", "Http", "request", ")", "{", "request", ".", "signRequest", "(", "duoProperties", ".", "getDuoIntegrationKey", "(", ")", ",", "duoProperties", ".", "getDuoSecretKey", "(", ")", "...
Sign http users request http. @param request the request @return the http
[ "Sign", "http", "users", "request", "http", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-duo-core/src/main/java/org/apereo/cas/adaptors/duo/authn/BaseDuoSecurityAuthenticationService.java#L224-L230
126,671
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/slo/SLOSamlRedirectProfileHandlerController.java
SLOSamlRedirectProfileHandlerController.handleSaml2ProfileSLOPostRequest
@GetMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SLO_PROFILE_REDIRECT) protected void handleSaml2ProfileSLOPostRequest(final HttpServletResponse response, final HttpServletRequest request) throws Exception { val decoder = getSamlProfileHandlerConfigurati...
java
@GetMapping(path = SamlIdPConstants.ENDPOINT_SAML2_SLO_PROFILE_REDIRECT) protected void handleSaml2ProfileSLOPostRequest(final HttpServletResponse response, final HttpServletRequest request) throws Exception { val decoder = getSamlProfileHandlerConfigurati...
[ "@", "GetMapping", "(", "path", "=", "SamlIdPConstants", ".", "ENDPOINT_SAML2_SLO_PROFILE_REDIRECT", ")", "protected", "void", "handleSaml2ProfileSLOPostRequest", "(", "final", "HttpServletResponse", "response", ",", "final", "HttpServletRequest", "request", ")", "throws", ...
Handle SLO Redirect profile request. @param response the response @param request the request @throws Exception the exception
[ "Handle", "SLO", "Redirect", "profile", "request", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/slo/SLOSamlRedirectProfileHandlerController.java#L32-L37
126,672
apereo/cas
support/cas-server-support-couchbase-core/src/main/java/org/apereo/cas/couchbase/core/CouchbaseClientFactory.java
CouchbaseClientFactory.query
public N1qlQueryResult query(final String usernameAttribute, final String usernameValue) throws GeneralSecurityException { val theBucket = getBucket(); val statement = Select.select("*") .from(Expression.i(theBucket.name())) .where(Expression.x(usernameAttribute).eq('\'' + userna...
java
public N1qlQueryResult query(final String usernameAttribute, final String usernameValue) throws GeneralSecurityException { val theBucket = getBucket(); val statement = Select.select("*") .from(Expression.i(theBucket.name())) .where(Expression.x(usernameAttribute).eq('\'' + userna...
[ "public", "N1qlQueryResult", "query", "(", "final", "String", "usernameAttribute", ",", "final", "String", "usernameValue", ")", "throws", "GeneralSecurityException", "{", "val", "theBucket", "=", "getBucket", "(", ")", ";", "val", "statement", "=", "Select", ".",...
Query and get a result by username. @param usernameAttribute the username attribute @param usernameValue the username value @return the n1ql query result @throws GeneralSecurityException the general security exception
[ "Query", "and", "get", "a", "result", "by", "username", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchbase-core/src/main/java/org/apereo/cas/couchbase/core/CouchbaseClientFactory.java#L146-L164
126,673
apereo/cas
support/cas-server-support-couchbase-core/src/main/java/org/apereo/cas/couchbase/core/CouchbaseClientFactory.java
CouchbaseClientFactory.collectAttributesFromEntity
public Map<String, List<Object>> collectAttributesFromEntity(final JsonObject couchbaseEntity, final Predicate<String> filter) { return couchbaseEntity.getNames() .stream() .filter(filter) .map(name -> Pair.of(name, couchbaseEntity.get(name))) .collect(Collectors....
java
public Map<String, List<Object>> collectAttributesFromEntity(final JsonObject couchbaseEntity, final Predicate<String> filter) { return couchbaseEntity.getNames() .stream() .filter(filter) .map(name -> Pair.of(name, couchbaseEntity.get(name))) .collect(Collectors....
[ "public", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "collectAttributesFromEntity", "(", "final", "JsonObject", "couchbaseEntity", ",", "final", "Predicate", "<", "String", ">", "filter", ")", "{", "return", "couchbaseEntity", ".", "getNames", ...
Collect attributes from entity map. @param couchbaseEntity the couchbase entity @param filter the filter @return the map
[ "Collect", "attributes", "from", "entity", "map", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-couchbase-core/src/main/java/org/apereo/cas/couchbase/core/CouchbaseClientFactory.java#L173-L179
126,674
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/RedirectToServiceAction.java
RedirectToServiceAction.finalizeResponseEvent
protected Event finalizeResponseEvent(final RequestContext requestContext, final WebApplicationService service, final Response response) { WebUtils.putServiceResponseIntoRequestScope(requestContext, response); WebUtils.putServiceOriginalUrlIntoRequestScope(requestContext, service); val eventId =...
java
protected Event finalizeResponseEvent(final RequestContext requestContext, final WebApplicationService service, final Response response) { WebUtils.putServiceResponseIntoRequestScope(requestContext, response); WebUtils.putServiceOriginalUrlIntoRequestScope(requestContext, service); val eventId =...
[ "protected", "Event", "finalizeResponseEvent", "(", "final", "RequestContext", "requestContext", ",", "final", "WebApplicationService", "service", ",", "final", "Response", "response", ")", "{", "WebUtils", ".", "putServiceResponseIntoRequestScope", "(", "requestContext", ...
Finalize response event event. @param requestContext the request context @param service the service @param response the response @return the event
[ "Finalize", "response", "event", "event", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/RedirectToServiceAction.java#L55-L60
126,675
apereo/cas
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/RedirectToServiceAction.java
RedirectToServiceAction.getFinalResponseEventId
protected String getFinalResponseEventId(final WebApplicationService service, final Response response, final RequestContext requestContext) { val eventId = response.getResponseType().name().toLowerCase(); LOGGER.debug("Signaling flow to redirect to service [{}] via event [{}]", service, eventId); ...
java
protected String getFinalResponseEventId(final WebApplicationService service, final Response response, final RequestContext requestContext) { val eventId = response.getResponseType().name().toLowerCase(); LOGGER.debug("Signaling flow to redirect to service [{}] via event [{}]", service, eventId); ...
[ "protected", "String", "getFinalResponseEventId", "(", "final", "WebApplicationService", "service", ",", "final", "Response", "response", ",", "final", "RequestContext", "requestContext", ")", "{", "val", "eventId", "=", "response", ".", "getResponseType", "(", ")", ...
Gets final response event id. @param service the service @param response the response @param requestContext the request context @return the final response event id
[ "Gets", "final", "response", "event", "id", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/actions/RedirectToServiceAction.java#L70-L74
126,676
apereo/cas
support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/authentication/principal/SpnegoCredential.java
SpnegoCredential.isTokenNtlm
private static boolean isTokenNtlm(final byte[] token) { if (token == null || token.length < NTLM_TOKEN_MAX_LENGTH) { return false; } return IntStream.range(0, NTLM_TOKEN_MAX_LENGTH).noneMatch(i -> NTLMSSP_SIGNATURE[i] != token[i]); }
java
private static boolean isTokenNtlm(final byte[] token) { if (token == null || token.length < NTLM_TOKEN_MAX_LENGTH) { return false; } return IntStream.range(0, NTLM_TOKEN_MAX_LENGTH).noneMatch(i -> NTLMSSP_SIGNATURE[i] != token[i]); }
[ "private", "static", "boolean", "isTokenNtlm", "(", "final", "byte", "[", "]", "token", ")", "{", "if", "(", "token", "==", "null", "||", "token", ".", "length", "<", "NTLM_TOKEN_MAX_LENGTH", ")", "{", "return", "false", ";", "}", "return", "IntStream", ...
Checks if is token ntlm. @param token the token @return true, if token ntlm
[ "Checks", "if", "is", "token", "ntlm", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/authentication/principal/SpnegoCredential.java#L86-L91
126,677
apereo/cas
support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/authentication/principal/SpnegoCredential.java
SpnegoCredential.consumeByteSourceOrNull
private static byte[] consumeByteSourceOrNull(final ByteSource source) { try { if (source == null || source.isEmpty()) { return null; } return source.read(); } catch (final IOException e) { LOGGER.warn("Could not consume the byte array sour...
java
private static byte[] consumeByteSourceOrNull(final ByteSource source) { try { if (source == null || source.isEmpty()) { return null; } return source.read(); } catch (final IOException e) { LOGGER.warn("Could not consume the byte array sour...
[ "private", "static", "byte", "[", "]", "consumeByteSourceOrNull", "(", "final", "ByteSource", "source", ")", "{", "try", "{", "if", "(", "source", "==", "null", "||", "source", ".", "isEmpty", "(", ")", ")", "{", "return", "null", ";", "}", "return", "...
Read the contents of the source into a byte array. @param source the byte array source @return the byte[] read from the source or null
[ "Read", "the", "contents", "of", "the", "source", "into", "a", "byte", "array", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-spnego/src/main/java/org/apereo/cas/support/spnego/authentication/principal/SpnegoCredential.java#L99-L109
126,678
apereo/cas
webapp/cas-server-webapp-init-config-server/src/main/java/org/apereo/cas/CasConfigurationServerWebApplication.java
CasConfigurationServerWebApplication.casConfigurationServerWebSecurityConfigurerAdapter
@Autowired @Bean public WebSecurityConfigurerAdapter casConfigurationServerWebSecurityConfigurerAdapter(final ServerProperties serverProperties) { return new WebSecurityConfigurerAdapter() { @Override protected void configure(final HttpSecurity http) throws Exception { ...
java
@Autowired @Bean public WebSecurityConfigurerAdapter casConfigurationServerWebSecurityConfigurerAdapter(final ServerProperties serverProperties) { return new WebSecurityConfigurerAdapter() { @Override protected void configure(final HttpSecurity http) throws Exception { ...
[ "@", "Autowired", "@", "Bean", "public", "WebSecurityConfigurerAdapter", "casConfigurationServerWebSecurityConfigurerAdapter", "(", "final", "ServerProperties", "serverProperties", ")", "{", "return", "new", "WebSecurityConfigurerAdapter", "(", ")", "{", "@", "Override", "p...
CAS configuration server web security configurer. @param serverProperties the server properties @return the web security configurer adapter
[ "CAS", "configuration", "server", "web", "security", "configurer", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/webapp/cas-server-webapp-init-config-server/src/main/java/org/apereo/cas/CasConfigurationServerWebApplication.java#L93-L105
126,679
apereo/cas
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlPostProfileHandlerEndpoint.java
SSOSamlPostProfileHandlerEndpoint.produce
@GetMapping(produces = MediaType.APPLICATION_XML_VALUE) @ResponseBody public ResponseEntity<Object> produce(final HttpServletRequest request, final HttpServletResponse response) { val username = request.getParameter("username"); val password = request.getParameter("password"); val entity...
java
@GetMapping(produces = MediaType.APPLICATION_XML_VALUE) @ResponseBody public ResponseEntity<Object> produce(final HttpServletRequest request, final HttpServletResponse response) { val username = request.getParameter("username"); val password = request.getParameter("password"); val entity...
[ "@", "GetMapping", "(", "produces", "=", "MediaType", ".", "APPLICATION_XML_VALUE", ")", "@", "ResponseBody", "public", "ResponseEntity", "<", "Object", ">", "produce", "(", "final", "HttpServletRequest", "request", ",", "final", "HttpServletResponse", "response", "...
Produce response entity. @param request the request @param response the response @return the response entity
[ "Produce", "response", "entity", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlPostProfileHandlerEndpoint.java#L88-L122
126,680
apereo/cas
support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/cache/SamlRegisteredServiceMetadataExpirationPolicy.java
SamlRegisteredServiceMetadataExpirationPolicy.getCacheDurationForServiceProvider
protected long getCacheDurationForServiceProvider(final SamlRegisteredService service, final MetadataResolver chainingMetadataResolver) { try { val set = new CriteriaSet(); set.add(new EntityIdCriterion(service.getServiceId())); set.add(new EntityRoleCriterion(SPSSODescriptor...
java
protected long getCacheDurationForServiceProvider(final SamlRegisteredService service, final MetadataResolver chainingMetadataResolver) { try { val set = new CriteriaSet(); set.add(new EntityIdCriterion(service.getServiceId())); set.add(new EntityRoleCriterion(SPSSODescriptor...
[ "protected", "long", "getCacheDurationForServiceProvider", "(", "final", "SamlRegisteredService", "service", ",", "final", "MetadataResolver", "chainingMetadataResolver", ")", "{", "try", "{", "val", "set", "=", "new", "CriteriaSet", "(", ")", ";", "set", ".", "add"...
Gets cache duration for service provider. @param service the service @param chainingMetadataResolver the chaining metadata resolver @return the cache duration for service provider
[ "Gets", "cache", "duration", "for", "service", "provider", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-saml-idp-metadata/src/main/java/org/apereo/cas/support/saml/services/idp/metadata/cache/SamlRegisteredServiceMetadataExpirationPolicy.java#L75-L97
126,681
apereo/cas
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java
LdapConsentRepository.executeModifyOperation
private boolean executeModifyOperation(final Set<String> newConsent, final LdapEntry entry) { val attrMap = new HashMap<String, Set<String>>(); attrMap.put(this.ldap.getConsentAttributeName(), newConsent); LOGGER.debug("Storing consent decisions [{}] at LDAP attribute [{}] for [{}]", newConsent...
java
private boolean executeModifyOperation(final Set<String> newConsent, final LdapEntry entry) { val attrMap = new HashMap<String, Set<String>>(); attrMap.put(this.ldap.getConsentAttributeName(), newConsent); LOGGER.debug("Storing consent decisions [{}] at LDAP attribute [{}] for [{}]", newConsent...
[ "private", "boolean", "executeModifyOperation", "(", "final", "Set", "<", "String", ">", "newConsent", ",", "final", "LdapEntry", "entry", ")", "{", "val", "attrMap", "=", "new", "HashMap", "<", "String", ",", "Set", "<", "String", ">", ">", "(", ")", ";...
Modifies the consent decisions attribute on the entry. @param newConsent new set of consent decisions @param entry entry of consent decisions @return true / false
[ "Modifies", "the", "consent", "decisions", "attribute", "on", "the", "entry", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java#L156-L162
126,682
apereo/cas
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java
LdapConsentRepository.mergeDecision
private static Set<String> mergeDecision(final LdapAttribute ldapConsent, final ConsentDecision decision) { if (decision.getId() < 0) { decision.setId(System.currentTimeMillis()); } if (ldapConsent != null) { val result = removeDecision(ldapConsent, decision.getId()); ...
java
private static Set<String> mergeDecision(final LdapAttribute ldapConsent, final ConsentDecision decision) { if (decision.getId() < 0) { decision.setId(System.currentTimeMillis()); } if (ldapConsent != null) { val result = removeDecision(ldapConsent, decision.getId()); ...
[ "private", "static", "Set", "<", "String", ">", "mergeDecision", "(", "final", "LdapAttribute", "ldapConsent", ",", "final", "ConsentDecision", "decision", ")", "{", "if", "(", "decision", ".", "getId", "(", ")", "<", "0", ")", "{", "decision", ".", "setId...
Merges a new decision into existing decisions. Decisions are matched by ID. @param ldapConsent existing consent decisions @param decision new decision @return new decision set
[ "Merges", "a", "new", "decision", "into", "existing", "decisions", ".", "Decisions", "are", "matched", "by", "ID", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java#L172-L194
126,683
apereo/cas
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java
LdapConsentRepository.removeDecision
private static Set<String> removeDecision(final LdapAttribute ldapConsent, final long decisionId) { val result = new HashSet<String>(); if (ldapConsent.size() != 0) { ldapConsent.getStringValues() .stream() .map(LdapConsentRepository::mapFromJson) ...
java
private static Set<String> removeDecision(final LdapAttribute ldapConsent, final long decisionId) { val result = new HashSet<String>(); if (ldapConsent.size() != 0) { ldapConsent.getStringValues() .stream() .map(LdapConsentRepository::mapFromJson) ...
[ "private", "static", "Set", "<", "String", ">", "removeDecision", "(", "final", "LdapAttribute", "ldapConsent", ",", "final", "long", "decisionId", ")", "{", "val", "result", "=", "new", "HashSet", "<", "String", ">", "(", ")", ";", "if", "(", "ldapConsent...
Removes decision from ldap attribute set. @param ldapConsent the ldap attribute holding consent decisions @param decisionId the decision Id @return the new decision set
[ "Removes", "decision", "from", "ldap", "attribute", "set", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java#L203-L215
126,684
apereo/cas
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java
LdapConsentRepository.readConsentEntry
private LdapEntry readConsentEntry(final String principal) { try { val filter = LdapUtils.newLdaptiveSearchFilter(this.searchFilter, CollectionUtils.wrapList(principal)); LOGGER.debug("Locating consent LDAP entry via filter [{}] based on attribute [{}]", filter, this.ldap.getConsentAttri...
java
private LdapEntry readConsentEntry(final String principal) { try { val filter = LdapUtils.newLdaptiveSearchFilter(this.searchFilter, CollectionUtils.wrapList(principal)); LOGGER.debug("Locating consent LDAP entry via filter [{}] based on attribute [{}]", filter, this.ldap.getConsentAttri...
[ "private", "LdapEntry", "readConsentEntry", "(", "final", "String", "principal", ")", "{", "try", "{", "val", "filter", "=", "LdapUtils", ".", "newLdaptiveSearchFilter", "(", "this", ".", "searchFilter", ",", "CollectionUtils", ".", "wrapList", "(", "principal", ...
Fetches a user entry along with its consent attributes. @param principal user name @return the user's LDAP entry
[ "Fetches", "a", "user", "entry", "along", "with", "its", "consent", "attributes", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java#L223-L238
126,685
apereo/cas
support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java
LdapConsentRepository.readConsentEntries
private Collection<LdapEntry> readConsentEntries() { try { val att = this.ldap.getConsentAttributeName(); val filter = LdapUtils.newLdaptiveSearchFilter('(' + att + "=*)"); LOGGER.debug("Locating consent LDAP entries via filter [{}] based on attribute [{}]", filter, att); ...
java
private Collection<LdapEntry> readConsentEntries() { try { val att = this.ldap.getConsentAttributeName(); val filter = LdapUtils.newLdaptiveSearchFilter('(' + att + "=*)"); LOGGER.debug("Locating consent LDAP entries via filter [{}] based on attribute [{}]", filter, att); ...
[ "private", "Collection", "<", "LdapEntry", ">", "readConsentEntries", "(", ")", "{", "try", "{", "val", "att", "=", "this", ".", "ldap", ".", "getConsentAttributeName", "(", ")", ";", "val", "filter", "=", "LdapUtils", ".", "newLdaptiveSearchFilter", "(", "'...
Fetches all user entries that contain consent attributes along with these. @return the collection of user entries
[ "Fetches", "all", "user", "entries", "that", "contain", "consent", "attributes", "along", "with", "these", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-consent-ldap/src/main/java/org/apereo/cas/consent/LdapConsentRepository.java#L245-L263
126,686
apereo/cas
support/cas-server-support-u2f-couchdb/src/main/java/org/apereo/cas/couchdb/u2f/U2FDeviceRegistrationCouchDbRepository.java
U2FDeviceRegistrationCouchDbRepository.findByDateBefore
@View(name = "by_createdDate", map = "function(doc) { if(doc.record && doc.createdDate && doc.username) { emit(doc.createdDate, doc) } }") public List<CouchDbU2FDeviceRegistration> findByDateBefore(final LocalDate expirationDate) { return db.queryView(createQuery("by_createdDate").endKey(expirationDate), Co...
java
@View(name = "by_createdDate", map = "function(doc) { if(doc.record && doc.createdDate && doc.username) { emit(doc.createdDate, doc) } }") public List<CouchDbU2FDeviceRegistration> findByDateBefore(final LocalDate expirationDate) { return db.queryView(createQuery("by_createdDate").endKey(expirationDate), Co...
[ "@", "View", "(", "name", "=", "\"by_createdDate\"", ",", "map", "=", "\"function(doc) { if(doc.record && doc.createdDate && doc.username) { emit(doc.createdDate, doc) } }\"", ")", "public", "List", "<", "CouchDbU2FDeviceRegistration", ">", "findByDateBefore", "(", "final", "Lo...
Find expired records. @param expirationDate date to search until @return expired records
[ "Find", "expired", "records", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-u2f-couchdb/src/main/java/org/apereo/cas/couchdb/u2f/U2FDeviceRegistrationCouchDbRepository.java#L39-L42
126,687
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/actions/SendPasswordResetInstructionsAction.java
SendPasswordResetInstructionsAction.buildPasswordResetUrl
public String buildPasswordResetUrl(final String username, final PasswordManagementService passwordManagementService, final CasConfigurationProperties casProperties) { val token = passwordManagementService.createToken(username); ...
java
public String buildPasswordResetUrl(final String username, final PasswordManagementService passwordManagementService, final CasConfigurationProperties casProperties) { val token = passwordManagementService.createToken(username); ...
[ "public", "String", "buildPasswordResetUrl", "(", "final", "String", "username", ",", "final", "PasswordManagementService", "passwordManagementService", ",", "final", "CasConfigurationProperties", "casProperties", ")", "{", "val", "token", "=", "passwordManagementService", ...
Utility method to generate a password reset URL. @param username username @param passwordManagementService passwordManagementService @param casProperties casProperties @return URL a user can use to start the password reset process
[ "Utility", "method", "to", "generate", "a", "password", "reset", "URL", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/actions/SendPasswordResetInstructionsAction.java#L75-L93
126,688
apereo/cas
support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/actions/SendPasswordResetInstructionsAction.java
SendPasswordResetInstructionsAction.sendPasswordResetEmailToAccount
protected boolean sendPasswordResetEmailToAccount(final String to, final String url) { val reset = casProperties.getAuthn().getPm().getReset().getMail(); val text = reset.getFormattedBody(url); return this.communicationsManager.email(reset, to, text); }
java
protected boolean sendPasswordResetEmailToAccount(final String to, final String url) { val reset = casProperties.getAuthn().getPm().getReset().getMail(); val text = reset.getFormattedBody(url); return this.communicationsManager.email(reset, to, text); }
[ "protected", "boolean", "sendPasswordResetEmailToAccount", "(", "final", "String", "to", ",", "final", "String", "url", ")", "{", "val", "reset", "=", "casProperties", ".", "getAuthn", "(", ")", ".", "getPm", "(", ")", ".", "getReset", "(", ")", ".", "getM...
Send password reset email to account. @param to the to @param url the url @return true/false
[ "Send", "password", "reset", "email", "to", "account", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pm-webflow/src/main/java/org/apereo/cas/pm/web/flow/actions/SendPasswordResetInstructionsAction.java#L137-L141
126,689
apereo/cas
support/cas-server-support-jpa-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/support/JpaLockingStrategy.java
JpaLockingStrategy.acquire
public boolean acquire(final Lock lock) { lock.setUniqueId(this.uniqueId); if (this.lockTimeout > 0) { lock.setExpirationDate(ZonedDateTime.now(ZoneOffset.UTC).plusSeconds(this.lockTimeout)); } else { lock.setExpirationDate(null); } var success = false; ...
java
public boolean acquire(final Lock lock) { lock.setUniqueId(this.uniqueId); if (this.lockTimeout > 0) { lock.setExpirationDate(ZonedDateTime.now(ZoneOffset.UTC).plusSeconds(this.lockTimeout)); } else { lock.setExpirationDate(null); } var success = false; ...
[ "public", "boolean", "acquire", "(", "final", "Lock", "lock", ")", "{", "lock", ".", "setUniqueId", "(", "this", ".", "uniqueId", ")", ";", "if", "(", "this", ".", "lockTimeout", ">", "0", ")", "{", "lock", ".", "setExpirationDate", "(", "ZonedDateTime",...
Acquire the lock object. @param lock the lock @return true, if successful
[ "Acquire", "the", "lock", "object", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-jpa-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/support/JpaLockingStrategy.java#L99-L124
126,690
apereo/cas
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/authentication/support/DefaultLdapAccountStateHandler.java
DefaultLdapAccountStateHandler.handlePolicyAttributes
@SneakyThrows protected void handlePolicyAttributes(final AuthenticationResponse response) { val attributes = response.getLdapEntry().getAttributes(); for (val attr : attributes) { if (this.attributesToErrorMap.containsKey(attr.getName()) && Boolean.parseBoolean(attr.getStringValue())) {...
java
@SneakyThrows protected void handlePolicyAttributes(final AuthenticationResponse response) { val attributes = response.getLdapEntry().getAttributes(); for (val attr : attributes) { if (this.attributesToErrorMap.containsKey(attr.getName()) && Boolean.parseBoolean(attr.getStringValue())) {...
[ "@", "SneakyThrows", "protected", "void", "handlePolicyAttributes", "(", "final", "AuthenticationResponse", "response", ")", "{", "val", "attributes", "=", "response", ".", "getLdapEntry", "(", ")", ".", "getAttributes", "(", ")", ";", "for", "(", "val", "attr",...
Maps boolean attribute values to their corresponding exception. This handles ad-hoc password policies. @param response the authentication response.
[ "Maps", "boolean", "attribute", "values", "to", "their", "corresponding", "exception", ".", "This", "handles", "ad", "-", "hoc", "password", "policies", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/authentication/support/DefaultLdapAccountStateHandler.java#L183-L192
126,691
apereo/cas
support/cas-server-support-radius-core/src/main/java/org/apereo/cas/adaptors/radius/RadiusClientFactory.java
RadiusClientFactory.newInstance
@SneakyThrows public RadiusClient newInstance() { return new RadiusClient(InetAddress.getByName(this.inetAddress), this.sharedSecret, this.authenticationPort, this.accountingPort, this.socketTimeout); }
java
@SneakyThrows public RadiusClient newInstance() { return new RadiusClient(InetAddress.getByName(this.inetAddress), this.sharedSecret, this.authenticationPort, this.accountingPort, this.socketTimeout); }
[ "@", "SneakyThrows", "public", "RadiusClient", "newInstance", "(", ")", "{", "return", "new", "RadiusClient", "(", "InetAddress", ".", "getByName", "(", "this", ".", "inetAddress", ")", ",", "this", ".", "sharedSecret", ",", "this", ".", "authenticationPort", ...
New instance radius client. @return the radius client
[ "New", "instance", "radius", "client", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-radius-core/src/main/java/org/apereo/cas/adaptors/radius/RadiusClientFactory.java#L61-L65
126,692
apereo/cas
support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/services/AnonymousUsernameAttributeProviderCommand.java
AnonymousUsernameAttributeProviderCommand.generateUsername
@ShellMethod(key = "generate-anonymous-user", value = "Generate an anonymous (persistent) username identifier") public void generateUsername( @ShellOption(value = {"username"}, help = "Authenticated username") final String username, @ShellOption(value = {"service"}, help = "S...
java
@ShellMethod(key = "generate-anonymous-user", value = "Generate an anonymous (persistent) username identifier") public void generateUsername( @ShellOption(value = {"username"}, help = "Authenticated username") final String username, @ShellOption(value = {"service"}, help = "S...
[ "@", "ShellMethod", "(", "key", "=", "\"generate-anonymous-user\"", ",", "value", "=", "\"Generate an anonymous (persistent) username identifier\"", ")", "public", "void", "generateUsername", "(", "@", "ShellOption", "(", "value", "=", "{", "\"username\"", "}", ",", "...
Generate username. @param username the username @param service the service @param salt the salt
[ "Generate", "username", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-shell/src/main/java/org/apereo/cas/shell/commands/services/AnonymousUsernameAttributeProviderCommand.java#L29-L40
126,693
apereo/cas
support/cas-server-support-otp-mfa-core/src/main/java/org/apereo/cas/otp/repository/token/OneTimeTokenRepositoryCleaner.java
OneTimeTokenRepositoryCleaner.clean
@Synchronized public void clean() { val now = ZonedDateTime.now(); LOGGER.debug("Starting to clean previously used authenticator tokens from [{}] at [{}]", this.tokenRepository, now); tokenRepository.clean(); LOGGER.info("Finished cleaning authenticator tokens at [{}]", now); }
java
@Synchronized public void clean() { val now = ZonedDateTime.now(); LOGGER.debug("Starting to clean previously used authenticator tokens from [{}] at [{}]", this.tokenRepository, now); tokenRepository.clean(); LOGGER.info("Finished cleaning authenticator tokens at [{}]", now); }
[ "@", "Synchronized", "public", "void", "clean", "(", ")", "{", "val", "now", "=", "ZonedDateTime", ".", "now", "(", ")", ";", "LOGGER", ".", "debug", "(", "\"Starting to clean previously used authenticator tokens from [{}] at [{}]\"", ",", "this", ".", "tokenReposit...
Clean the repository.
[ "Clean", "the", "repository", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-otp-mfa-core/src/main/java/org/apereo/cas/otp/repository/token/OneTimeTokenRepositoryCleaner.java#L24-L30
126,694
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/web/views/OAuth20ConsentApprovalViewResolver.java
OAuth20ConsentApprovalViewResolver.redirectToApproveView
@SneakyThrows protected ModelAndView redirectToApproveView(final J2EContext ctx, final OAuthRegisteredService svc) { val callbackUrl = ctx.getFullRequestURL(); LOGGER.trace("callbackUrl: [{}]", callbackUrl); val url = new URIBuilder(callbackUrl); url.addParameter(OAuth20Constants.BY...
java
@SneakyThrows protected ModelAndView redirectToApproveView(final J2EContext ctx, final OAuthRegisteredService svc) { val callbackUrl = ctx.getFullRequestURL(); LOGGER.trace("callbackUrl: [{}]", callbackUrl); val url = new URIBuilder(callbackUrl); url.addParameter(OAuth20Constants.BY...
[ "@", "SneakyThrows", "protected", "ModelAndView", "redirectToApproveView", "(", "final", "J2EContext", "ctx", ",", "final", "OAuthRegisteredService", "svc", ")", "{", "val", "callbackUrl", "=", "ctx", ".", "getFullRequestURL", "(", ")", ";", "LOGGER", ".", "trace"...
Redirect to approve view model and view. @param ctx the ctx @param svc the svc @return the model and view
[ "Redirect", "to", "approve", "view", "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/views/OAuth20ConsentApprovalViewResolver.java#L66-L81
126,695
apereo/cas
support/cas-server-support-otp-mfa-core/src/main/java/org/apereo/cas/otp/util/QRUtils.java
QRUtils.generateQRCode
@SneakyThrows public static void generateQRCode(final OutputStream stream, final String key, final int width, final int height) { val hintMap = new EnumMap<EncodeHintType, Object>(EncodeHintType.class); hintMap.put(EncodeHintType.CHARACTER_SET, StandardCharsets....
java
@SneakyThrows public static void generateQRCode(final OutputStream stream, final String key, final int width, final int height) { val hintMap = new EnumMap<EncodeHintType, Object>(EncodeHintType.class); hintMap.put(EncodeHintType.CHARACTER_SET, StandardCharsets....
[ "@", "SneakyThrows", "public", "static", "void", "generateQRCode", "(", "final", "OutputStream", "stream", ",", "final", "String", "key", ",", "final", "int", "width", ",", "final", "int", "height", ")", "{", "val", "hintMap", "=", "new", "EnumMap", "<", "...
Generate qr code. @param stream the stream @param key the key @param width the width @param height the height
[ "Generate", "qr", "code", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-otp-mfa-core/src/main/java/org/apereo/cas/otp/util/QRUtils.java#L43-L70
126,696
apereo/cas
support/cas-server-support-pac4j-authentication/src/main/java/org/apereo/cas/integration/pac4j/authentication/handler/support/AbstractPac4jAuthenticationHandler.java
AbstractPac4jAuthenticationHandler.createResult
protected AuthenticationHandlerExecutionResult createResult(final ClientCredential credentials, final UserProfile profile, final BaseClient client) throws GeneralSecurityException { if (profile == null) { throw new FailedLoginException(...
java
protected AuthenticationHandlerExecutionResult createResult(final ClientCredential credentials, final UserProfile profile, final BaseClient client) throws GeneralSecurityException { if (profile == null) { throw new FailedLoginException(...
[ "protected", "AuthenticationHandlerExecutionResult", "createResult", "(", "final", "ClientCredential", "credentials", ",", "final", "UserProfile", "profile", ",", "final", "BaseClient", "client", ")", "throws", "GeneralSecurityException", "{", "if", "(", "profile", "==", ...
Build the handler result. @param credentials the provided credentials @param profile the retrieved user profile @param client the client @return the built handler result @throws GeneralSecurityException On authentication failure.
[ "Build", "the", "handler", "result", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-authentication/src/main/java/org/apereo/cas/integration/pac4j/authentication/handler/support/AbstractPac4jAuthenticationHandler.java#L51-L67
126,697
apereo/cas
support/cas-server-support-pac4j-authentication/src/main/java/org/apereo/cas/integration/pac4j/authentication/handler/support/AbstractPac4jAuthenticationHandler.java
AbstractPac4jAuthenticationHandler.finalizeAuthenticationHandlerResult
protected AuthenticationHandlerExecutionResult finalizeAuthenticationHandlerResult(final ClientCredential credentials, final Principal principal, ...
java
protected AuthenticationHandlerExecutionResult finalizeAuthenticationHandlerResult(final ClientCredential credentials, final Principal principal, ...
[ "protected", "AuthenticationHandlerExecutionResult", "finalizeAuthenticationHandlerResult", "(", "final", "ClientCredential", "credentials", ",", "final", "Principal", "principal", ",", "final", "UserProfile", "profile", ",", "final", "BaseClient", "client", ")", "{", "preF...
Finalize authentication handler result. @param credentials the credentials @param principal the principal @param profile the profile @param client the client @return the authentication handler execution result
[ "Finalize", "authentication", "handler", "result", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-authentication/src/main/java/org/apereo/cas/integration/pac4j/authentication/handler/support/AbstractPac4jAuthenticationHandler.java#L78-L84
126,698
apereo/cas
support/cas-server-support-pac4j-authentication/src/main/java/org/apereo/cas/integration/pac4j/authentication/handler/support/AbstractPac4jAuthenticationHandler.java
AbstractPac4jAuthenticationHandler.determinePrincipalIdFrom
protected String determinePrincipalIdFrom(final UserProfile profile, final BaseClient client) { var id = profile.getId(); val properties = client != null ? client.getCustomProperties() : new HashMap<>(); if (client != null && properties.containsKey(ClientCustomPropertyConstants.CLIENT_CUSTOM_PRO...
java
protected String determinePrincipalIdFrom(final UserProfile profile, final BaseClient client) { var id = profile.getId(); val properties = client != null ? client.getCustomProperties() : new HashMap<>(); if (client != null && properties.containsKey(ClientCustomPropertyConstants.CLIENT_CUSTOM_PRO...
[ "protected", "String", "determinePrincipalIdFrom", "(", "final", "UserProfile", "profile", ",", "final", "BaseClient", "client", ")", "{", "var", "id", "=", "profile", ".", "getId", "(", ")", ";", "val", "properties", "=", "client", "!=", "null", "?", "clien...
Determine principal id from profile. @param profile the profile @param client the client @return the id
[ "Determine", "principal", "id", "from", "profile", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-pac4j-authentication/src/main/java/org/apereo/cas/integration/pac4j/authentication/handler/support/AbstractPac4jAuthenticationHandler.java#L105-L144
126,699
apereo/cas
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/authenticator/OAuth20ClientIdClientSecretAuthenticator.java
OAuth20ClientIdClientSecretAuthenticator.validateCredentials
protected void validateCredentials(final UsernamePasswordCredentials credentials, final OAuthRegisteredService registeredService, final WebContext context) { if (!OAuth20Utils.checkClientSecret(registeredService, credentials.getPasswo...
java
protected void validateCredentials(final UsernamePasswordCredentials credentials, final OAuthRegisteredService registeredService, final WebContext context) { if (!OAuth20Utils.checkClientSecret(registeredService, credentials.getPasswo...
[ "protected", "void", "validateCredentials", "(", "final", "UsernamePasswordCredentials", "credentials", ",", "final", "OAuthRegisteredService", "registeredService", ",", "final", "WebContext", "context", ")", "{", "if", "(", "!", "OAuth20Utils", ".", "checkClientSecret", ...
Validate credentials. @param credentials the credentials @param registeredService the registered service @param context the context
[ "Validate", "credentials", "." ]
b4b306433a8782cef803a39bea5b1f96740e0e9b
https://github.com/apereo/cas/blob/b4b306433a8782cef803a39bea5b1f96740e0e9b/support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/authenticator/OAuth20ClientIdClientSecretAuthenticator.java#L67-L73