Tabnine Logo
InvalidKeyException.getLocalizedMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocalizedMessage
method
in
java.security.InvalidKeyException

Best Java code snippets using java.security.InvalidKeyException.getLocalizedMessage (Showing top 16 results out of 315)

origin: resteasy/Resteasy

throw new RuntimeException(Messages.MESSAGES.invalidHMACkey(e.getLocalizedMessage()), e);
origin: wildfly/wildfly-core

} catch (InvalidKeyException e) {
  throw new RuntimeException(e.getLocalizedMessage());
origin: org.wildfly.core/wildfly-host-controller

} catch (InvalidKeyException e) {
  throw new RuntimeException(e.getLocalizedMessage());
origin: org.jboss.resteasy/jose-jwt

throw new RuntimeException(Messages.MESSAGES.invalidHMACkey(e.getLocalizedMessage()), e);
origin: cogroo/cogroo4

} catch (InvalidKeyException ex) {
  LOG.log(Level.SEVERE, "InvalidKeyException should not happen.", ex);
  throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
} catch (com.sun.star.uno.Exception  ex) {
  LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex);
origin: org.cogroo.lang.pt_br/cogroo-addon-pt_br

} catch (InvalidKeyException ex) {
  LOG.log(Level.SEVERE, "InvalidKeyException should not happen.", ex);
  throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
} catch (com.sun.star.uno.Exception  ex) {
  LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex);
origin: org.tmatesoft.svnkit/svnkit

private Cipher getCipher(byte[] key) throws SVNException {
  try {
    final Cipher ecipher = Cipher.getInstance("DES/ECB/NoPadding");
    key = setupKey(key);
    ecipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "DES"));
    return ecipher;
  } catch (NoSuchAlgorithmException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "DES encryption is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  } catch (InvalidKeyException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Invalid key for DES encryption: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  } catch (NoSuchPaddingException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "NoPadding option for DES is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  }
  return null;
}

origin: cogroo/cogroo4

  throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
} catch (com.sun.star.uno.Exception  ex) {
  LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex);
origin: org.cogroo.lang.pt_br/cogroo-addon-pt_br

  throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
} catch (com.sun.star.uno.Exception  ex) {
  LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex);
origin: org.tmatesoft/svn

private Cipher getCipher(byte[] key) throws SVNException {
  try {
    final Cipher ecipher = Cipher.getInstance("DES/ECB/NoPadding");
    key = setupKey(key);
    ecipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "DES"));
    return ecipher;
  } catch (NoSuchAlgorithmException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "DES encryption is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err);
  } catch (InvalidKeyException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Invalid key for DES encryption: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err);
  } catch (NoSuchPaddingException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "NoPadding option for DES is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err);
  }
  return null;
}
 
origin: org.codehaus.jtstand/jtstand-svnkit

private Cipher getCipher(byte[] key) throws SVNException {
  try {
    final Cipher ecipher = Cipher.getInstance("DES/ECB/NoPadding");
    key = setupKey(key);
    ecipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "DES"));
    return ecipher;
  } catch (NoSuchAlgorithmException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "DES encryption is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  } catch (InvalidKeyException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Invalid key for DES encryption: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  } catch (NoSuchPaddingException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "NoPadding option for DES is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  }
  return null;
}

origin: org.jvnet.hudson.svnkit/svnkit

private Cipher getCipher(byte[] key) throws SVNException {
  try {
    final Cipher ecipher = Cipher.getInstance("DES/ECB/NoPadding");
    key = setupKey(key);
    ecipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "DES"));
    return ecipher;
  } catch (NoSuchAlgorithmException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "DES encryption is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  } catch (InvalidKeyException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Invalid key for DES encryption: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  } catch (NoSuchPaddingException e) {
    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "NoPadding option for DES is not available: {0}", e.getLocalizedMessage());
    SVNErrorManager.error(err, SVNLogType.NETWORK);
  }
  return null;
}

origin: cogroo/cogroo4

} catch (InvalidKeyException ex) {
  LOG.log(Level.SEVERE, "InvalidKeyException should not happen.", ex);
  throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
} catch (com.sun.star.uno.Exception  ex) {
  LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex);
origin: org.cogroo.lang.pt_br/cogroo-addon-pt_br

} catch (InvalidKeyException ex) {
  LOG.log(Level.SEVERE, "InvalidKeyException should not happen.", ex);
  throw new CogrooException(CogrooExceptionMessages.INTERNAL_ERROR, new String[]{ex.getLocalizedMessage()}, ex);
} catch (com.sun.star.uno.Exception  ex) {
  LOG.log(Level.SEVERE, "UNO Exception should not happen.", ex);
origin: com.auth0/auth0-spring-mvc

  onSuccess(req, res, next, auth0User);
} catch (InvalidKeyException e) {
  throw new Auth0Exception("InvalidKeyException thrown while decoding JWT token " + e.getLocalizedMessage());
} catch (NoSuchAlgorithmException e) {
  throw new Auth0Exception("NoSuchAlgorithmException thrown while decoding JWT token " + e.getLocalizedMessage());
origin: cloudant/sync-android

  throw new DPKException("Failed to encrypt DPK.  Cause: " + e.getLocalizedMessage(), e);
} catch (NoSuchPaddingException e) {
  throw new DPKException("Failed to encrypt DPK.  Cause: " + e.getLocalizedMessage(), e);
java.securityInvalidKeyExceptiongetLocalizedMessage

Popular methods of InvalidKeyException

  • <init>
    Constructs a new instance of InvalidKeyException with the cause.
  • getMessage
  • printStackTrace
  • toString
  • initCause
  • getStackTrace
  • setStackTrace
  • getCause
  • addSuppressed
  • fillInStackTrace

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Vim 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