* @throws RelyingPartyException
*/
public MessageExtension getMessageExtension(OpenIDAuthenticationRequest request)
throws IdentityException {
PapeRequest papeReq = null;
papeReq = PapeRequest.createPapeRequest();
for (AuthPolicyType authType : request.getAuthTypes()) {
switch (authType) {
case PAPE_POLICY_MULTI_FACTOR :
papeReq.addPreferredAuthPolicy(PapeMessage.PAPE_POLICY_MULTI_FACTOR);
break;
case PAPE_POLICY_MULTI_FACTOR_PHYSICAL :
papeReq.addPreferredAuthPolicy(PapeMessage.PAPE_POLICY_MULTI_FACTOR_PHYSICAL);
break;
case PAPE_POLICY_PHISHING_RESISTANT :
papeReq.addPreferredAuthPolicy(PapeMessage.PAPE_POLICY_PHISHING_RESISTANT);
break;
default :
break;
}
}