1 23 24 package com.sun.enterprise.iiop.security; 25 26 27 import com.sun.corba.ee.org.omg.CSI.*; 28 import com.sun.corba.ee.org.omg.GSSUP.*; 29 import java.util.logging.*; 30 import com.sun.logging.*; 31 32 39 40 public class SvcContextUtils { 41 42 private static java.util.logging.Logger _logger=null; 43 static{ 44 _logger=LogDomains.getLogger(LogDomains.CORBA_LOGGER); 45 } 46 53 54 public static final int MessageInContextMinor = 4 ; 55 56 57 62 private static final int SECURITY_ATTRIBUTE_SERVICE_ID = 15; 63 64 68 69 private static final String EstablishContextName = "EstablishContext"; 70 private static final String CompleteEstablishName = "CompleteEstablishContext"; 71 private static final String MessageInContextName = "MessageInContext"; 72 private static final String ContextErrorName = "ContextError"; 73 74 78 79 public static String getMsgname(short discr) { 80 81 String name = null; 82 83 switch (discr) { 84 85 case MTEstablishContext.value: 86 name = EstablishContextName; 87 break; 88 89 case MTContextError.value: 90 name = ContextErrorName; 91 break; 92 93 case MTCompleteEstablishContext.value: 94 name = CompleteEstablishName; 95 break; 96 97 case MTMessageInContext.value: 98 name = MessageInContextName; 99 break; 100 101 default: 102 _logger.log(Level.SEVERE,"iiop.unknown_msgtype"); 103 break; 104 } 105 return name; 106 } 107 } 108 109 110 111 | Popular Tags |