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

com.payneteasy.superfly.security.PrependingTransformer Maven / Gradle / Ivy

Go to download

Module for Spring Security which enables application to use Superfly authentication/authorization declaratively through Spring Security

The newest version!
package com.payneteasy.superfly.security;

/**
 * Prepends a prefix to a transformed string.
 * 
 * @author Roman Puchkovskiy
 */
public class PrependingTransformer implements StringTransformer {

    private String prefix = "";

    /**
     * Sets a prefix to prepend.
     *
     * @param prefix
     */
    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String transform(String s) {
        return prefix + s;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy