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

ai.vespa.secret.model.VaultName Maven / Gradle / Ivy

The newest version!
package ai.vespa.secret.model;

import ai.vespa.validation.PatternedStringWrapper;

import java.util.regex.Pattern;

/**
 * @author gjoranv
 */
public class VaultName extends PatternedStringWrapper {

    private static final Pattern namePattern = Pattern.compile("[.a-zA-Z0-9_-]{1,64}");

    private VaultName(String name) {
            super(name, namePattern, "Vault name");
        }

    public static VaultName of(String name) {
            return new VaultName(name);
        }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy