Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.google.code.springcryptoutils.core.keystore;
 
 
A spring bean factory for instancing KeyStore objects.

Author(s):
Mirko Caserta (mirko.caserta@gmail.com)
public class KeyStoreFactoryBean implements FactoryBeanInitializingBean {
    private Resource location;
    private String password;
    private String type = "JKS";
    private KeyStore keystore;

    
Sets the keystore location.

Parameters:
location the keystore location
    public void setLocation(Resource location) {
        this. = location;
    }

    
Sets the keystore password.

Parameters:
password the keystore password
    public void setPassword(String password) {
        this. = password;
    }

    
Sets the keystore type (defaults to JKS).

Parameters:
type the keystore type (defaults to JKS)
    public void setType(String type) {
        this. = type;
    }
    public Object getObject() {
        return ;
    }
    public Class getObjectType() {
        return KeyStore.class;
    }
    public boolean isSingleton() {
        return true;
    }
         = KeyStore.getInstance();
    }
New to GrepCode? Check out our FAQ X