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

org.aeonbits.owner.crypto.AbstractDecryptor Maven / Gradle / Ivy

There is a newer version: 1.0.12
Show newest version
package org.aeonbits.owner.crypto;

/**
 * An abstract implementation of Decryptor.
 * It implements the decrypt( String, String ).
 */
public abstract class AbstractDecryptor
implements Decryptor {
    @Override
    public String decrypt( String value, String defaultValue ) {
        try {
            return this.decrypt( value );
        } catch ( IllegalArgumentException cause ) {
            return defaultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy