NetletJSSEAuthContexPKCSImpl.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 » NetletJSSEAuthContexPKCSImpl.java
package com.sun.portal.netlet.crypt.jsse;

import java.io.InputStream;

public class NetletJSSEAuthContexPKCSImpl implements NetletJSSEAuthContext {
    /*
     * getKeyStoreStream      Reads the keystore and returns the stream
     * @return
     */
    private String keyStorePath = null;
    private char[] password = null;
    
    public InputStream getKeyStoreStream(){        
        return null;
    }
    
    /*
     * getKeyStoreType        Reads the keystore type and returns the type
     * @return
     */
    
    public KeyStoreType getKeyStoreType(){
        return KeyStoreType.PKCS12;
    }
    
    /*
     * getKeyStorePassword    Reads the keystore passphrase and returns the passphrase
     * @return
     */
    
    public char[] getKeyStorePassword(){        
      return password;  
    }
    
    /*
     * setKeyStorePath        Reads the keystore file system path and returns the path
     * @return
     */
    public void setKeyStorePath(String store){
       keyStorePath = store;        
    }
    
    public void setKeyStorePassword(String passwd){ 
      password = new char[passwd.length()];
      passwd.getChars(0,passwd.length(),password,0);
    }
    
    /*
     * getKeyStorePath        Reads the keystore file system path and returns the path
     * @return
     */
    public String getKeyStorePath(){    
       return keyStorePath; 
    }
    
}
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.