All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dynamicextensionsalfresco.gradle.configuration.Authentication.groovy Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 1.7.6
Show newest version
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