Searched defs:callbacks (Results 1 - 25 of 47) sorted by relevance

12

/openjdk7/jdk/test/javax/security/auth/login/LoginContext/
H A DDefaultHandlerImpl.java38 * @param callbacks an array of <code>Callback</code> objects which contain
46 * specified in the <code>callbacks</code> parameter.
48 public void handle(Callback[] callbacks) argument
51 for (int i = 0; i < callbacks.length; i++) {
52 if (callbacks[i] instanceof TextOutputCallback) {
55 TextOutputCallback toc = (TextOutputCallback)callbacks[i];
71 } else if (callbacks[i] instanceof NameCallback) {
74 NameCallback nc = (NameCallback)callbacks[i];
82 } else if (callbacks[i] instanceof PasswordCallback) {
85 PasswordCallback pc = (PasswordCallback)callbacks[
[all...]
/openjdk7/jdk/test/sun/security/krb5/auto/
H A DOkAsDelegateXRealm.java144 public void handle(Callback[] callbacks) argument
146 for (Callback callback : callbacks) {
H A DCrossRealm.java97 public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { argument
98 for (Callback callback : callbacks) {
H A DLoginModuleOptions.java171 public void handle(Callback[] callbacks) { argument
172 for (Callback callback : callbacks) {
H A DOneKDC.java127 public void handle(Callback[] callbacks) { argument
130 for (Callback callback : callbacks) {
/openjdk7/jdk/src/share/classes/javax/security/auth/callback/
H A DCallbackHandler.java86 * public void handle(Callback[] callbacks)
89 * for (int i = 0; i < callbacks.length; i++) {
90 * if (callbacks[i] instanceof TextOutputCallback) {
93 * TextOutputCallback toc = (TextOutputCallback)callbacks[i];
109 * } else if (callbacks[i] instanceof NameCallback) {
112 * NameCallback nc = (NameCallback)callbacks[i];
120 * } else if (callbacks[i] instanceof PasswordCallback) {
123 * PasswordCallback pc = (PasswordCallback)callbacks[i];
130 * (callbacks[i], "Unrecognized Callback");
141 * @param callbacks a
151 handle(Callback[] callbacks) argument
[all...]
/openjdk7/jdk/test/com/sun/security/sasl/
H A DClientCallbackHandler.java41 public void handle(Callback[] callbacks) throws UnsupportedCallbackException, argument
49 for (int i = 0; i < callbacks.length; i++) {
50 if (callbacks[i] instanceof NameCallback) {
52 ((NameCallback)callbacks[i]).setName(username);
55 namePw.add(callbacks[i]);
57 } else if (callbacks[i] instanceof PasswordCallback) {
59 ((PasswordCallback)callbacks[i]).setPassword(
63 namePw.add(callbacks[i]);
65 } else if (callbacks[i] instanceof RealmChoiceCallback) {
66 RealmChoiceCallback rcb = (RealmChoiceCallback) callbacks[
[all...]
H A DPropertiesFileCallbackHandler.java65 public void handle(Callback[] callbacks) argument
72 for (int i = 0; i < callbacks.length; i++) {
73 if (callbacks[i] instanceof NameCallback) {
74 ncb = (NameCallback) callbacks[i];
75 } else if (callbacks[i] instanceof PasswordCallback) {
76 pcb = (PasswordCallback) callbacks[i];
77 } else if (callbacks[i] instanceof AuthorizeCallback) {
78 acb = (AuthorizeCallback) callbacks[i];
79 } else if (callbacks[i] instanceof RealmCallback) {
80 rcb = (RealmCallback) callbacks[
[all...]
/openjdk7/jdk/test/com/sun/security/sasl/digest/
H A DClientCallbackHandler.java41 public void handle(Callback[] callbacks) throws UnsupportedCallbackException, argument
49 for (int i = 0; i < callbacks.length; i++) {
50 if (callbacks[i] instanceof NameCallback) {
52 ((NameCallback)callbacks[i]).setName(username);
55 namePw.add(callbacks[i]);
57 } else if (callbacks[i] instanceof PasswordCallback) {
59 ((PasswordCallback)callbacks[i]).setPassword(
63 namePw.add(callbacks[i]);
65 } else if (callbacks[i] instanceof RealmChoiceCallback) {
66 RealmChoiceCallback rcb = (RealmChoiceCallback) callbacks[
[all...]
H A DPropertiesFileCallbackHandler.java65 public void handle(Callback[] callbacks) argument
72 for (int i = 0; i < callbacks.length; i++) {
73 if (callbacks[i] instanceof NameCallback) {
74 ncb = (NameCallback) callbacks[i];
75 } else if (callbacks[i] instanceof PasswordCallback) {
76 pcb = (PasswordCallback) callbacks[i];
77 } else if (callbacks[i] instanceof AuthorizeCallback) {
78 acb = (AuthorizeCallback) callbacks[i];
79 } else if (callbacks[i] instanceof RealmCallback) {
80 rcb = (RealmCallback) callbacks[
[all...]
H A DNoQuoteParams.java115 public void handle(Callback[] callbacks) argument
117 for (int i = 0; i < callbacks.length; i++) {
118 if (callbacks[i] instanceof NameCallback) {
119 NameCallback cb = (NameCallback)callbacks[i];
122 } else if (callbacks[i] instanceof PasswordCallback) {
123 PasswordCallback cb = (PasswordCallback)callbacks[i];
131 } else if (callbacks[i] instanceof RealmCallback) {
132 RealmCallback cb = (RealmCallback)callbacks[i];
136 throw new UnsupportedCallbackException(callbacks[i]);
H A DCheckNegotiatedQOPs.java129 public void handle(Callback[] callbacks) argument
131 for (int i = 0; i < callbacks.length; i++) {
132 if (callbacks[i] instanceof NameCallback) {
133 NameCallback cb = (NameCallback)callbacks[i];
136 } else if (callbacks[i] instanceof PasswordCallback) {
137 PasswordCallback cb = (PasswordCallback)callbacks[i];
145 } else if (callbacks[i] instanceof RealmCallback) {
146 RealmCallback cb = (RealmCallback)callbacks[i];
150 } else if (callbacks[i] instanceof AuthorizeCallback) {
151 AuthorizeCallback cb = (AuthorizeCallback)callbacks[
[all...]
/openjdk7/jdk/test/com/sun/security/sasl/gsskerb/
H A DPropertiesFileCallbackHandler.java65 public void handle(Callback[] callbacks) argument
72 for (int i = 0; i < callbacks.length; i++) {
73 if (callbacks[i] instanceof NameCallback) {
74 ncb = (NameCallback) callbacks[i];
75 } else if (callbacks[i] instanceof PasswordCallback) {
76 pcb = (PasswordCallback) callbacks[i];
77 } else if (callbacks[i] instanceof AuthorizeCallback) {
78 acb = (AuthorizeCallback) callbacks[i];
79 } else if (callbacks[i] instanceof RealmCallback) {
80 rcb = (RealmCallback) callbacks[
[all...]
/openjdk7/jdk/test/sun/security/pkcs11/Provider/
H A DLogin.java111 public void handle(Callback[] callbacks) argument
113 if (!(callbacks[0] instanceof PasswordCallback)) {
114 throw new UnsupportedCallbackException(callbacks[0]);
116 PasswordCallback pc = (PasswordCallback)callbacks[0];
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/sasl/
H A DDefaultCallbackHandler.java68 public void handle(Callback[] callbacks) argument
70 for (int i = 0; i < callbacks.length; i++) {
71 if (callbacks[i] instanceof NameCallback) {
72 ((NameCallback)callbacks[i]).setName(authenticationID);
74 } else if (callbacks[i] instanceof PasswordCallback) {
75 ((PasswordCallback)callbacks[i]).setPassword(passwd);
77 } else if (callbacks[i] instanceof RealmChoiceCallback) {
80 ((RealmChoiceCallback)callbacks[i]).getChoices();
102 ((RealmChoiceCallback)callbacks[i]).setSelectedIndex(selected);
104 } else if (callbacks[
[all...]
/openjdk7/jdk/src/share/classes/com/sun/security/auth/callback/
H A DTextCallbackHandler.java68 * Handles the specified set of callbacks.
70 * @param callbacks the callbacks to handle
75 public void handle(Callback[] callbacks) argument
80 for (int i = 0; i < callbacks.length; i++) {
81 if (callbacks[i] instanceof TextOutputCallback) {
82 TextOutputCallback tc = (TextOutputCallback) callbacks[i];
97 callbacks[i], "Unrecognized message type");
108 } else if (callbacks[i] instanceof NameCallback) {
109 NameCallback nc = (NameCallback) callbacks[
[all...]
H A DDialogCallbackHandler.java91 * Handles the specified set of callbacks.
93 * @param callbacks the callbacks to handle
98 public void handle(Callback[] callbacks) argument
109 for (int i = 0; i < callbacks.length; i++) {
110 if (callbacks[i] instanceof TextOutputCallback) {
111 TextOutputCallback tc = (TextOutputCallback) callbacks[i];
125 callbacks[i], "Unrecognized message type");
130 } else if (callbacks[i] instanceof NameCallback) {
131 final NameCallback nc = (NameCallback) callbacks[
[all...]
/openjdk7/jdk/test/com/sun/security/auth/module/LdapLoginModule/
H A DCheckOptions.java148 public void handle(Callback[] callbacks) argument
151 for (int i = 0; i < callbacks.length; i++) {
153 if (callbacks[i] instanceof NameCallback) {
154 NameCallback nc = (NameCallback) callbacks[i];
162 } else if (callbacks[i] instanceof PasswordCallback) {
163 PasswordCallback pc = (PasswordCallback) callbacks[i];
H A DCheckConfigs.java116 public void handle(Callback[] callbacks) argument
119 for (int i = 0; i < callbacks.length; i++) {
120 if (callbacks[i] instanceof NameCallback) {
121 ((NameCallback)callbacks[i]).setName("myname");
123 } else if (callbacks[i] instanceof PasswordCallback) {
124 ((PasswordCallback)callbacks[i])
129 (callbacks[i], "Unrecognized callback");
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/spnego/
H A DNegotiateCallbackHandler.java80 public void handle(Callback[] callbacks) throws argument
82 for (int i=0; i<callbacks.length; i++) {
83 Callback callBack = callbacks[i];
/openjdk7/jdk/test/com/sun/security/auth/module/KeyStoreLoginModule/
H A DOptionTest.java242 public void handle(Callback[] callbacks) argument
244 for (int i = 0; i < callbacks.length; i++) {
245 if (callbacks[i] instanceof NameCallback) {
246 NameCallback nc = (NameCallback) callbacks[i];
252 } else if (callbacks[i] instanceof PasswordCallback) {
253 PasswordCallback pc = (PasswordCallback) callbacks[i];
261 } else if (callbacks[i] instanceof ConfirmationCallback) {
263 (ConfirmationCallback) callbacks[i];
/openjdk7/jdk/src/share/demo/jvmti/versionCheck/
H A DversionCheck.c96 jvmtiEventCallbacks callbacks; local
106 /* Set callbacks and enable event notifications */
107 memset(&callbacks, 0, sizeof(callbacks));
108 callbacks.VMInit = &vm_init;
109 err = (*jvmti)->SetEventCallbacks(jvmti, &callbacks, sizeof(callbacks));
110 check_jvmti_error(jvmti, err, "set event callbacks");
/openjdk7/jdk/src/share/demo/jvmti/gctest/
H A Dgctest.c156 jvmtiEventCallbacks callbacks; local
171 /* Set callbacks and enable event notifications */
172 memset(&callbacks, 0, sizeof(callbacks));
173 callbacks.VMInit = &vm_init;
174 callbacks.GarbageCollectionStart = &gc_start;
175 callbacks.GarbageCollectionFinish = &gc_finish;
176 err = (*jvmti)->SetEventCallbacks(jvmti, &callbacks, sizeof(callbacks));
177 check_jvmti_error(jvmti, err, "set event callbacks");
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jmx/remote/security/
H A DJMXPluggableAuthenticator.java267 public void handle(Callback[] callbacks) argument
270 for (int i = 0; i < callbacks.length; i++) {
271 if (callbacks[i] instanceof NameCallback) {
272 ((NameCallback)callbacks[i]).setName(username);
274 } else if (callbacks[i] instanceof PasswordCallback) {
275 ((PasswordCallback)callbacks[i])
280 (callbacks[i], "Unrecognized Callback");
/openjdk7/jdk/src/share/demo/jvmti/waiters/
H A Dwaiters.cpp106 /* All callbacks need to be extern "C" */
156 /* Block all callbacks */
158 /* Set flag for other callbacks */
252 jvmtiEventCallbacks callbacks; local
270 /* Set all callbacks and enable VM_INIT event notification */
271 memset(&callbacks, 0, sizeof(callbacks));
272 callbacks.VMInit = &vm_init;
273 callbacks.VMDeath = &vm_death;
274 callbacks
[all...]

Completed in 6113 milliseconds

12