Codota Logo
VerificationException
Code IndexAdd Codota to your IDE (free)

How to use
VerificationException
in
org.keycloak

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
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

Most used methods

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • Menu (java.awt)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ImageIO (javax.imageio)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now