Examples of VerificationException


Examples of org.keycloak.VerificationException

        return getPublicKey(client, SamlProtocol.SAML_ENCRYPTION_CERTIFICATE_ATTRIBUTE);
    }

    public static PublicKey getPublicKey(ClientModel client, String attribute) throws VerificationException {
        String certPem = client.getAttribute(attribute);
        if (certPem == null) throw new VerificationException("Client does not have a public key.");
        Certificate cert = null;
        try {
            cert = PemUtils.decodeCertificate(certPem);
        } catch (Exception e) {
            throw new VerificationException("Could not decode cert", e);
        }
        return cert.getPublicKey();
    }
View Full Code Here

Examples of org.keycloak.VerificationException

            if (idTokenString != null && idTokenString.length() > 0) {
                JWSInput input = new JWSInput(idTokenString);
                try {
                    idToken = input.readJsonContent(IDToken.class);
                } catch (IOException e) {
                    throw new VerificationException(e);
                }
            } else {
                idToken = null;
            }
View Full Code Here

Examples of org.openiaml.verification.nusmv.VerificationException

      // now put into an InputStream
      return resolved.openStream();
     
    } catch (IOException e) {
      throw new VerificationException(e);
    }

  }
View Full Code Here

Examples of org.openiaml.verification.nusmv.VerificationException

      File modelFile;
      try {
        monitor.subTask("Exporting model to XMI");
        modelFile = saveToFile(model, "test.iaml");
      } catch (IOException e1) {
        throw new VerificationException(e1);
      }
      monitor.worked(1);
     
      // now generate it
      monitor.subTask("Generating SMV template using OAW");
      IStatus status = gen.generateCode(modelFile, getWorkflowFile());
      if (!status.isOK()) {
        throw new VerificationException("Generation was not successful: " + status.getMessage(), status.getException());
      }
      monitor.worked(2);
     
      // load the file we wrote
      monitor.subTask("Loading generated template");
      File output = new File(getOutputFile());   
      if (!output.exists()) {
        throw new VerificationException("File '" + output + "' does not exist.");
      }
     
      // open it as an input stream
      try {
        return new BufferedInputStream(new FileInputStream(output));
      } catch (FileNotFoundException e) {
        throw new VerificationException(e);
      }
     
    } finally {
      monitor.done();
    }
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.