All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.mibos.commons.crypt.CryptoInitializationProblem Maven / Gradle / Ivy

/*
 * Copyright 2014 Michael Bock
 *
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file 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 de.mibos.commons.crypt;

import javax.annotation.Nonnull;
import javax.annotation.concurrent.Immutable;
import javax.annotation.concurrent.ThreadSafe;

/**
 * CryptoInitializationProblem encapsulates all exceptions that may be thrown by the
 * java crypto API. If you use the predefined Crypt-Objects, this exception should
 * never be thrown, except for the case you use do not have replaced
 * the security policies in $JAVA_HOME/jre/lib/security,
 * + @see http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
 *
 * @author Michael Bock
 * @version 1.5
 * @since 1.0
 * $Id: CryptoInitializationProblem.java 78 2014-10-08 20:00:18Z michaels-apps $
 */
@SuppressWarnings("WeakerAccess")
@ThreadSafe
@Immutable
public class CryptoInitializationProblem extends RuntimeException {

    private static final long serialVersionUID = 9011320620474216108L;

    /**
     * Creates a CryptoInitializationProblem
     *
     * @param message the exception message
     */
    public CryptoInitializationProblem(@Nonnull final String message) {
        super(message);
    }

    /**
     * Creates a CryptoInitializationProblem
     *
     * @param message the exception message
     * @param cause   the original java crypto api exception
     */
    public CryptoInitializationProblem(@Nonnull final String message, @Nonnull final Throwable cause) {
        super(message, cause);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy