Novell exteNd Messaging Platform 5.2

com.sssw.jbroker.api.security.CSIv2
Interface SecurityCurrent

All Superinterfaces:
Current, CurrentOperations, IDLEntity, Object, SecurityCurrent, Serializable

public interface SecurityCurrent
extends SecurityCurrent

The initial object that provides access to the CSIv2 security APIs.


Method Summary
 IdentityToken createIdentityToken()
          Create an ITTAnonymous Identity Token.
 IdentityToken createIdentityToken(int tokenType, byte[] bytes)
          Create an ITTDistinguishedName, or an ITTX509CertChain Identity Token.
 IdentityToken createIdentityToken(String user, String realm)
          Create an ITTPrincipalName Identity Token.
 InitialContextToken createInitialContextToken(String username, String password, String realm)
          Create a GSSUP Initial Context Token.
 AuthCallback getAuthCallback()
          Get the client side callback for creating a Security Context.
 Authenticator getAuthenticator()
          Get the Authenticator used for authenticating the received Initial Context Tokens.
 SecurityContext getCaller()
          Get the security context of the caller.
 SecurityContext getSecurityContext()
          Get the security context for the current thread.
 SecurityContext getThreadSecurityContext()
          Get the security context for the current thread.
 SecurityContext getThreadSecurityContext(Thread thread)
          Get the security context for the given thread.
 SecurityContext newContext()
          Create a new security context.
 void setAuthCallback(AuthCallback callback)
          Set the client side callback for creating a Security Context.
 void setAuthenticator(Authenticator authenticator)
          Set the Authenticator to use for authenticating the received Initial Context Tokens.
 void setORBContext(SecurityContext context)
          Set the ORB level security context.
 void stackThreadContext(SecurityContext context)
          Set the thread security context.
 void stackThreadContext(SecurityContext context, Thread thread)
          Set the thread security context.
 void unsetORBContext(SecurityContext context)
          Unset the ORB level security context.
 void unstackThreadContext(SecurityContext context)
          Unset the thread security context.
 void unstackThreadContext(SecurityContext context, Thread thread)
          Unset the thread security context.
 
Methods inherited from interface com.sssw.jbroker.api.security.SecurityCurrent
getCertificateChain, getCertificateChain, getInetAddress, getLocalAddress, getLocalPort, getNegotiatedCipherSuite, getNegotiatedCipherSuite, getORBPrincipal, getPort, getPrincipal, getPrincipal, getThreadPrincipal, getThreadPrincipal, setORBPrincipal, stackThreadPrincipal, stackThreadPrincipal, unsetORBPrincipal, unstackThreadPrincipal, unstackThreadPrincipal
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Method Detail

createIdentityToken

public IdentityToken createIdentityToken()
                                  throws SecurityException
Create an ITTAnonymous Identity Token.

Throws:
SecurityException

createIdentityToken

public IdentityToken createIdentityToken(String user,
                                         String realm)
                                  throws SecurityException
Create an ITTPrincipalName Identity Token.

Throws:
SecurityException

createIdentityToken

public IdentityToken createIdentityToken(int tokenType,
                                         byte[] bytes)
                                  throws SecurityException
Create an ITTDistinguishedName, or an ITTX509CertChain Identity Token.

Parameters:
tokenType - IdentityToken.ITTDistinguishedName or IdentityToken.ITTX509CertChain
bytes - if tokenType is ITTDistinguishedName, then ASN.1 encoding of an X.501 distinguished name; Otherwise, ASN.1 encoding of squence of 1 or more X.509 Certificates
Throws:
SecurityException

createInitialContextToken

public InitialContextToken createInitialContextToken(String username,
                                                     String password,
                                                     String realm)
                                              throws SecurityException
Create a GSSUP Initial Context Token.

Throws:
SecurityException

newContext

public SecurityContext newContext()
                           throws SecurityException
Create a new security context.

Throws:
SecurityException

getCaller

public SecurityContext getCaller()
                          throws SecurityException
Get the security context of the caller.

Throws:
SecurityException

setORBContext

public void setORBContext(SecurityContext context)
                   throws SecurityException
Set the ORB level security context.

Throws:
SecurityException

unsetORBContext

public void unsetORBContext(SecurityContext context)
                     throws SecurityException
Unset the ORB level security context.

Throws:
SecurityException

stackThreadContext

public void stackThreadContext(SecurityContext context)
                        throws SecurityException
Set the thread security context. The thread security context overrides the ORB level security context.

Throws:
SecurityException

stackThreadContext

public void stackThreadContext(SecurityContext context,
                               Thread thread)
                        throws SecurityException
Set the thread security context. The thread security context overrides the ORB level security context.

Throws:
SecurityException

unstackThreadContext

public void unstackThreadContext(SecurityContext context)
                          throws SecurityException
Unset the thread security context.

Throws:
SecurityException

unstackThreadContext

public void unstackThreadContext(SecurityContext context,
                                 Thread thread)
                          throws SecurityException
Unset the thread security context.

Throws:
SecurityException

getSecurityContext

public SecurityContext getSecurityContext()
                                   throws SecurityException
Get the security context for the current thread. If there is no security context on the thread, the ORB context is returned.

Throws:
SecurityException

getThreadSecurityContext

public SecurityContext getThreadSecurityContext(Thread thread)
                                         throws SecurityException
Get the security context for the given thread. If there is no security context on the thread, the ORB context is returned.

Throws:
SecurityException

getThreadSecurityContext

public SecurityContext getThreadSecurityContext()
                                         throws SecurityException
Get the security context for the current thread.

Throws:
SecurityException

getAuthenticator

public Authenticator getAuthenticator()
                               throws SecurityException
Get the Authenticator used for authenticating the received Initial Context Tokens.

Throws:
SecurityException

setAuthenticator

public void setAuthenticator(Authenticator authenticator)
                      throws SecurityException
Set the Authenticator to use for authenticating the received Initial Context Tokens.

Throws:
SecurityException

getAuthCallback

public AuthCallback getAuthCallback()
                             throws SecurityException
Get the client side callback for creating a Security Context.

Throws:
SecurityException

setAuthCallback

public void setAuthCallback(AuthCallback callback)
                     throws SecurityException
Set the client side callback for creating a Security Context.

Throws:
SecurityException

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.