| java.lang.Object org.objectweb.security.context.Marshalling
Marshalling | public class Marshalling (Code) | | Class allowing to marshall/unmarshall Security Context class
author: Guillaume Riviere (initial developer) author: Florent Benoit |
SEC_CTX_ID | final public static int SEC_CTX_ID(Code) | | security context id
|
marshallSecurityContext | public static byte[] marshallSecurityContext(SecurityContext ctx)(Code) | | Custom UTF8 marshalling SecurityContext
The resulting bute array is composed of the following elements:
principal-name, roles-number, role1, ...., runas-number, runas1, ....
then principal stack then roles of principal stack
byte [] the marshalled context Parameters: ctx - SecurityContext |
unmarshallSecurityContext | public static SecurityContext unmarshallSecurityContext(byte[] byteCtx)(Code) | | Custom UTF8 marshalling SecurityContext
Parameters: byteCtx - the marshalled context SecurityContext |
|
|