java.lang.Object
java.net.URLStreamHandler
com.ibm.crypto.zsecurity.provider.safkeyring.Handler

public class Handler extends URLStreamHandler
This class is a stream protocol handler that knows how to make a connection for a SAFKeyRing protocol URL.
  • Constructor Details

    • Handler

      public Handler()
  • Method Details

    • parseURL

      public void parseURL(URL u, String spec, int start, int limit)
      Parses the string representation of a URL into a URL object. If there is any inherited context, then it has already been copied into the URL argument. This method parses the string representation as if it were a safkeyring specification.
      Overrides:
      parseURL in class URLStreamHandler
      Parameters:
      u - the URL to receive the result of parsing
      spec - the String representing the URL to be parsed
      start - the character index at which to begin parsing. This is just past the ':' that specifies the determination of the protocol name
      limit - the character position to stop parsing at
    • openConnection

      public URLConnection openConnection(URL u)
      Opens a connection to the object referenced by the URL argument.
      Specified by:
      openConnection in class URLStreamHandler
      Parameters:
      u - the URL that this connects to
      Returns:
      a URLConnection object for the URL.