// 
// Decompiled by Procyon v0.6.0
// 

package com.google.crypto.tink;

import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.security.GeneralSecurityException;
import javax.annotation.Nullable;
import com.google.errorprone.annotations.Immutable;
import com.google.errorprone.annotations.CheckReturnValue;

@CheckReturnValue
@Immutable
public final class SecretKeyAccess
{
    private static final SecretKeyAccess INSTANCE;
    
    private SecretKeyAccess() {
    }
    
    static SecretKeyAccess instance() {
        return SecretKeyAccess.INSTANCE;
    }
    
    @CanIgnoreReturnValue
    public static SecretKeyAccess requireAccess(@Nullable final SecretKeyAccess access) throws GeneralSecurityException {
        if (access == null) {
            throw new GeneralSecurityException("SecretKeyAccess is required");
        }
        return access;
    }
    
    static {
        INSTANCE = new SecretKeyAccess();
    }
}
