This is the method to retrieve a SecContext object that uses the specified callback handler and the properties specified in this factory object.
Syntax
synchronized SecContext
newContext
(
CallbackHandler
ch
) throws SecException
Parameters
-
ch –
The callback handler to use when authenticating the context.
Exceptions
-
SecException class –
if an error occurs while creating the security context