Examples of PapeResponse


Examples of org.openid4java.message.pape.PapeResponse

   * @throws RelyingPartyException
   */
  public void setSessionAttributes(List<ClaimDTO> claimList) throws IdentityException {
    try {

      PapeResponse papeResponse = null;

      if (authSuccess.hasExtension(PapeResponse.OPENID_NS_PAPE)) {
        papeResponse = (PapeResponse) authSuccess.getExtension(PapeResponse.OPENID_NS_PAPE);
        if (papeResponse != null) {
          //TODO
View Full Code Here

Examples of org.openid4java.message.pape.PapeResponse

   */
  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) {
View Full Code Here

Examples of org.openid4java.message.pape.PapeResponse

    final Message authRsp = result.getAuthResponse();
    SRegResponse sregRsp = null;
    FetchResponse fetchRsp = null;

    if (0 <= papeMaxAuthAge) {
      PapeResponse ext;
      boolean unsupported = false;

      try {
        ext = (PapeResponse) authRsp.getExtension(PapeMessage.OPENID_NS_PAPE);
      } catch (MessageException err) {
View Full Code Here

Examples of org.owasp.webscarab.plugin.openid.PAPEResponse

    private void displayOpenID(ConversationID id) {
        resetDisplay();
        this.parametersTableModel.setParameters(this.openIdModel.getParameters(id));
        this.axFetchRequestTableModel.setAttributes(this.openIdModel.getAXFetchRequestAttributes(id));
        this.axFetchResponseTableModel.setAttributes(this.openIdModel.getAXFetchResponseAttributes(id));
        PAPEResponse papeResponse = this.openIdModel.getPAPEResponse(id);
        if (null != papeResponse) {
            if (null != papeResponse.getAuthenticationTime()) {
                this.papeAuthnTimeLabel.setText(papeResponse.getAuthenticationTime().toString());
            } else {
                this.papeAuthnTimeLabel.setText("Not provided.");
            }
            this.phishingResistantCheckBox.setSelected(papeResponse.isPhishingResistant());
            this.multiFactorCheckBox.setSelected(papeResponse.isMultiFactor());
            this.physicalMultiFactorCheckBox.setSelected(papeResponse.isMultiFactorPhysical());
            this.papeSignedCheckBox.setSelected(papeResponse.isSigned());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.