Searched refs:callbacks (Results 1 - 25 of 273) sorted by relevance

1234567891011

/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/authentication/callbacks/
H A Dpackage-info.java18 * This package contains custom Callback objects representing callbacks which may be sent between the client and server
21 package com.sun.identity.authentication.callbacks;
/forgerock/openam/openam-core/src/main/java/com/sun/identity/authentication/callbacks/
H A Dpackage-info.java18 * This package contains custom Callback objects representing callbacks which may be sent between the client and server
21 package com.sun.identity.authentication.callbacks;
/forgerock/openam-v13/openam-authentication/openam-auth-ldap/src/main/java/com/sun/identity/authentication/modules/ldap/
H A DLDAPCallbacks.java67 * Instantiates and passes a callbacks to the <code>invokeCallback</code>
78 * Instantiates and passes a callbacks to the <code>invokeCallback</code>
127 Callback[] callbacks = new Callback[3];
128 callbacks[0] = new TextOutputCallback
130 callbacks[1] = new NameCallback("Enter Username :");
131 callbacks[2] = new PasswordCallback("Enter Password :", false);
133 callbackHandler.handle(callbacks);
134 username = ((NameCallback) callbacks[1]).getName();
136 ((PasswordCallback)callbacks[2]).getPassword(),callbacks[
[all...]
/forgerock/openam/openam-authentication/openam-auth-ldap/src/main/java/com/sun/identity/authentication/modules/ldap/
H A DLDAPCallbacks.java67 * Instantiates and passes a callbacks to the <code>invokeCallback</code>
78 * Instantiates and passes a callbacks to the <code>invokeCallback</code>
127 Callback[] callbacks = new Callback[3];
128 callbacks[0] = new TextOutputCallback
130 callbacks[1] = new NameCallback("Enter Username :");
131 callbacks[2] = new PasswordCallback("Enter Password :", false);
133 callbackHandler.handle(callbacks);
134 username = ((NameCallback) callbacks[1]).getName();
136 ((PasswordCallback)callbacks[2]).getPassword(),callbacks[
[all...]
/forgerock/openam-v13/openam-distribution/src/main/amserver/samples/server/source/com/sun/identity/samples/authentication/spi/providers/
H A DLoginModuleSample.java75 * @param callbacks Array of callback object.
80 public int process(Callback[] callbacks, int state) argument
86 returnState = processState1(callbacks);
89 returnState = processState2(callbacks);
92 returnState = processState3(callbacks);
95 returnState = processState4(callbacks);
104 private int processState1(Callback[] callbacks) argument
107 userName = ((NameCallback)callbacks[0]).getName();
108 lastName = ((NameCallback)callbacks[1]).getName();
115 private int processState2(Callback[] callbacks) argument
138 processState3(Callback[] callbacks) argument
152 processState4(Callback[] callbacks) argument
[all...]
/forgerock/openam/openam-distribution/src/main/amserver/samples/server/source/com/sun/identity/samples/authentication/spi/providers/
H A DLoginModuleSample.java75 * @param callbacks Array of callback object.
80 public int process(Callback[] callbacks, int state) argument
86 returnState = processState1(callbacks);
89 returnState = processState2(callbacks);
92 returnState = processState3(callbacks);
95 returnState = processState4(callbacks);
104 private int processState1(Callback[] callbacks) argument
107 userName = ((NameCallback)callbacks[0]).getName();
108 lastName = ((NameCallback)callbacks[1]).getName();
115 private int processState2(Callback[] callbacks) argument
138 processState3(Callback[] callbacks) argument
152 processState4(Callback[] callbacks) argument
[all...]
/forgerock/openam-v13/openam-examples/openam-example-clientsdk-war/src/main/java/com/sun/identity/samples/clientsdk/
H A DSampleBase.java51 Callback[] callbacks = lc.getRequirements();
52 for (int i = 0; i < callbacks.length; i++) {
53 if (callbacks[i] instanceof NameCallback) {
54 NameCallback nc = (NameCallback) callbacks[i];
56 } else if (callbacks[i] instanceof PasswordCallback) {
57 PasswordCallback pc = (PasswordCallback) callbacks[i];
60 out.println("Unknow Callback: " + callbacks[i]);
65 lc.submitRequirements(callbacks);
/forgerock/openam/openam-examples/openam-example-clientsdk-war/src/main/java/com/sun/identity/samples/clientsdk/
H A DSampleBase.java51 Callback[] callbacks = lc.getRequirements();
52 for (int i = 0; i < callbacks.length; i++) {
53 if (callbacks[i] instanceof NameCallback) {
54 NameCallback nc = (NameCallback) callbacks[i];
56 } else if (callbacks[i] instanceof PasswordCallback) {
57 PasswordCallback pc = (PasswordCallback) callbacks[i];
60 out.println("Unknow Callback: " + callbacks[i]);
65 lc.submitRequirements(callbacks);
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/security/
H A DSystemAppTokenProvider.java84 Callback[] callbacks = authContext.getRequirements();
86 if (callbacks != null) {
87 addLoginCallbackMessage(callbacks, appUserName, appPassword);
88 authContext.submitRequirements(callbacks);
112 * @param callbacks array of callbacks
117 Callback[] callbacks,
122 for (int i = 0; i < callbacks.length; i++) {
123 if (callbacks[i] instanceof NameCallback) {
124 NameCallback nameCallback = (NameCallback) callbacks[
116 addLoginCallbackMessage( Callback[] callbacks, String appUserName, String appPassword) argument
[all...]
/forgerock/openam/openam-core/src/main/java/com/sun/identity/security/
H A DSystemAppTokenProvider.java84 Callback[] callbacks = authContext.getRequirements();
86 if (callbacks != null) {
87 addLoginCallbackMessage(callbacks, appUserName, appPassword);
88 authContext.submitRequirements(callbacks);
112 * @param callbacks array of callbacks
117 Callback[] callbacks,
122 for (int i = 0; i < callbacks.length; i++) {
123 if (callbacks[i] instanceof NameCallback) {
124 NameCallback nameCallback = (NameCallback) callbacks[
116 addLoginCallbackMessage( Callback[] callbacks, String appUserName, String appPassword) argument
[all...]
/forgerock/openam-v13/openam-federation/OpenFM/src/test/java/com/sun/identity/entitlement/util/
H A DAuthUtils.java57 Callback[] callbacks = lc.getRequirements();
58 for (int i = 0; i < callbacks.length; i++) {
59 if (callbacks[i] instanceof NameCallback) {
60 NameCallback nc = (NameCallback) callbacks[i];
62 } else if (callbacks[i] instanceof PasswordCallback) {
63 PasswordCallback pc = (PasswordCallback) callbacks[i];
69 lc.submitRequirements(callbacks);
/forgerock/openam/openam-federation/OpenFM/src/test/java/com/sun/identity/entitlement/util/
H A DAuthUtils.java57 Callback[] callbacks = lc.getRequirements();
58 for (int i = 0; i < callbacks.length; i++) {
59 if (callbacks[i] instanceof NameCallback) {
60 NameCallback nc = (NameCallback) callbacks[i];
62 } else if (callbacks[i] instanceof PasswordCallback) {
63 PasswordCallback pc = (PasswordCallback) callbacks[i];
69 lc.submitRequirements(callbacks);
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/authentication/service/
H A DDSAMECallbackHandler.java50 // what callbacks the module needs
74 private void setPageTimeout(Callback[] callbacks) { argument
75 long pageTimeOut = getTimeOut(callbacks);
88 * @param callbacks an array of <code>Callback</code> objects provided
95 * specified in the <code>callbacks</code> parameter.
97 public void handle(Callback[] callbacks) argument
104 if ((callbacks.length == 1) &&
105 (callbacks[0] instanceof LoginStateCallback)) {
107 ((LoginStateCallback) callbacks[0]).setLoginState(loginState);
110 setPageTimeout(callbacks);
201 getTimeOut(Callback[] callbacks) argument
[all...]
/forgerock/openam/openam-core/src/main/java/com/sun/identity/authentication/service/
H A DDSAMECallbackHandler.java53 // what callbacks the module needs
79 private void setPageTimeout(Callback[] callbacks) { argument
80 long pageTimeOut = getTimeOut(callbacks);
93 * @param callbacks an array of <code>Callback</code> objects provided
100 * specified in the <code>callbacks</code> parameter.
102 public void handle(Callback[] callbacks) argument
109 if ((callbacks.length == 1) &&
110 (callbacks[0] instanceof LoginStateCallback)) {
112 ((LoginStateCallback) callbacks[0]).setLoginState(loginState);
115 setPageTimeout(callbacks);
206 getTimeOut(Callback[] callbacks) argument
[all...]
/forgerock/openam-v13/openam-authentication/deviceprint/module/src/test/java/org/forgerock/openam/authentication/modules/deviceprint/
H A DDevicePrintAuthenticationServiceTest.java99 Callback[] callbacks = new Callback[1];
104 callbacks[0] = devicePrintCallback;
110 int nextState = devicePrintAuthenticationService.process(callbacks, state);
123 Callback[] callbacks = new Callback[1];
129 callbacks[0] = devicePrintCallback;
136 int nextState = devicePrintAuthenticationService.process(callbacks, state);
149 Callback[] callbacks = new Callback[1];
156 callbacks[0] = devicePrintCallback;
163 int nextState = devicePrintAuthenticationService.process(callbacks, state);
176 Callback[] callbacks
[all...]
/forgerock/openam-v13/openam-examples/openam-example-clientsdk-cli/src/main/java/samples/policy/
H A DTokenUtils.java79 Callback[] callbacks = null;
82 callbacks = ac.getRequirements();
84 if (callbacks != null) {
85 addLoginCallbackMessage(callbacks, userId, password);
86 ac.submitRequirements(callbacks);
115 static void addLoginCallbackMessage(Callback[] callbacks, String userId, argument
121 for (i = 0; i < callbacks.length; i++) {
122 if (callbacks[i] instanceof NameCallback) {
125 NameCallback nc = (NameCallback) callbacks[i];
130 } else if (callbacks[
[all...]
/forgerock/openam-v13/openam-federation/OpenFM/src/test/java/com/sun/identity/xacml/client/
H A DTokenUtils.java78 Callback[] callbacks = null;
81 callbacks = ac.getRequirements();
83 if (callbacks != null) {
84 addLoginCallbackMessage(callbacks, userId, password);
85 ac.submitRequirements(callbacks);
114 static void addLoginCallbackMessage(Callback[] callbacks, String userId, argument
120 for (i = 0; i < callbacks.length; i++) {
121 if (callbacks[i] instanceof NameCallback) {
124 NameCallback nc = (NameCallback) callbacks[i];
129 } else if (callbacks[
[all...]
/forgerock/openam/openam-examples/openam-example-clientsdk-cli/src/main/java/samples/policy/
H A DTokenUtils.java79 Callback[] callbacks = null;
82 callbacks = ac.getRequirements();
84 if (callbacks != null) {
85 addLoginCallbackMessage(callbacks, userId, password);
86 ac.submitRequirements(callbacks);
115 static void addLoginCallbackMessage(Callback[] callbacks, String userId, argument
121 for (i = 0; i < callbacks.length; i++) {
122 if (callbacks[i] instanceof NameCallback) {
125 NameCallback nc = (NameCallback) callbacks[i];
130 } else if (callbacks[
[all...]
/forgerock/openam/openam-federation/OpenFM/src/test/java/com/sun/identity/xacml/client/
H A DTokenUtils.java78 Callback[] callbacks = null;
81 callbacks = ac.getRequirements();
83 if (callbacks != null) {
84 addLoginCallbackMessage(callbacks, userId, password);
85 ac.submitRequirements(callbacks);
114 static void addLoginCallbackMessage(Callback[] callbacks, String userId, argument
120 for (i = 0; i < callbacks.length; i++) {
121 if (callbacks[i] instanceof NameCallback) {
124 NameCallback nc = (NameCallback) callbacks[i];
129 } else if (callbacks[
[all...]
/forgerock/jee-agents-v3.5/jee-agents-sdk/src/main/java/com/sun/identity/agents/common/
H A DApplicationSSOTokenProvider.java67 Callback[] callbacks = authContext.getRequirements();
68 if(callbacks != null) {
69 addLoginCallbackMessage(callbacks, getApplicationUser(),
71 authContext.submitRequirements(callbacks);
114 Callback[] callbacks, String appUserName, String password)
117 for(int i = 0; i < callbacks.length; i++) {
118 if(callbacks[i] instanceof NameCallback) {
119 NameCallback nameCallback = (NameCallback) callbacks[i];
122 } else if(callbacks[i] instanceof PasswordCallback) {
124 (PasswordCallback) callbacks[
113 addLoginCallbackMessage( Callback[] callbacks, String appUserName, String password) argument
[all...]
/forgerock/openam-v13/openam-authentication/openam-auth-device-id/src/test/java/org/forgerock/openam/authentication/modules/deviceprint/
H A DPersistModuleProcesserTest.java57 Callback[] callbacks = new Callback[]{};
61 int newState = processor.process(callbacks, state);
74 Callback[] callbacks = new Callback[]{};
78 int newState = processor.process(callbacks, state);
94 Callback[] callbacks = new Callback[]{};
98 int newState = processor.process(callbacks, state);
114 Callback[] callbacks = new Callback[]{};
118 int newState = processor.process(callbacks, state);
132 Callback[] callbacks = new Callback[]{choiceCallback};
138 int newState = processor.process(callbacks, stat
[all...]
/forgerock/openam-v13/openam-examples/openam-example-clientsdk-cli/src/main/java/com/sun/identity/samples/clientsdk/logging/
H A DLogSampleUtils.java75 Callback[] callbacks = null;
81 callbacks = ac.getRequirements();
83 fillCallbacks(callbacks, values);
84 ac.submitRequirements(callbacks);
86 System.err.println( "Failed to submit callbacks!");
112 protected void fillCallbacks(Callback[] callbacks, Hashtable values) argument
115 for (int i = 0; i < callbacks.length; i++) {
116 if (callbacks[i] instanceof NameCallback) {
117 NameCallback nc = (NameCallback) callbacks[i];
119 } else if (callbacks[
[all...]
/forgerock/openam/openam-authentication/openam-auth-device-id/src/test/java/org/forgerock/openam/authentication/modules/deviceprint/
H A DPersistModuleProcesserTest.java57 Callback[] callbacks = new Callback[]{};
61 int newState = processor.process(callbacks, state);
74 Callback[] callbacks = new Callback[]{};
78 int newState = processor.process(callbacks, state);
94 Callback[] callbacks = new Callback[]{};
98 int newState = processor.process(callbacks, state);
114 Callback[] callbacks = new Callback[]{};
118 int newState = processor.process(callbacks, state);
132 Callback[] callbacks = new Callback[]{choiceCallback};
138 int newState = processor.process(callbacks, stat
[all...]
/forgerock/openam/openam-examples/openam-example-clientsdk-cli/src/main/java/com/sun/identity/samples/clientsdk/logging/
H A DLogSampleUtils.java75 Callback[] callbacks = null;
81 callbacks = ac.getRequirements();
83 fillCallbacks(callbacks, values);
84 ac.submitRequirements(callbacks);
86 System.err.println( "Failed to submit callbacks!");
112 protected void fillCallbacks(Callback[] callbacks, Hashtable values) argument
115 for (int i = 0; i < callbacks.length; i++) {
116 if (callbacks[i] instanceof NameCallback) {
117 NameCallback nc = (NameCallback) callbacks[i];
119 } else if (callbacks[
[all...]
/forgerock/openam-v13/openam-sts/openam-soap-sts/openam-soap-sts-server/src/main/java/org/forgerock/openam/sts/soap/
H A DSoapSTSCallbackHandler.java46 public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { argument
47 for (int i = 0; i < callbacks.length; i++) {
48 if (callbacks[i] instanceof WSPasswordCallback) {
49 WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];
66 throw new UnsupportedCallbackException(callbacks[i]);
75 (callbacks[i] != null ? callbacks[i].getClass().getCanonicalName() : null));
76 throw new UnsupportedCallbackException(callbacks[i]);

Completed in 2634 milliseconds

1234567891011