Package com.sun.enterprise.iiop.security
Class CSIV2TaggedComponentInfo
- java.lang.Object
-
- com.sun.enterprise.iiop.security.CSIV2TaggedComponentInfo
-
public final class CSIV2TaggedComponentInfo extends 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
Fields Modifier and Type Field Description static int
SUPPORTED_IDENTITY_TOKEN_TYPES
-
Constructor Summary
Constructors Constructor Description CSIV2TaggedComponentInfo(org.omg.CORBA.ORB orb)
CSIV2TaggedComponentInfo(org.omg.CORBA.ORB orb, int sslMutualAuthPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allMechanismsRequireSSL(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 iorDescriptor, String realmName)
Create the AS layer context within a compound mechanism definition.com.sun.corba.ee.org.omg.CSIIOP.SAS_ContextSec
createSASContextSec(EjbIORConfigurationDescriptor iorDescriptor)
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 ejbDescriptor)
Create the security mechanism list tagged component based on the deployer specified configuration information.org.omg.IOP.TaggedComponent
createSecurityTaggedComponent(List<com.sun.corba.ee.spi.folb.SocketInfo> socketInfos, EjbDescriptor ejbDescriptor)
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 iorDescriptor)
Get the value of target_requires for the transport layer.int
getTargetSupports(EjbIORConfigurationDescriptor iorDescriptor)
Get the value of target_supports for the transport layer.
-
-
-
Field Detail
-
SUPPORTED_IDENTITY_TOKEN_TYPES
public static final int SUPPORTED_IDENTITY_TOKEN_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEjbDescriptor
public EjbDescriptor getEjbDescriptor(org.omg.PortableInterceptor.IORInfo iorInfo)
-
createSecurityTaggedComponent
public org.omg.IOP.TaggedComponent createSecurityTaggedComponent(int sslPort, EjbDescriptor ejbDescriptor)
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(List<com.sun.corba.ee.spi.folb.SocketInfo> socketInfos, EjbDescriptor ejbDescriptor)
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 iorDescriptor, String realmName) throws GSSException
Create the AS layer context within a compound mechanism definition.- Throws:
GSSException
-
createSASContextSec
public com.sun.corba.ee.org.omg.CSIIOP.SAS_ContextSec createSASContextSec(EjbIORConfigurationDescriptor iorDescriptor) throws GSSException
Create the SAS layer context within a compound mechanism definition.- Throws:
GSSException
-
getTargetSupports
public int getTargetSupports(EjbIORConfigurationDescriptor iorDescriptor)
Get the value of target_supports for the transport layer.
-
getTargetRequires
public int getTargetRequires(EjbIORConfigurationDescriptor iorDescriptor)
Get the value of target_requires for the transport layer.
-
allMechanismsRequireSSL
public boolean allMechanismsRequireSSL(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.
-
-