@Service @Singleton public final class SecurityMechanismSelector extends Object implements org.glassfish.hk2.api.PostConstruct
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_CONNECTION_CONTEXT |
| Constructor and Description |
|---|
SecurityMechanismSelector()
Read the client and server preferences from the config files.
|
| Modifier and Type | Method and Description |
|---|---|
com.sun.enterprise.common.iiop.security.SecurityContext |
evaluateTrust(com.sun.enterprise.common.iiop.security.SecurityContext ctx,
byte[] object_id,
Socket socket)
Called by the target to interpret client credentials after validation.
|
ConnectionContext |
getClientConnectionContext() |
CSIV2TaggedComponentInfo |
getCtc() |
ORB |
getOrb() |
com.sun.enterprise.common.iiop.security.SecurityContext |
getSecurityContextForAppClient(org.glassfish.api.invocation.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.
|
com.sun.enterprise.common.iiop.security.SecurityContext |
getSecurityContextForWebOrEJB(org.glassfish.api.invocation.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 String |
getSecurityMechanismString(CSIV2TaggedComponentInfo tCI,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech[] list,
String name) |
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.
|
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() |
com.sun.enterprise.common.iiop.security.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(ORB val) |
static boolean |
traceIORs() |
public static final String CLIENT_CONNECTION_CONTEXT
public SecurityMechanismSelector()
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.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 ORB getOrb()
public void setOrb(ORB val)
public CSIV2TaggedComponentInfo getCtc()
public List<com.sun.corba.ee.spi.transport.SocketInfo> getSSLPorts(com.sun.corba.ee.spi.ior.IOR ior, ConnectionContext ctx)
public com.sun.enterprise.common.iiop.security.SecurityContext selectSecurityContext(com.sun.corba.ee.spi.ior.IOR ior)
throws InvalidIdentityTokenException,
InvalidMechanismException,
SecurityMechanismException
public com.sun.enterprise.common.iiop.security.SecurityContext getSecurityContextForAppClient(org.glassfish.api.invocation.ComponentInvocation ci,
boolean sslUsed,
boolean clientAuthOccurred,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mechanism)
throws InvalidMechanismException,
InvalidIdentityTokenException,
SecurityMechanismException
InvalidMechanismExceptionInvalidIdentityTokenExceptionSecurityMechanismExceptionpublic com.sun.enterprise.common.iiop.security.SecurityContext getSecurityContextForWebOrEJB(org.glassfish.api.invocation.ComponentInvocation ci,
boolean sslUsed,
boolean clientAuthOccurred,
com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech mechanism)
throws InvalidMechanismException,
InvalidIdentityTokenException,
SecurityMechanismException
InvalidMechanismExceptionInvalidIdentityTokenExceptionSecurityMechanismExceptionpublic 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
SecurityMechanismExceptionpublic com.sun.enterprise.common.iiop.security.SecurityContext evaluateTrust(com.sun.enterprise.common.iiop.security.SecurityContext ctx,
byte[] object_id,
Socket socket)
throws SecurityMechanismException
SecurityMechanismExceptionpublic boolean isSslRequired()
public static boolean traceIORs()
public String getSecurityMechanismString(CSIV2TaggedComponentInfo tCI, com.sun.corba.ee.spi.ior.IOR ior)
public static String getSecurityMechanismString(CSIV2TaggedComponentInfo tCI, com.sun.corba.ee.org.omg.CSIIOP.CompoundSecMech[] list, String name)
Copyright © 2013. All Rights Reserved.