- java.lang.Object
-
- java.net.URLStreamHandler
-
- com.ibm.crypto.zsecurity.provider.safkeyring.Handler
-
public class Handler extends java.net.URLStreamHandler
This class is a stream protocol handler that knows how to make a connection for a SAFKeyRing protocol URL.
-
-
Constructor Summary
Constructors Constructor Description Handler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URLConnection
openConnection(java.net.URL u)
Opens a connection to the object referenced by the URL argument.void
parseURL(java.net.URL u, java.lang.String spec, int start, int limit)
Parses the string representation of a URL into a URL object.
-
-
-
Method Detail
-
parseURL
public void parseURL(java.net.URL u, java.lang.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 classjava.net.URLStreamHandler
- Parameters:
u
- the URL to receive the result of parsingspec
- theString
representing the URL to be parsedstart
- the character index at which to begin parsing. This is just past the ':' that specifies the determination of the protocol namelimit
- the character position to stop parsing at
-
openConnection
public java.net.URLConnection openConnection(java.net.URL u)
Opens a connection to the object referenced by the URL argument.- Specified by:
openConnection
in classjava.net.URLStreamHandler
- Parameters:
u
- the URL that this connects to- Returns:
- a
URLConnection
object for theURL
.
-
-