com.github.dynamicextensionsalfresco.gradle.configuration.Authentication.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin Show documentation
Show all versions of gradle-plugin Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.gradle.configuration
/**
* @author Laurent Van der Linden
*/
class Authentication {
String username = "admin"
String password = "admin"
boolean asBoolean() {
(username && password)
}
String getBasic() {
// Use toString() as a workaround for http://jira.codehaus.org/browse/GROOVY-5761
"$username:$password".toString().bytes.encodeBase64()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy