github.com/aldelo/common@v1.5.1/wrapper/gin/ginjwtsignalgorithm/ginjwtsignalgorithm.go (about) 1 package ginjwtsignalgorithm 2 3 /* 4 * Copyright 2020-2023 Aldelo, LP 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 // go:generate gen-enumer -type GinJwtSignAlgorithm 20 21 type GinJwtSignAlgorithm int 22 23 const ( 24 UNKNOWN GinJwtSignAlgorithm = 0 25 HS256 GinJwtSignAlgorithm = 1 26 HS384 GinJwtSignAlgorithm = 2 27 HS512 GinJwtSignAlgorithm = 3 28 RS256 GinJwtSignAlgorithm = 4 29 RS384 GinJwtSignAlgorithm = 5 30 RS512 GinJwtSignAlgorithm = 6 31 ) 32 33 const ( 34 _GinJwtSignAlgorithmKey_0 = "UNKNOWN" 35 _GinJwtSignAlgorithmKey_1 = "HS256" 36 _GinJwtSignAlgorithmKey_2 = "HS384" 37 _GinJwtSignAlgorithmKey_3 = "HS512" 38 _GinJwtSignAlgorithmKey_4 = "RS256" 39 _GinJwtSignAlgorithmKey_5 = "RS384" 40 _GinJwtSignAlgorithmKey_6 = "RS512" 41 ) 42 43 const ( 44 _GinJwtSignAlgorithmCaption_0 = "UNKNOWN" 45 _GinJwtSignAlgorithmCaption_1 = "HS256" 46 _GinJwtSignAlgorithmCaption_2 = "HS384" 47 _GinJwtSignAlgorithmCaption_3 = "HS512" 48 _GinJwtSignAlgorithmCaption_4 = "RS256" 49 _GinJwtSignAlgorithmCaption_5 = "RS384" 50 _GinJwtSignAlgorithmCaption_6 = "RS512" 51 ) 52 53 const ( 54 _GinJwtSignAlgorithmDescription_0 = "UNKNOWN" 55 _GinJwtSignAlgorithmDescription_1 = "HS256" 56 _GinJwtSignAlgorithmDescription_2 = "HS384" 57 _GinJwtSignAlgorithmDescription_3 = "HS512" 58 _GinJwtSignAlgorithmDescription_4 = "RS256" 59 _GinJwtSignAlgorithmDescription_5 = "RS384" 60 _GinJwtSignAlgorithmDescription_6 = "RS512" 61 )