|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.enterprise.iiop.security.SecurityMechanismSelector
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) public final class SecurityMechanismSelector
This class is responsible for making various decisions for selecting security information to be sent in the IIOP message based on target configuration and client policies. Note: This class can be called concurrently by multiple client threads. However, none of its methods need to be synchronized because the methods either do not modify state or are idempotent.
| Field Summary | |
|---|---|
static java.lang.String |
CLIENT_CONNECTION_CONTEXT
|
| Constructor Summary | |
|---|---|
SecurityMechanismSelector()
Read the client and server preferences from the config files. |
|
| Method Summary | |
|---|---|
SecurityContext |
evaluateTrust(SecurityContext ctx,
byte[] object_id,
java.net.Socket socket)
Called by the target to interpret client credentials after validation. |
ConnectionContext |
getClientConnectionContext()
|
CSIV2TaggedComponentInfo |
getCtc()
|
org.omg.CORBA.ORB |
getOrb()
|
SecurityContext |
getSecurityContextForAppClient(ComponentInvocation ci,
boolean sslUsed,
boolean clientAuthOccurred,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mechanism)
Create the security context to be used by the CSIV2 layer to marshal in the service context of the IIOP message from an appclient or standalone client. |
SecurityContext |
getSecurityContextForWebOrEJB(ComponentInvocation ci,
boolean sslUsed,
boolean clientAuthOccurred,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mechanism)
Create the security context to be used by the CSIV2 layer to marshal in the service context of the IIOP message from an web component or EJB invoking another EJB. |
static java.lang.String |
getSecurityMechanismString(CSIV2TaggedComponentInfo tCI,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech[] list,
java.lang.String name)
|
java.lang.String |
getSecurityMechanismString(CSIV2TaggedComponentInfo tCI,
com.sun.corba.ee.spi.ior.IOR ior)
|
com.sun.corba.ee.spi.transport.SocketInfo |
getSSLPort(com.sun.corba.ee.spi.ior.IOR ior,
ConnectionContext ctx)
This method determines if SSL should be used to connect to the target based on client and target policies. |
java.util.List<com.sun.corba.ee.spi.transport.SocketInfo> |
getSSLPorts(com.sun.corba.ee.spi.ior.IOR ior,
ConnectionContext ctx)
|
boolean |
isIdentityTypeSupported(com.sun.corba.ee.org.omg.CSIIOP.SAS_ContextSec sas)
|
boolean |
isSslRequired()
|
void |
postConstruct()
|
SecurityContext |
selectSecurityContext(com.sun.corba.ee.spi.ior.IOR ior)
Select the security context to be used by the CSIV2 layer based on whether the current component is an application client or a web/EJB component. |
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech |
selectSecurityMechanism(com.sun.corba.ee.spi.ior.IOR ior)
|
void |
setClientConnectionContext(ConnectionContext scc)
|
void |
setOrb(org.omg.CORBA.ORB val)
|
static boolean |
traceIORs()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLIENT_CONNECTION_CONTEXT
| Constructor Detail |
|---|
public SecurityMechanismSelector()
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstructpublic ConnectionContext getClientConnectionContext()
public void setClientConnectionContext(ConnectionContext scc)
public com.sun.corba.ee.spi.transport.SocketInfo getSSLPort(com.sun.corba.ee.spi.ior.IOR ior,
ConnectionContext ctx)
public org.omg.CORBA.ORB getOrb()
public void setOrb(org.omg.CORBA.ORB val)
public CSIV2TaggedComponentInfo getCtc()
public java.util.List<com.sun.corba.ee.spi.transport.SocketInfo> getSSLPorts(com.sun.corba.ee.spi.ior.IOR ior,
ConnectionContext ctx)
public SecurityContext selectSecurityContext(com.sun.corba.ee.spi.ior.IOR ior)
throws InvalidIdentityTokenException,
InvalidMechanismException,
SecurityMechanismException
InvalidIdentityTokenException
InvalidMechanismException
SecurityMechanismException
public SecurityContext getSecurityContextForAppClient(ComponentInvocation ci,
boolean sslUsed,
boolean clientAuthOccurred,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mechanism)
throws InvalidMechanismException,
InvalidIdentityTokenException,
SecurityMechanismException
InvalidMechanismException
InvalidIdentityTokenException
SecurityMechanismException
public SecurityContext getSecurityContextForWebOrEJB(ComponentInvocation ci,
boolean sslUsed,
boolean clientAuthOccurred,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mechanism)
throws InvalidMechanismException,
InvalidIdentityTokenException,
SecurityMechanismException
InvalidMechanismException
InvalidIdentityTokenException
SecurityMechanismExceptionpublic boolean isIdentityTypeSupported(com.sun.corba.ee.org.omg.CSIIOP.SAS_ContextSec sas)
public com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech selectSecurityMechanism(com.sun.corba.ee.spi.ior.IOR ior)
throws SecurityMechanismException
SecurityMechanismException
public SecurityContext evaluateTrust(SecurityContext ctx,
byte[] object_id,
java.net.Socket socket)
throws SecurityMechanismException
SecurityMechanismExceptionpublic boolean isSslRequired()
public static boolean traceIORs()
public java.lang.String getSecurityMechanismString(CSIV2TaggedComponentInfo tCI,
com.sun.corba.ee.spi.ior.IOR ior)
public static java.lang.String getSecurityMechanismString(CSIV2TaggedComponentInfo tCI,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech[] list,
java.lang.String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||