1 22 package org.jboss.iiop.csiv2; 23 24 32 33 import org.omg.CORBA.LocalObject ; 34 import org.omg.CSI.IdentityToken; 35 36 42 43 public class SASCurrentImpl 44 extends LocalObject 45 implements SASCurrent 46 { 47 49 private SASTargetInterceptor serverInterceptor; 50 51 53 public void init(SASTargetInterceptor serverInterceptor) 54 { 55 this.serverInterceptor = serverInterceptor; 56 } 57 58 60 public boolean context_received() 61 { 62 return serverInterceptor.sasContextReceived(); 63 } 64 65 public boolean client_authentication_info_received() 66 { 67 return serverInterceptor.authenticationTokenReceived(); 68 } 69 70 public byte[] get_incoming_username() 71 { 72 return serverInterceptor.getIncomingUsername(); 73 } 74 75 public byte[] get_incoming_password() 76 { 77 return serverInterceptor.getIncomingPassword(); 78 } 79 80 public byte[] get_incoming_target_name() 81 { 82 return serverInterceptor.getIncomingTargetName(); 83 } 84 85 public IdentityToken get_incoming_identity() 86 { 87 return serverInterceptor.getIncomingIdentity(); 88 } 89 90 91 public int get_incoming_identity_token_type() 92 { 93 return serverInterceptor.getIncomingIdentity().discriminator(); 94 } 95 96 public byte[] get_incoming_principal_name() 97 { 98 return serverInterceptor.getIncomingPrincipalName(); 99 } 100 101 public void reject_incoming_context() 102 { 103 serverInterceptor.rejectIncomingContext(); 104 } 105 106 } 107 | Popular Tags |