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

pl.edu.icm.unity.stdext.utils.SensitiveAttributeMetadataProvider Maven / Gradle / Ivy

Go to download

Standard plugins which are distributed with the system: attribute syntaxes, identity types, credentials

There is a newer version: 4.0.2
Show newest version
/*
 * Copyright (c) 2018 Bixbit - Krzysztof Benedyczak All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package pl.edu.icm.unity.stdext.utils;

import org.springframework.stereotype.Component;

import pl.edu.icm.unity.base.attribute.AttributeType;
import pl.edu.icm.unity.base.attribute.IllegalAttributeTypeException;
import pl.edu.icm.unity.engine.api.attributes.AttributeMetadataProvider;

@Component
public class SensitiveAttributeMetadataProvider implements AttributeMetadataProvider 
{
	public static final String NAME = "securitySensitive";
	
	@Override
	public String getName()
	{
		return NAME;
	}

	@Override
	public String getDescription()
	{
		return "Attribute is considered security sensitive and its changes by regular users will require "
				+ "additional authentication.";
	}

	@Override
	public void verify(String metadata, AttributeType at) throws IllegalAttributeTypeException
	{
	}

	@Override
	public boolean isSingleton()
	{
		return false;
	}

	@Override
	public boolean isSecuritySensitive()
	{
		return true;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy