public class ChallengeResponseManager
extends java.lang.Object
| Constructor and Description |
|---|
ChallengeResponseManager(PlatformContext platform,
javax.security.auth.Subject subject)
Constructs the manager with a platform context and a subject.
|
| Modifier and Type | Method and Description |
|---|---|
ChallengeResponseConfiguration |
getChallengeResonseConfiguration()
Gets the ChallengeResonseConfiguration for the subject.
|
ChallengeResponseConfiguration |
getChallengeResonseConfiguration(java.util.Locale locale)
Gets the ChallengeResponseConfiguration for the subject.
|
ChallengesAndResponses |
getChallengesAndResponses()
Returns the challenges that are configured for the user.
|
boolean |
isEnforceChallengeResponse()
Returns true if Challenge/Response is enforced (enabled).
|
void |
setChallengesAndResponses(ChallengesAndResponses cAndr)
Sets the challenges and responses for the subject as specified
in the Map.
|
void |
setChallengesAndResponses(ChallengesAndResponses cAndr,
java.util.Locale locale)
Sets the challenges and responses for the subject as specified
in the Map.
|
public ChallengeResponseManager(PlatformContext platform, javax.security.auth.Subject subject)
platform - PlatformContext holding platform connection information.subject - Subject representing the authenticated caller.public ChallengeResponseConfiguration getChallengeResonseConfiguration() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with the platform.ApplicationException - Thrown if an application-level exception
prevents returning a ChallengeResponseConfigurationpublic ChallengeResponseConfiguration getChallengeResonseConfiguration(java.util.Locale locale) throws java.rmi.RemoteException, ApplicationException
locale - Locale for which to return a ChallengeResponseConfigurationjava.rmi.RemoteException - Thrown if unable to communicate with the platform.ApplicationException - Thrown if an application-level exception
prevents returning a ChallengeResponseConfigurationpublic ChallengesAndResponses getChallengesAndResponses() throws java.rmi.RemoteException, ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with the platform.ApplicationException - Thrown if an application-level exception
prevents returning a ChallengeResponseConfigurationpublic void setChallengesAndResponses(ChallengesAndResponses cAndr) throws java.rmi.RemoteException, ApplicationException
cAndr - ChallengesAndResponses containing the
challenges and responses for the subject.java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if challenge response is
not enabled for the user.public void setChallengesAndResponses(ChallengesAndResponses cAndr, java.util.Locale locale) throws java.rmi.RemoteException, ApplicationException
cAndr - ChallengesAndResponses containing the
challenges and responses for the subject.locale - user localejava.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if challenge response is
not enabled for the user.public boolean isEnforceChallengeResponse()
throws ApplicationException
ApplicationException - Thrown if an application-level error
occurs.