java.lang.Object
java.net.URLStreamHandler
com.ibm.crypto.zsecurity.provider.safkeyring.Handler
This class is a stream protocol handler that knows how to make a
connection for a SAFKeyRing protocol URL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOpens a connection to the object referenced by the URL argument.void
Parses the string representation of a URL into a URL object.Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, sameFile, setURL, setURL, toExternalForm
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
parseURL
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 classURLStreamHandler
- 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
Opens a connection to the object referenced by the URL argument.- Specified by:
openConnection
in classURLStreamHandler
- Parameters:
u
- the URL that this connects to- Returns:
- a
URLConnection
object for theURL
.
-