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

com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/jwt_rsa_ssa_pss.proto

package com.google.crypto.tink.proto;

/**
 * 
 * See https://datatracker.ietf.org/doc/html/rfc7518#section-3.5
 * 
* * Protobuf enum {@code google.crypto.tink.JwtRsaSsaPssAlgorithm} */ public enum JwtRsaSsaPssAlgorithm implements com.google.protobuf.Internal.EnumLite { /** * PS_UNKNOWN = 0; */ PS_UNKNOWN(0), /** *
   * RSASSA-PSS using SHA-256 and MGF1 with SHA-256
   * 
* * PS256 = 1; */ PS256(1), /** *
   * RSASSA-PSS using SHA-384 and MGF1 with SHA-384
   * 
* * PS384 = 2; */ PS384(2), /** *
   * RSASSA-PSS using SHA-512 and MGF1 with SHA-512
   * 
* * PS512 = 3; */ PS512(3), UNRECOGNIZED(-1), ; /** * PS_UNKNOWN = 0; */ public static final int PS_UNKNOWN_VALUE = 0; /** *
   * RSASSA-PSS using SHA-256 and MGF1 with SHA-256
   * 
* * PS256 = 1; */ public static final int PS256_VALUE = 1; /** *
   * RSASSA-PSS using SHA-384 and MGF1 with SHA-384
   * 
* * PS384 = 2; */ public static final int PS384_VALUE = 2; /** *
   * RSASSA-PSS using SHA-512 and MGF1 with SHA-512
   * 
* * PS512 = 3; */ public static final int PS512_VALUE = 3; @java.lang.Override public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static JwtRsaSsaPssAlgorithm valueOf(int value) { return forNumber(value); } public static JwtRsaSsaPssAlgorithm forNumber(int value) { switch (value) { case 0: return PS_UNKNOWN; case 1: return PS256; case 2: return PS384; case 3: return PS512; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< JwtRsaSsaPssAlgorithm> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { @java.lang.Override public JwtRsaSsaPssAlgorithm findValueByNumber(int number) { return JwtRsaSsaPssAlgorithm.forNumber(number); } }; public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier() { return JwtRsaSsaPssAlgorithmVerifier.INSTANCE; } private static final class JwtRsaSsaPssAlgorithmVerifier implements com.google.protobuf.Internal.EnumVerifier { static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new JwtRsaSsaPssAlgorithmVerifier(); @java.lang.Override public boolean isInRange(int number) { return JwtRsaSsaPssAlgorithm.forNumber(number) != null; } }; private final int value; private JwtRsaSsaPssAlgorithm(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.crypto.tink.JwtRsaSsaPssAlgorithm) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy