Advertisement
ILyaCyclone

decompiled oracle.jdbc.OracleDriver

Nov 22nd, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. //
  2. // Source code recreated from a .class file by IntelliJ IDEA
  3. // (powered by Fernflower decompiler)
  4. //
  5.  
  6. package oracle.jdbc;
  7.  
  8. import java.io.ByteArrayOutputStream;
  9. import javax.crypto.Cipher;
  10. import oracle.jdbc.driver.BuildInfo;
  11. import oracle.jdbc.logging.annotations.DefaultLogger;
  12. import oracle.jdbc.logging.annotations.Feature;
  13. import oracle.jdbc.logging.annotations.Supports;
  14.  
  15. @Supports({Feature.METADATA})
  16. @DefaultLogger("oracle.jdbc")
  17. public class OracleDriver extends oracle.jdbc.driver.OracleDriver {
  18. public OracleDriver() {
  19. }
  20.  
  21. public static final boolean isDMS() {
  22. return BuildInfo.isDMS();
  23. }
  24.  
  25. public static final boolean isInServer() {
  26. return BuildInfo.isInServer();
  27. }
  28.  
  29. /** @deprecated */
  30. public static final boolean isJDK14() {
  31. return BuildInfo.isJDK14();
  32. }
  33.  
  34. public static final boolean isDebug() {
  35. return BuildInfo.isDebug();
  36. }
  37.  
  38. public static final boolean isPrivateDebug() {
  39. return BuildInfo.isPrivateDebug();
  40. }
  41.  
  42. public static final String getJDBCVersion() {
  43. return BuildInfo.getJDBCVersion();
  44. }
  45.  
  46. public static final String getDriverVersion() {
  47. return BuildInfo.getDriverVersion();
  48. }
  49.  
  50. public static final String getBuildDate() {
  51. return BuildInfo.getBuildDate();
  52. }
  53.  
  54. public static void main(String[] var0) throws Exception {
  55. System.out.println("Oracle " + getDriverVersion() + " " + getJDBCVersion() + (isDMS() ? " DMS" : "") + (isPrivateDebug() ? " private" : "") + (isDebug() ? " debug" : "") + (isInServer() ? " for JAVAVM" : "") + " compiled with " + BuildInfo.getCompilerVersion() + " on " + getBuildDate());
  56. ByteArrayOutputStream var1 = new ByteArrayOutputStream(128);
  57. DEFAULT_CONNECTION_PROPERTIES.store(var1, "Default Connection Properties Resource");
  58. System.out.println(var1.toString("ISO-8859-1"));
  59. int var2 = Cipher.getMaxAllowedKeyLength("AES");
  60. if (var2 < 256) {
  61. System.out.println("***** JCE UNLIMITED STRENGTH NOT INSTALLED ****");
  62. } else {
  63. System.out.println("***** JCE UNLIMITED STRENGTH IS INSTALLED ****");
  64. }
  65.  
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement