001// SPDX-FileCopyrightText: 2018 Paul Schaub <vanitasvitae@fsfe.org> 002// 003// SPDX-License-Identifier: Apache-2.0 004 005package org.pgpainless.key.generation.type.rsa; 006 007import org.pgpainless.key.generation.type.KeyLength; 008 009public enum RsaLength implements KeyLength { 010 @Deprecated 011 _1024(1024), 012 @Deprecated 013 _2048(2048), 014 _3072(3072), 015 _4096(4096), 016 _8192(8192), 017 ; 018 019 private final int length; 020 021 RsaLength(int length) { 022 this.length = length; 023 } 024 025 @Override 026 public int getLength() { 027 return length; 028 } 029}