public class AuthenticationParameters extends java.lang.Object implements IAuthenticationParameters
IAuthenticationParameters
interface.Constructor and Description |
---|
AuthenticationParameters(java.lang.String userName)
Initializes a new instance of the AuthenticationParameters class, containing just the username, and no extra
data.
|
AuthenticationParameters(java.lang.String userName,
IUserPermissions permissions)
Initializes a new instance of the AuthenticationParameters class, containing the username, and the
permissions for that username.
|
AuthenticationParameters(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> mappingData)
Initializes a new instance of the AuthenticationParameters class, containing the username and mapping data.
|
AuthenticationParameters(java.lang.String userName,
java.lang.String extraDataToSign)
Initializes a new instance of the AuthenticationParameters class, containing the username and extra data.
|
AuthenticationParameters(java.lang.String userName,
java.lang.String extraDataToSign,
java.util.Map<java.lang.String,java.lang.String> mappingData)
Initializes a new instance of the AuthenticationParameters class, containing the username, extra data and mapping
data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExtraDataToSign()
Gets any extra data within the token that KeyMaster will sign.
|
java.lang.String |
getLiberatorUsername()
Gets the username that should be used to log in to Liberator.
|
java.util.Map<java.lang.String,java.lang.String> |
getMappingData()
Gets the mapping data.
|
void |
setExtraDataToSign(java.lang.String value)
Sets any extra data within the token that KeyMaster will sign.
|
void |
setLiberatorUsername(java.lang.String value)
Sets the username that should be used to log in to Liberator.
|
void |
setMappingData(java.util.Map<java.lang.String,java.lang.String> value)
Sets the mapping data.
|
java.lang.String |
toString() |
public AuthenticationParameters(java.lang.String userName, IUserPermissions permissions)
Initializes a new instance of the AuthenticationParameters class, containing the username, and the permissions for that username.
StreamLink clients supply the username to Liberator in the Liberator login request.
In a production system this name would normally be the authenticated username, which typically has been authenticated through a single sign-on facility.
userName
- Name of the user. This is the username that is supplied to a Liberator login request. In a production
system this name would normally be the authenticated username, which typically has been authenticated
through a single sign-on facility.permissions
- Permissions for the user.public AuthenticationParameters(java.lang.String userName)
StreamLink clients supply the username to Liberator in the Liberator login request. In a production system this name would normally be the authenticated username, which typically has been authenticated through a single sign-on facility.
userName
- Name of the user. This is the username that is supplied to a Liberator login request. In a production
system this name would normally be the authenticated username, which typically has been authenticated
through a single sign-on facility.public AuthenticationParameters(java.lang.String userName, java.lang.String extraDataToSign)
StreamLink clients supply the username to Liberator in the Liberator login request. In a production system this name would normally be the authenticated username, which typically has been authenticated through a single sign-on facility.
userName
- Name of the user. This is the username that is supplied to a Liberator login request. In a production
system this name would normally be the authenticated username, which typically has been authenticated
through a single sign-on facility.extraDataToSign
- Extra data that KeyMaster will sign within the token.public AuthenticationParameters(java.lang.String userName, java.util.Map<java.lang.String,java.lang.String> mappingData)
StreamLink clients supply the username to Liberator in the Liberator login request. In a production system this name would normally be the authenticated username, which typically has been authenticated through a single sign-on facility.
userName
- Name of the user. This is the username that is supplied to a Liberator login request. In a production
system this name would normally be the authenticated username, which typically has been authenticated
through a single sign-on facility.mappingData
- Mapping data will be signed and its values will be available for use in Liberator mappings using
%{key}.public AuthenticationParameters(java.lang.String userName, java.lang.String extraDataToSign, java.util.Map<java.lang.String,java.lang.String> mappingData)
StreamLink clients supply the username to Liberator in the Liberator login request. In a production system this name would normally be the authenticated username, which typically has been authenticated through a single sign-on facility.
userName
- Name of the user. This is the username that is supplied to a Liberator login request. In a production
system this name would normally be the authenticated username, which typically has been authenticated
through a single sign-on facility.extraDataToSign
- Extra data that KeyMaster will sign within the token.mappingData
- Mapping data will be signed and its values will be available for use in Liberator mappings using
%{key}.public java.lang.String getExtraDataToSign()
IAuthenticationParameters
getExtraDataToSign
in interface IAuthenticationParameters
public void setExtraDataToSign(java.lang.String value)
IAuthenticationParameters
If you have written a custom authentication module then you can use the setExtraDataToSign
to securely
send information from KeyMaster to your authentication module.
Note: If you are using KeyMaster permissioning then you should not set this property.
setExtraDataToSign
in interface IAuthenticationParameters
value
- the extra data to signpublic java.lang.String getLiberatorUsername()
IAuthenticationParameters
This property is used by StreamLink clients to obtain the username that is supplied to a Liberator login request. In a production system this name would normally be the authenticated username, which typically has been authenticated through a single sign-on facility.
This field is used by the
StandardFormatter
.
getLiberatorUsername
in interface IAuthenticationParameters
public void setLiberatorUsername(java.lang.String value)
IAuthenticationParameters
This property is used by StreamLink clients to obtain the username that is supplied to a Liberator login request. In a production system this name would normally be the authenticated username, which typically has been authenticated through a single sign-on facility.
This field is used by the
StandardFormatter
.
setLiberatorUsername
in interface IAuthenticationParameters
value
- the liberator user name.public java.util.Map<java.lang.String,java.lang.String> getMappingData()
IAuthenticationParameters
Mapping data will be signed and its values will be available for use in Liberator mappings using %{key}. Keys may only contain alphanumeric, underscore and full stop characters.
getMappingData
in interface IAuthenticationParameters
public void setMappingData(java.util.Map<java.lang.String,java.lang.String> value)
IAuthenticationParameters
Mapping data will be signed and its values will be available for use in Liberator mappings using %{key}. Keys may only contain alphanumeric, underscore and full stop characters.
setMappingData
in interface IAuthenticationParameters
value
- the mapping data.public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support