/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: Login.java,v 1.5 2008/06/25 05:41:13 qcheng Exp $
*
*/
/**
* Portions Copyrighted 2014 ForgeRock AS
*/
public class Login {
this.loginIndexName = loginIndexName;
}
this.loginIndexName = loginIndexName;
}
throws AuthLoginException {
} else {
}
return lc;
}
throws UnsupportedCallbackException {
int i = 0;
try {
if (callbacks[i] instanceof TextOutputCallback) {
} else if (callbacks[i] instanceof NameCallback) {
} else if (callbacks[i] instanceof PasswordCallback) {
} else if (callbacks[i] instanceof TextInputCallback) {
} else if (callbacks[i] instanceof ChoiceCallback) {
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
debugMessage("Got TextOutputCallback");
// display the message according to the specified type
switch (toc.getMessageType()) {
break;
case TextOutputCallback.ERROR:
break;
case TextOutputCallback.WARNING:
break;
break;
default:
debugMessage("Unsupported message type: " +
toc.getMessageType());
}
}
throws IOException {
// prompt the user for a username
}
throws IOException {
// prompt for text input
}
throws IOException {
// prompt the user for sensitive information
readLine();
}
throws IOException {
// ignore the provided defaultValue
}
}
throws UnsupportedCallbackException {
boolean succeed = false;
// get information requested from module
while (lc.hasMoreRequirements()) {
}
}
succeed = true;
} else {
}
return succeed;
}
throws AuthLoginException {
}
}
try {
}
} catch (IOException e) {
e.printStackTrace();
} catch (AuthLoginException e) {
e.printStackTrace();
} catch (UnsupportedCallbackException e) {
e.printStackTrace();
}
}
}