2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
6 package org.collectionspace.hello.services.nuxeo;
9 import javax.security.auth.callback.Callback;
14 * An implementation of Callback that simply obtains an Object to be used
15 * as the authentication credential. Interpretation of the Object is up to
16 * the LoginModules that validate the credential.
18 * @author Scott.Stark@jboss.org
20 public class NuxeoCallback implements Callback {
22 private final String prompt;
24 private Object credential;
26 public NuxeoCallback() {
30 public NuxeoCallback(String prompt) {
34 public String getPrompt() {
38 public Object getCredential() {
42 public void setCredential(Object credential) {
43 this.credential = credential;
46 public void clearCredential() {