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 from a base64 encoded keystore file.

Author(s):
Mirko Caserta (mirko.caserta@gmail.com)
    private String password;
    private String type = "JKS";
    private KeyStore keystore;

    
Sets the BASE64 encoded version of the keystore file.

Parameters:
base64EncodedKeyStoreFile the BASE64 encoded version of the keystore file
    public void setBase64EncodedKeyStoreFile(String base64EncodedKeyStoreFile) {
        this. = base64EncodedKeyStoreFile;
    }

    
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();
        .load(in.toCharArray());
    }
New to GrepCode? Check out our FAQ X