Tabnine Logo
VerificationException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.keycloak.VerificationException
constructor

Best Java code snippets using org.keycloak.VerificationException.<init> (Showing top 3 results out of 315)

origin: liveoak-io/liveoak

private AccessToken parseToken(String tokenString) throws VerificationException {
  JWSInput input = new JWSInput(tokenString);
  AccessToken token;
  try {
    token = input.readJsonContent(AccessToken.class);
  } catch (IOException e) {
    throw new VerificationException(e);
  }
  PublicKey publicKey;
  try {
    publicKey = config.getPublicKey(token.getAudience());
  } catch (Exception e) {
    throw new VerificationException("Failed to get public key", e);
  }
  boolean verified = false;
  try {
    verified = RSAProvider.verify(input, publicKey);
  } catch (Exception ignore) {
  }
  if (!verified) throw new VerificationException("Token signature not validated");
  if (token.getSubject() == null) {
    throw new VerificationException("Token user was null");
  }
  if (!token.isActive()) {
    throw new VerificationException("Token is not active.");
  }
  return token;
}
origin: eu.agrosense.api/session

throw new VerificationException("Invalid state");
origin: eu.agrosense.api/session

private void parseAccessToken(AccessTokenResponse tokenResponse) throws VerificationException {
  tokenString = tokenResponse.getToken();
  refreshToken = tokenResponse.getRefreshToken();
  idTokenString = tokenResponse.getIdToken();
  token = RSATokenVerifier.verifyToken(tokenString, deployment.getRealmKey(), deployment.getRealm());
  if (idTokenString != null) {
    JWSInput input = new JWSInput(idTokenString);
    try {
      idToken = input.readJsonContent(IDToken.class);
    } catch (IOException e) {
      throw new VerificationException();
    }
  }
}
org.keycloakVerificationException<init>

Popular methods of VerificationException

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • getSupportFragmentManager (FragmentActivity)
    • findViewById (Activity)
    • runOnUiThread (Activity)
    • Arrays (java.util)
      This class contains various methods for manipulating arrays (such as sorting and searching). This cl
    • Calendar (java.util)
      Calendar is an abstract base class for converting between a Date object and a set of integer fields
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    • Base64 (org.apache.commons.codec.binary)
      Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Best IntelliJ plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now