Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2012 Mirko Caserta
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this software except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *  http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.springcryptoutils.core.spring;
    public void init() {
        // keystore
        registerBeanDefinitionParser("keystore"new KeyStoreBeanDefinitionParser());
        registerBeanDefinitionParser("defaultKeystore"new DefaultKeyStoreBeanDefinitionParser());
        registerBeanDefinitionParser("keystoreRegistry"new KeyStoreRegistryBeanDefinitionParser());
        // key
        registerBeanDefinitionParser("publicKey"new PublicKeyBeanDefinitionParser());
        registerBeanDefinitionParser("privateKey"new PrivateKeyBeanDefinitionParser());
        registerBeanDefinitionParser("secretKey"new SecretKeyBeanDefinitionParser());
        registerBeanDefinitionParser("publicKeyRegistryByAlias"new PublicKeyRegistryByAliasBeanDefinitionParser());
        registerBeanDefinitionParser("privateKeyRegistryByAlias"new PrivateKeyRegistryByAliasBeanDefinitionParser());
        // certificate
        registerBeanDefinitionParser("certificateRegistryByAlias"new CertificateRegistryByAliasBeanDefinitionParser());
        registerBeanDefinitionParser("certificate"new CertificateBeanDefinitionParser());
        // signature
        registerBeanDefinitionParser("verifier"new VerifierBeanDefinitionParser());
        registerBeanDefinitionParser("signerWithChoosersByAlias"new SignerWithChoosersByAliasBeanDefinitionParser());
        registerBeanDefinitionParser("verifierWithChoosersByAlias"new VerifierWithChoosersByAliasBeanDefinitionParser());
        registerBeanDefinitionParser("signerWithChooserByPrivateKeyId"new SignerWithChooserByPrivateKeyIdBeanDefinitionParser());
        registerBeanDefinitionParser("verifierWithChooserByPublicKeyId"new VerifierWithChooserByPublicKeyIdBeanDefinitionParser());
        registerBeanDefinitionParser("b64SignerWithChoosersByAlias"new Base64EncodedSignerWithChoosersByAliasBeanDefinitionParser());
        registerBeanDefinitionParser("b64VerifierWithChoosersByAlias"new Base64EncodedVerifierWithChoosersByAliasBeanDefinitionParser());
        registerBeanDefinitionParser("b64SignerWithChooserByPrivateKeyId"new Base64EncodedSignerWithChooserByPrivateKeyIdBeanDefinitionParser());
        registerBeanDefinitionParser("b64VerifierWithChooserByPublicKeyId"new Base64EncodedVerifierWithChooserByPublicKeyIdBeanDefinitionParser());
        // symmetric ciphers
        registerBeanDefinitionParser("symmetricKeyGenerator"new SymmetricKeyGeneratorBeanDefinitionParser());
        registerBeanDefinitionParser("symmetricCipherer"new SymmetricCiphererBeanDefinitionParser());
        registerBeanDefinitionParser("symmetricCiphererWithStaticKey"new SymmetricCiphererWithStaticKeyBeanDefinitionParser());
        registerBeanDefinitionParser("b64SymmetricCiphererWithStaticKey"new Base64EncodedSymmetricCiphererWithStaticKeyBeanDefinitionParser());
        // asymmetric ciphers
        registerBeanDefinitionParser("asymmetricCipherer"new AsymmetricCiphererBeanDefinitionParser());
        registerBeanDefinitionParser("asymmetricCiphererWithChooserByKeyId"new AsymmetricCiphererWithChooserByKeyIdBeanDefinitionParser());
        registerBeanDefinitionParser("b64AsymmetricCiphererWithChooserByKeyId"new Base64EncodedAsymmetricCiphererWithChooserByKeyIdBeanDefinitionParser());
        // message digests
        registerBeanDefinitionParser("digester"new DigesterBeanDefinitionParser());
        // message authentication codes
    }
New to GrepCode? Check out our FAQ X