Interface AuthRealm
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.jvnet.hk2.config.types.PropertyBag
@FileRealmPropertyCheck
@LDAPRealmPropertyCheck
@JDBCRealmPropertyCheck
@SolarisRealmPropertyCheck
public interface AuthRealm
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
The auth-realm element defines and configures one authentication realm. There must be
at least one realm available for a server instance; any number can be configured,
as desired. Authentication realms need provider-specific parameters which vary
depending on what a particular implementation needs; these are defined as properties
since they vary by provider and cannot be predicted for any custom or add-on providers.
>For the default file provider, the param used is: file.
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringGets the value of theclassnameproperty.default String@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*",message="Pattern: [A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*") StringgetName()Gets the value of thenameproperty.List<org.jvnet.hk2.config.types.Property>Properties.voidsetClassname(String classname) Sets the value of theclassnameproperty.voidSets the value of thenameproperty.Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Method Details
-
getName
@NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*", message="Pattern: [A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*") @NotNull @Pattern(regexp="[A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*",message="Pattern: [A-Za-z0-9_][A-Za-z0-9\\-_\\./;#]*") String getName()Gets the value of thenameproperty.Defines the name of this realm.
- Returns:
- possible object is
String
-
setName
Sets the value of thenameproperty.- Parameters:
name- allowed object isString- Throws:
PropertyVetoException
-
getClassname
Gets the value of theclassnameproperty. Defines the java class which implements this realm.- Returns:
- possible object is
String
-
setClassname
Sets the value of theclassnameproperty.- Parameters:
classname- allowed object isString- Throws:
PropertyVetoException
-
getGroupMapping
-
getProperty
@PropertyDesc(name="jaas-context",description="jaas-contextfile, jdbcSpecifies the JAAS (Java Authentication and Authorization Service) context") @PropertyDesc(name="file",defaultValue="${com.sun.aas.instanceRoot}/config/keyfile",description="file realm. Specifies the file that stores user names, passwords, and group names.") @PropertyDesc(name="assign-groups",description="file, jdbc realms. Comma-separated list of group names.") @PropertyDesc(name="datasource-jndi",description="Specifies name of the jdbc-resource for the database") @PropertyDesc(name="user-table",description="Specifies the name of the user table in the database") @PropertyDesc(name="user-name-column",description="Specifies the name of the user name column in the database user table") @PropertyDesc(name="password-column",description="Specifies the name of the password column in the database user table") @PropertyDesc(name="group-table",description="Specifies the name of the group table in the database") @PropertyDesc(name="group-name-column",description="Specifies the name of the group name column in the database user table") @PropertyDesc(name="db-user",description="The database user name in the realm instead of that in the jdbc-connection-pool. Prevents other applications from looking up the database, getting a connection, and browsing the user table") @PropertyDesc(name="db-password",description="The database password in the realm instead of that in the jdbc-connection-pool. Prevents other applications from looking up the database, getting a connection, and browsing the user table") @PropertyDesc(name="digest-algorithm",defaultValue="MD5",values={"MD5","none","SHA"},description="Any algorithm supported in the JDK") @PropertyDesc(name="encoding",values={"Hex","Base64"},description="Specifies the encoding. If digest-algorithm is specified, the default is Hex, otherwise no encoding is specified") @PropertyDesc(name="charset",description="Specifies the charset for the digest algorithm") List<org.jvnet.hk2.config.types.Property> getProperty()Properties.- Specified by:
getPropertyin interfaceorg.jvnet.hk2.config.types.PropertyBag
-