com.sun.enterprise.iiop.security
Class CSIV2TaggedComponentInfo

java.lang.Object
  extended by com.sun.enterprise.iiop.security.CSIV2TaggedComponentInfo

public final class CSIV2TaggedComponentInfo
extends java.lang.Object

This is the class that manages the CSIV2 tagged component information in the IORs. Note: For supporting FLOB in a cluster/EE mode we need to register the CSIV2TaggedComponentHandlerImpl with the GlassFishORBManager.

Author:
Vivek Nagar, Harpreet Singh, Ken Cavanaugh

Field Summary
static int SUPPORTED_IDENTITY_TOKEN_TYPES
           
 
Constructor Summary
CSIV2TaggedComponentInfo(org.omg.CORBA.ORB orb, org.jvnet.hk2.component.Habitat habitat)
           
CSIV2TaggedComponentInfo(org.omg.CORBA.ORB orb, int sslMutualAuthPort, org.jvnet.hk2.component.Habitat habitat)
           
 
Method Summary
 boolean allMechanismsRequireSSL(java.util.Set iorDescSet)
          This method determines if all the mechanisms defined in the CSIV2 CompoundSecMechList structure require protected invocations.
 com.sun.corba.ee.org.omg.CSIIOP.AS_ContextSec createASContextSec(EjbIORConfigurationDescriptor iorDesc, java.lang.String realmName)
          Create the AS layer context within a compound mechanism definition.
 com.sun.corba.ee.org.omg.CSIIOP.SAS_ContextSec createSASContextSec(EjbIORConfigurationDescriptor iorDesc)
          Create the SAS layer context within a compound mechanism definition.
 org.omg.IOP.TaggedComponent createSecurityTaggedComponent(int sslPort)
          This method is called on the server side for all non-EJB POAs.
 org.omg.IOP.TaggedComponent createSecurityTaggedComponent(int sslPort, EjbDescriptor desc)
          Create the security mechanism list tagged component based on the deployer specified configuration information.
 org.omg.IOP.TaggedComponent createSecurityTaggedComponent(java.util.List<com.sun.corba.ee.spi.folb.SocketInfo> socketInfos, EjbDescriptor desc)
          Create the CSIv2 tagged component for a clustered app server.
 EjbDescriptor getEjbDescriptor(org.omg.PortableInterceptor.IORInfo iorInfo)
           
 com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech[] getSecurityMechanisms(com.sun.corba.ee.spi.ior.IOR ior)
          Get the Compound security mechanism list from the given IOR.
 com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS getSSLInformation(com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mech)
          Retrieve the SSL tagged component from the compound security mechanism.
 int getTargetRequires(EjbIORConfigurationDescriptor iorDesc)
          Get the value of target_requires for the transport layer.
 int getTargetSupports(EjbIORConfigurationDescriptor iorDesc)
          Get the value of target_supports for the transport layer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUPPORTED_IDENTITY_TOKEN_TYPES

public static final int SUPPORTED_IDENTITY_TOKEN_TYPES
See Also:
Constant Field Values
Constructor Detail

CSIV2TaggedComponentInfo

public CSIV2TaggedComponentInfo(org.omg.CORBA.ORB orb,
                                org.jvnet.hk2.component.Habitat habitat)

CSIV2TaggedComponentInfo

public CSIV2TaggedComponentInfo(org.omg.CORBA.ORB orb,
                                int sslMutualAuthPort,
                                org.jvnet.hk2.component.Habitat habitat)
Method Detail

getEjbDescriptor

public EjbDescriptor getEjbDescriptor(org.omg.PortableInterceptor.IORInfo iorInfo)

createSecurityTaggedComponent

public org.omg.IOP.TaggedComponent createSecurityTaggedComponent(int sslPort,
                                                                 EjbDescriptor desc)
Create the security mechanism list tagged component based on the deployer specified configuration information. This method is on the server side for all ejbs in the non-cluster app server case.


createSecurityTaggedComponent

public org.omg.IOP.TaggedComponent createSecurityTaggedComponent(java.util.List<com.sun.corba.ee.spi.folb.SocketInfo> socketInfos,
                                                                 EjbDescriptor desc)
Create the CSIv2 tagged component for a clustered app server.


createSecurityTaggedComponent

public org.omg.IOP.TaggedComponent createSecurityTaggedComponent(int sslPort)
This method is called on the server side for all non-EJB POAs.


createASContextSec

public com.sun.corba.ee.org.omg.CSIIOP.AS_ContextSec createASContextSec(EjbIORConfigurationDescriptor iorDesc,
                                                                        java.lang.String realmName)
                                                                 throws java.io.IOException
Create the AS layer context within a compound mechanism definition.

Throws:
java.io.IOException

createSASContextSec

public com.sun.corba.ee.org.omg.CSIIOP.SAS_ContextSec createSASContextSec(EjbIORConfigurationDescriptor iorDesc)
                                                                   throws java.io.IOException
Create the SAS layer context within a compound mechanism definition.

Throws:
java.io.IOException

getTargetSupports

public int getTargetSupports(EjbIORConfigurationDescriptor iorDesc)
Get the value of target_supports for the transport layer.


getTargetRequires

public int getTargetRequires(EjbIORConfigurationDescriptor iorDesc)
Get the value of target_requires for the transport layer.


allMechanismsRequireSSL

public boolean allMechanismsRequireSSL(java.util.Set iorDescSet)
This method determines if all the mechanisms defined in the CSIV2 CompoundSecMechList structure require protected invocations.


getSecurityMechanisms

public com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech[] getSecurityMechanisms(com.sun.corba.ee.spi.ior.IOR ior)
Get the Compound security mechanism list from the given IOR.

Parameters:
the - IOR.
Returns:
the array of compound security mechanisms.

getSSLInformation

public com.sun.corba.ee.org.omg.CSIIOP.TLS_SEC_TRANS getSSLInformation(com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mech)
Retrieve the SSL tagged component from the compound security mechanism.



Copyright © 2012 GlassFish Community. All Rights Reserved.