public Krb5Helper(string name, string clientName, Subject subject, AuthenticationTypes authenticationTypes, string mech) { _encryption = (authenticationTypes & AuthenticationTypes.Sealing) != 0; _signing = (authenticationTypes & AuthenticationTypes.Signing) != 0; _delegation = (authenticationTypes & AuthenticationTypes.Delegation) != 0; CreateContextPrivilegedAction action = new CreateContextPrivilegedAction (name, clientName, mech,_encryption,_signing,_delegation); try { _context = (GSSContext) Subject.doAs (subject,action); } catch (PrivilegedActionException e) { throw new LdapException ("Problem performing token exchange with the server",LdapException.OTHER,"",e.getCause()); } }
public Krb5Helper(string name, string clientName, Subject subject, AuthenticationTypes authenticationTypes, string mech) { _encryption = (authenticationTypes & AuthenticationTypes.Sealing) != 0; _signing = (authenticationTypes & AuthenticationTypes.Signing) != 0; _delegation = (authenticationTypes & AuthenticationTypes.Delegation) != 0; CreateContextPrivilegedAction action = new CreateContextPrivilegedAction(name, clientName, mech, _encryption, _signing, _delegation); try { _context = (GSSContext)Subject.doAs(subject, action); } catch (PrivilegedActionException e) { throw new LdapException("Problem performing token exchange with the server", LdapException.OTHER, "", e.getCause()); } }