Searched refs:mech (Results 1 - 25 of 34) sorted by relevance

12

/openjdk7/jdk/src/share/classes/org/ietf/jgss/
H A DGSSCredential.java162 * @param mech the Oid of the mechanism for which the Mechanism Name
172 public GSSName getName(Oid mech) throws GSSException; argument
206 * @param mech the Oid of the mechanism whose intiator credential element
214 public int getRemainingInitLifetime(Oid mech) throws GSSException; argument
228 * @param mech the Oid of the mechanism whose acceptor credential element
236 public int getRemainingAcceptLifetime(Oid mech) throws GSSException; argument
264 * @param mech the Oid of the mechanism whose credentials usage mode is
272 public int getUsage(Oid mech) throws GSSException; argument
330 * @param mech the mechanism over which the credential is to be acquired.
350 Oid mech, in
349 add(GSSName name, int initLifetime, int acceptLifetime, Oid mech, int usage) argument
[all...]
H A DGSSManager.java178 * @param mech the Oid of the mechanism to query
187 public abstract Oid[] getNamesForMech(Oid mech) argument
293 * @param mech Oid specifying the mechanism for which the name should be
308 Oid mech) throws GSSException;
323 * @param mech Oid specifying the mechanism for which the name should be
337 public abstract GSSName createName(byte name[], Oid nameType, Oid mech) argument
400 * @param mech the Oid of the desired mechanism. Use <code>(Oid) null
423 int lifetime, Oid mech, int usage)
498 * @param mech the Oid of the desired mechanism. Use <code>null</code>
521 public abstract GSSContext createContext(GSSName peer, Oid mech, argument
307 createName(String nameStr, Oid nameType, Oid mech) argument
422 createCredential(GSSName name, int lifetime, Oid mech, int usage) argument
660 addProviderAtFront(Provider p, Oid mech) argument
727 addProviderAtEnd(Provider p, Oid mech) argument
[all...]
H A DGSSName.java209 * @param mech the oid for the mechanism for which the canonical form of
219 public GSSName canonicalize(Oid mech) throws GSSException; argument
/openjdk7/jdk/src/share/classes/sun/security/jgss/wrapper/
H A DGSSLibStub.java45 private Oid mech; field in class:GSSLibStub
99 static GSSLibStub getInstance(Oid mech) throws GSSException { argument
100 GSSLibStub s = table.get(mech);
102 s = new GSSLibStub(mech);
103 table.put(mech, s);
107 private GSSLibStub(Oid mech) throws GSSException { argument
108 SunNativeProvider.debug("Created GSSLibStub for mech " + mech);
109 this.mech = mech;
[all...]
H A DNativeGSSFactory.java51 Oid mech = cStub.getMech();
53 (name, mech, initiate, GSSCredElement.class);
77 public void setMech(Oid mech) throws GSSException { argument
78 cStub = GSSLibStub.getInstance(mech);
H A DGSSCredElement.java62 // Construct delegation cred using the actual context mech and srcName
63 GSSCredElement(long pCredentials, GSSNameElement srcName, Oid mech) argument
66 cStub = GSSLibStub.getInstance(mech);
/openjdk7/jdk/src/share/classes/sun/security/jgss/
H A DGSSManagerImpl.java81 public Oid[] getNamesForMech(Oid mech) argument
83 MechanismFactory factory = list.getMechFactory(mech);
99 // what nametypes does this mech support?
100 Oid mech = mechs[i];
102 Oid[] namesForMech = getNamesForMech(mech);
105 retVal[pos++] = mech;
109 GSSUtil.debug("Skip " + mech +
136 Oid mech) throws GSSException {
137 return new GSSNameImpl(this, nameStr, nameType, mech);
140 public GSSName createName(byte name[], Oid nameType, Oid mech) argument
135 createName(String nameStr, Oid nameType, Oid mech) argument
150 createCredential(GSSName aName, int lifetime, Oid mech, int usage) argument
162 createContext(GSSName peer, Oid mech, GSSCredential myCred, int lifetime) argument
178 addProviderAtFront(Provider p, Oid mech) argument
183 addProviderAtEnd(Provider p, Oid mech) argument
188 getCredentialElement(GSSNameSpi name, int initLifetime, int acceptLifetime, Oid mech, int usage) argument
197 getNameElement(String name, Oid nameType, Oid mech) argument
206 getNameElement(byte[] name, Oid nameType, Oid mech) argument
214 getMechanismContext(GSSNameSpi peer, GSSCredentialSpi myInitiatorCred, int lifetime, Oid mech) argument
226 getMechanismContext(GSSCredentialSpi myAcceptorCred, Oid mech) argument
[all...]
H A DGSSCredentialImpl.java45 // 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 { argument
143 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
145 key = new SearchKey(mech, GSSCredential.INITIATE_ONLY);
149 key = new SearchKey(mech, GSSCredentia
54 GSSCredentialImpl(GSSManagerImpl gssManager, GSSName name, int lifetime, Oid mech, int usage) argument
206 getRemainingInitLifetime(Oid mech) argument
246 getRemainingAcceptLifetime(Oid mech) argument
322 getUsage(Oid mech) argument
385 add(GSSName name, int initLifetime, int acceptLifetime, Oid mech, int usage) argument
[all...]
H A DGSSExceptionImpl.java42 * A constructor that takes the majorCode as well as the mech oid that
45 GSSExceptionImpl(int majorCode, Oid mech) { argument
47 this.majorMessage = super.getMajorString() + ": " + mech;
H A DGSSNameImpl.java157 Oid mech)
166 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
170 init(gssManager, appName, appNameType, mech);
176 Oid mech)
201 mechElement = getElement(mech);
266 public GSSName canonicalize(Oid mech) throws GSSException { argument
267 if (mech == null) mech = ProviderList.DEFAULT_MECH_OID;
269 return wrapElement(gssManager, getElement(mech));
154 GSSNameImpl(GSSManagerImpl gssManager, Object appName, Oid appNameType, Oid mech) argument
174 init(GSSManagerImpl gssManager, Object appName, Oid appNameType, Oid mech) argument
[all...]
H A DLoginConfigImpl.java49 * since it's only used by a single (caller, mech) pair
53 public LoginConfigImpl(GSSCaller caller, Oid mech) { argument
57 if (mech.equals(GSSUtil.GSS_KRB5_MECH_OID)) {
60 throw new IllegalArgumentException(mech.toString() + " not supported");
71 * @param name Almost useless, since the (caller, mech) is already passed
120 // No other mech at the moment, maybe --
165 * Default value for a caller-mech pair when no entry is defined in
H A DGSSUtil.java230 * @param mech the mech to be used
233 public static Subject login(GSSCaller caller, Oid mech) throws LoginException { argument
252 // generated with caller and mech inside LoginConfigImpl
254 new LoginConfigImpl(caller, mech));
320 final Oid mech,
323 debug("Search Subject for " + getMechStr(mech) +
345 cred.getElement(mech, initiate);
319 searchSubject(final GSSNameSpi name, final Oid mech, final boolean initiate, final Class credCls) argument
/openjdk7/jdk/src/share/classes/com/sun/security/sasl/
H A DServerFactoryImpl.java57 public SaslServer createSaslServer(String mech, argument
63 if (mech.equals(myMechs[CRAMMD5])
/openjdk7/jdk/test/sun/security/krb5/auto/
H A DOkAsDelegate.java70 Oid mech = GSSUtil.GSS_KRB5_MECH_OID;
72 mech = GSSUtil.GSS_SPNEGO_MECH_OID;
74 c.startAsClient(OneKDC.SERVER, mech);
78 s.startAsServer(mech);
/openjdk7/jdk/src/share/classes/com/sun/security/sasl/ntlm/
H A DFactoryImpl.java93 public SaslServer createSaslServer(String mech, argument
97 if (mech.equals("NTLM") &&
111 return new NTLMServer(mech, protocol, serverName, props, cbh);
H A DNTLMClient.java99 private final String mech; field in class:NTLMClient
105 * @param mech non-null
113 NTLMClient(String mech, String authzid, String protocol, String serverName, argument
116 this.mech = mech;
175 return mech;
H A DNTLMServer.java100 private final String mech; field in class:NTLMServer
104 * @param mech not null
112 NTLMServer(String mech, String protocol, String serverName, argument
115 this.mech = mech;
168 return mech;
/openjdk7/jdk/src/share/classes/sun/security/jgss/spnego/
H A DNegTokenTarg.java62 NegTokenTarg(int result, Oid mech, byte[] token, byte[] mechListMIC) argument
66 this.supportedMech = mech;
91 DerOutputStream mech = new DerOutputStream();
93 mech.write(mechType);
95 true, (byte) 0x01), mech);
169 ObjectIdentifier mech = tmp2.data.getOID();
170 supportedMech = new Oid(mech.toString());
201 // to find the supported mech in SPNEGO tokens
H A DNegTokenInit.java168 ObjectIdentifier mech = null;
170 mech = mList[i].getOID();
173 "reading Mechanism Oid = " + mech);
175 mechTypeList[i] = new Oid(mech.toString());
220 // to access the mech token portion of SPNEGO tokens
/openjdk7/jdk/src/share/classes/javax/security/sasl/
H A DSasl.java349 SaslClient mech = null;
372 mech = fac.createSaslClient(
375 if (mech != null) {
376 return mech;
489 SaslServer mech = null;
509 mech = fac.createSaslServer(
511 if (mech != null) {
512 return mech;
/openjdk7/jdk/src/share/classes/com/sun/security/sasl/digest/
H A DFactoryImpl.java95 public SaslServer createSaslServer(String mech, argument
99 if (mech.equals(myMechs[DIGEST_MD5]) &&
/openjdk7/jdk/src/share/classes/com/sun/security/sasl/gsskerb/
H A DFactoryImpl.java74 public SaslServer createSaslServer(String mech, argument
79 if (mech.equals(myMechs[GSS_KERB_V5])
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/
H A DLdapPoolManager.java133 String mech;
136 mech = parser.nextToken().toLowerCase();
137 if (mech.equals("anonymous")) {
138 mech = "none";
141 p = findPool(mech);
181 * @param mech mechanism type
183 private static int findPool(String mech) { argument
184 if ("none".equalsIgnoreCase(mech)) {
186 } else if ("simple".equalsIgnoreCase(mech)) {
188 } else if ("digest-md5".equalsIgnoreCase(mech)) {
[all...]
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DConfig.java736 long mech = parseMechanism(st.sval);
737 mechs.add(Long.valueOf(mech));
741 for (Long mech : mechs) {
742 System.out.print(Functions.getMechanismName(mech));
750 private long parseMechanism(String mech) throws IOException { argument
751 if (isNumber(mech)) {
752 return decodeNumber(mech);
755 return Functions.getMechanismId(mech);
757 throw excLine("Unknown mechanism: " + mech);
/openjdk7/jdk/src/share/native/sun/security/jgss/wrapper/
H A DGSSLibStub.c241 gss_OID mech; local
247 mech = (gss_OID) (*env)->GetLongField(env, jobj, FID_GSSLibStub_pMech);
251 major = (*ftab->inquireNamesForMech)(&minor, mech, &nameTypes);
371 gss_OID mech; local
378 mech = (gss_OID) (*env)->GetLongField(env, jobj, FID_GSSLibStub_pMech);
383 major = (*ftab->canonicalizeName)(&minor, nameHdl, mech, &mnNameHdl);
506 gss_OID mech; local
515 mech = (gss_OID) (*env)->GetLongField(env, jobj, FID_GSSLibStub_pMech);
516 mechs = newGSSOIDSet(env, mech);
706 gss_OID mech, mech local
774 gss_OID mech; local
1081 gss_OID mech; local
[all...]

Completed in 94 milliseconds

12