*/
public MessageExtension getMessageExtension(String userId, String profileName)
throws IdentityException {
MessageExtension message = null;
PapeResponse papeResponse = null;
AuthRequest authRequest = null;
try {
authRequest = request.getAuthRequest();
if (authRequest != null) {
message = authRequest.getExtension(PapeMessage.OPENID_NS_PAPE);
if (message instanceof PapeRequest) {
papeResponse = PapeResponse.createPapeResponse();
if (request.isPhishingResistanceLogin()) {
papeResponse.addAuthPolicy(PapeMessage.PAPE_POLICY_PHISHING_RESISTANT);
//papeResponse.setNistAuthLevel(1); TODO
}
if (request.isMultifactorLogin()) {
papeResponse.addAuthPolicy(PapeMessage.PAPE_POLICY_MULTI_FACTOR);
//papeResponse.setNistAuthLevel(2); TODO
}
}
}
} catch (MessageException e) {