| 1 | /** | |
| 2 |    Copyright 2018 Carlos Macasaet | |
| 3 | ||
| 4 |    Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 |    you may not use this file except in compliance with the License. | |
| 6 |    You may obtain a copy of the License at | |
| 7 | ||
| 8 |        https://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | ||
| 10 |    Unless required by applicable law or agreed to in writing, software | |
| 11 |    distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 |    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 |    See the License for the specific language governing permissions and | |
| 14 |    limitations under the License. | |
| 15 |  */ | |
| 16 | package com.macasaet.fernet.aws.secretsmanager.rotation; | |
| 17 | ||
| 18 | /** | |
| 19 |  * The stage of a secret's lifecycle. When a new secret is created, it is first {@link #PENDING}. When it is activated, | |
| 20 |  * it will be {@link #CURRENT}. The last current secret is available as {@link #PREVIOUS}. | |
| 21 |  * | |
| 22 |  * <p>Copyright © 2018 Carlos Macasaet.</p> | |
| 23 |  * @author Carlos Macasaet | |
| 24 |  */ | |
| 25 | public enum Stage { | |
| 26 | ||
| 27 |     CURRENT, | |
| 28 |     PENDING, | |
| 29 |     PREVIOUS; | |
| 30 | ||
| 31 |     public String getAwsName() { | |
| 32 | 1
1. getAwsName : mutated return of Object value for com/macasaet/fernet/aws/secretsmanager/rotation/Stage::getAwsName to ( if (x != null) null else throw new RuntimeException ) → KILLED |         return "AWS" + name(); | 
| 33 |     } | |
| 34 | ||
| 35 | } | |
| Mutations | ||
| 32 | 1.1 |