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

org.zodiac.actuate.security.ManagementEnpointsSecurityInfo Maven / Gradle / Ivy

The newest version!
package org.zodiac.actuate.security;

import org.zodiac.security.config.SecurityConfigInfo;

public class ManagementEnpointsSecurityInfo extends SecurityConfigInfo {

    private static final long serialVersionUID = 2979212337164433288L;

    private static final String DEFAULT_ACTUATOR_SECURITY_TOKEN = "345#$%.wsx";
    public static final String DEFAULT_ACTUATOR_SECURITY_USER = "admin";
    public static final String DEFAULT_ACTUATOR_SECURITY_USER_ROLE = "ACTUATOR";

    public ManagementEnpointsSecurityInfo() {
        /*默认用户名*/
        getAuth().setUsername(DEFAULT_ACTUATOR_SECURITY_USER)
        /*默认令牌,即密码*/
        .setAccessToken(DEFAULT_ACTUATOR_SECURITY_TOKEN)
        /*默认角色*/
        .getRoles().add(DEFAULT_ACTUATOR_SECURITY_USER_ROLE);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy