Example usage for javax.security.auth Destroyable destroy

List of usage examples for javax.security.auth Destroyable destroy

Introduction

In this page you can find the example usage for javax.security.auth Destroyable destroy.

Prototype

public default void destroy() throws DestroyFailedException 

Source Link

Document

Destroy this Object .

Usage

From source file:org.cryptomator.crypto.engine.impl.CryptorImpl.java

private void destroyQuietly(Destroyable d) {
    if (d == null) {
        return;//from   ww  w.  j av  a 2s .c  om
    }
    try {
        d.destroy();
    } catch (DestroyFailedException e) {
        // ignore
    }
}

From source file:org.cryptomator.crypto.aes256.Aes256Cryptor.java

private void destroyQuietly(Destroyable d) {
    try {//from  w ww  .j  a  v a2  s  .c o m
        d.destroy();
    } catch (DestroyFailedException e) {
        // ignore
    }
}