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

com.princexml.wrapper.enums.KeyBits Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2021 YesLogic Pty. Ltd.
 * All rights reserved.
 */

package com.princexml.wrapper.enums;

/**
 * Encryption key sizes.
 */
public enum KeyBits {
    /** Equates to the integer {@code 40}. */
    BITS40(40),
    /** Equates to the integer {@code 128}. */
    BITS128(128);

    private final int keyBits;

    KeyBits(int keyBits) {
        this.keyBits = keyBits;
    }

    /**
     * Return the underlying {@code KeyBits} value.
     * @return The underlying KeyBits value.
     */
    public int getValue() {
        return this.keyBits;
    }

    @Override
    public String toString() {
        return Integer.toString(this.keyBits);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy