Code example for Provider

Methods: getName

0
    public static Provider defaultProvider = null;
 
    static { 
        defaultProvider = SpiEngUtils.isSupport(defaultType, srvKeyStore);
        JKSSupported = (defaultProvider != null);
        defaultProviderName = (JKSSupported ? defaultProvider.getName() : null);
    } 
 
    /** 
     * Additional class to create SecretKey object 
     */ 
    public static class SKey implements SecretKey {
        private String type;
 
        private byte[] encoded;
 
        public SKey(String type, byte[] encoded) {
            this.type = type;
            this.encoded = encoded;
        }