Lines Matching refs:mech

45     // XXX Optimization for single mech usage
55 int lifetime, Oid mech, int usage)
57 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
60 add(name, lifetime, lifetime, mech, usage);
133 public GSSName getName(Oid mech) throws GSSException {
143 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
145 key = new SearchKey(mech, GSSCredential.INITIATE_ONLY);
149 key = new SearchKey(mech, GSSCredential.ACCEPT_ONLY);
154 key = new SearchKey(mech, GSSCredential.INITIATE_AND_ACCEPT);
159 throw new GSSExceptionImpl(GSSException.BAD_MECH, mech);
206 public int getRemainingInitLifetime(Oid mech) throws GSSException {
218 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
220 key = new SearchKey(mech, GSSCredential.INITIATE_ONLY);
229 key = new SearchKey(mech, GSSCredential.INITIATE_AND_ACCEPT);
239 throw new GSSExceptionImpl(GSSException.BAD_MECH, mech);
246 public int getRemainingAcceptLifetime(Oid mech) throws GSSException {
258 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
260 key = new SearchKey(mech, GSSCredential.ACCEPT_ONLY);
269 key = new SearchKey(mech, GSSCredential.INITIATE_AND_ACCEPT);
279 throw new GSSExceptionImpl(GSSException.BAD_MECH, mech);
322 public int getUsage(Oid mech) throws GSSException {
334 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
336 key = new SearchKey(mech, GSSCredential.INITIATE_ONLY);
343 key = new SearchKey(mech, GSSCredential.ACCEPT_ONLY);
350 key = new SearchKey(mech, GSSCredential.INITIATE_AND_ACCEPT);
365 throw new GSSExceptionImpl(GSSException.BAD_MECH, mech);
386 Oid mech, int usage) throws GSSException {
392 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
394 SearchKey key = new SearchKey(mech, usage);
398 getElementStr(mech, usage));
404 ((GSSNameImpl)name).getElement(mech));
409 mech,
441 key = new SearchKey(mech, currentUsage);
447 mech,
450 key = new SearchKey(mech, desiredUsage);