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

org.seedstack.seed.security.WithUser Maven / Gradle / Ivy

/**
 * Copyright (c) 2013-2016, The SeedStack authors 
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package org.seedstack.seed.security;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation is used to connect a user to the Seed security. If annotation
 * is present on the class, it will connect the provided id/pwd for each method
 * unless the method is itself annotated with a different id/pwd.
 *
 * @author [email protected]
 */
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface WithUser {
    /** @return id of the user */
    String id();

    /** @return password of the user */
    String password();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy