1 22 package org.objectweb.jonas.security.interceptors.iiop; 23 24 import org.omg.CORBA.LocalObject ; 25 26 import org.objectweb.security.context.Marshalling; 27 import org.objectweb.security.context.SecurityContext; 28 29 34 public abstract class SecurityInterceptor extends LocalObject { 35 36 39 public static final int SEC_CTX_ID = 101; 40 41 48 public byte[] marshallSecurityContext(SecurityContext ctx) { 49 return Marshalling.marshallSecurityContext(ctx); 50 } 51 52 57 public SecurityContext unmarshallSecurityContext(byte[] byteCtx) { 58 return Marshalling.unmarshallSecurityContext(byteCtx); 59 } 60 61 66 public String contextString(SecurityContext scx) { 67 return (scx.toString()); 68 } 69 70 } 71 72 | Popular Tags |