NetletJSSEAuthContext.java :  » Portal » Open-Portal » com » sun » portal » netlet » crypt » jsse » Java Open Source

Java Open Source » Portal » Open Portal 
Open Portal » com » sun » portal » netlet » crypt » jsse » NetletJSSEAuthContext.java
package com.sun.portal.netlet.crypt.jsse;

import java.io.InputStream;

/*
 * This interface will be implemented by application
 * that needs a callback to set the keystore path
 * and password.
 *
 * This is required because the password & path SHOULD be
 * prompted only if client authentication is turned
 * ON at the gateway. Therefore, the callback functions
 * will be invoked from within the SSL client handshake
 * routine. The only way we could detect if client
 * authentication is enabled or not is when JSSE
 * invokes chooseClientAlias of X509KeyManager.
 *
 * Currently, only JKS or PKCS12 are supported.
 *
 * The password and path information will be prompted only once.
 *
 */

public interface NetletJSSEAuthContext
 {
    /*
     * getKeyStoreStream      Reads the keystore and returns the stream
     * @return
     */
    public InputStream getKeyStoreStream();

    /*
     * getKeyStoreType        Reads the keystore type and returns the type
     * @return
     */
    public KeyStoreType getKeyStoreType();

    /*
     * getKeyStorePassword    Reads the keystore passphrase and returns the passphrase
     * @return
     */
    public char[] getKeyStorePassword();

    /*
     * getKeyStorePath        Reads the keystore file system path and returns the path
     * @return
     */
    public String getKeyStorePath();
    
    public void setKeyStorePath(String store);
    
    public void setKeyStorePassword(String passwd);

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.