|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.enterprise.iiop.security.SecurityContextUtil
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) public class SecurityContextUtil
This class provides has the helper methods to deal with the SecurityContext .This represents the SecurityServiceImpl of V2
| Field Summary | |
|---|---|
static int |
STATUS_FAILED
|
static int |
STATUS_PASSED
|
static int |
STATUS_RETRY
|
| Constructor Summary | |
|---|---|
SecurityContextUtil()
|
|
| Method Summary | |
|---|---|
SecurityContext |
getSecurityContext(org.omg.CORBA.Object effective_target)
This is called by the CSIv2 interceptor on the client before sending the IIOP message. |
void |
postConstruct()
|
static void |
receivedReply(int reply_status,
org.omg.CORBA.Object effective_target)
This is called by the CSIv2 interceptor on the client after a reply is received. |
void |
sendingReply(SecurityContext context)
This is called by the CSIv2 interceptor on the server before sending the reply. |
int |
setSecurityContext(SecurityContext context,
byte[] object_id,
java.lang.String method,
java.net.Socket socket)
This is called by the CSIv2 interceptor on the server after receiving the IIOP message. |
static void |
unsetSecurityContext(boolean isLocal)
This is called on the server to unset the security context this is introduced to prevent the re-use of the thread security context on re-use of the thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_PASSED
public static final int STATUS_FAILED
public static final int STATUS_RETRY
| Constructor Detail |
|---|
public SecurityContextUtil()
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstruct
public SecurityContext getSecurityContext(org.omg.CORBA.Object effective_target)
throws InvalidMechanismException,
InvalidIdentityTokenException
the - effective_target field of the PortableInterceptor
ClientRequestInfo object.
InvalidMechanismException
InvalidIdentityTokenException
public static void receivedReply(int reply_status,
org.omg.CORBA.Object effective_target)
the - reply status from the call. The reply status field
could indicate an authentication retry.
The following is the mapping of PI status to the reply_status field
PortableInterceptor::SUCCESSFUL -> STATUS_PASSED
PortableInterceptor::SYSTEM_EXCEPTION -> STATUS_FAILED
PortableInterceptor::USER_EXCEPTION -> STATUS_PASSED
PortableInterceptor::LOCATION_FORWARD -> STATUS_RETRY
PortableInterceptor::TRANSPORT_RETRY -> STATUS_RETRYthe - effective_target field of the PI ClientRequestInfo object.
public int setSecurityContext(SecurityContext context,
byte[] object_id,
java.lang.String method,
java.net.Socket socket)
the - SecurityContext which arrived in the IIOP message.
public void sendingReply(SecurityContext context)
the - SecurityContext which arrived in the IIOP message.public static void unsetSecurityContext(boolean isLocal)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||