Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.security.SSL.jsseadapter
Class PEMInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by weblogic.security.SSL.jsseadapter.PEMInputStream

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
PEMInputStream

Deprecated. 12.1.2.0

public class PEMInputStream
extends FilterInputStream

This class is here as implementation for the legacy public class weblogic.security.PEMInputStream, which is now deprecated. The original class simply served up the base64-decoded bytes of the PEM data it was given, dropping the PEM headers, if any, in the process. While the Certicom SSL stack could handle this (albeit in a rather fragile way, by trying various decode strategies in turn until one worked), our JSSE implementation can't. It looks for PEM headers, assumes specific DER encoding if no headers are found, and fails is neither of those work. While it might be possible to duplicate the Certicom logic in our JSSE code, and such a strategy would provide backward-compatible behavior, it would also introduce significant logic changes that could break other use cases, and support for arbitrary PEM data in the absence of accompanying headers is not a strategically important use case. So, we'll make PEMInputStream preserve the header information instead. Note: SSLClientInfo uses InputStreamsCloner to manage IS's for input keys and certs, so InputStreamCloner must be modified to preserve PEMInputStream's type and the additional data it carries, handing back an actual PEMInputStream instance when cloning it. Lastly, we will replace the base64 decoding logic here with utility code from the JSSE adapter.


Field Summary

 

Fields inherited from class java.io.FilterInputStream
in

 

Method Summary

 

Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 


Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09