1 26 package org.objectweb.jonas.security.interceptors.jrmp; 27 28 import org.objectweb.carol.rmi.jrmp.interceptor.JServiceContext; 30 import org.objectweb.security.context.SecurityContext; 31 32 38 public class SecurityServiceContext implements JServiceContext { 39 40 43 private int context_id; 44 45 48 public int getContextId() { 49 return context_id; 50 } 51 52 55 SecurityContext sctx = null; 56 57 60 public SecurityServiceContext() { 61 this.context_id = ServerSecurityInterceptor.SEC_CTX_ID; 62 } 63 64 69 public SecurityServiceContext(int context_id, SecurityContext sctx) { 70 this.context_id = ServerSecurityInterceptor.SEC_CTX_ID; 71 this.sctx = sctx; 72 } 73 74 78 public SecurityContext getSecurityContext() { 79 return sctx; 80 } 81 82 } | Popular Tags |