|
| 1 | +/* |
| 2 | +* Copyright 2018 - Present Okta, Inc. |
| 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 | +* http://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 | + |
| 17 | +// AUTO-GENERATED! DO NOT EDIT FILE DIRECTLY |
| 18 | + |
| 19 | +package okta |
| 20 | + |
| 21 | +import ( |
| 22 | + "time" |
| 23 | +) |
| 24 | + |
| 25 | +type CustomHotpUserFactor struct { |
| 26 | + Embedded interface{} `json:"_embedded,omitempty"` |
| 27 | + Links interface{} `json:"_links,omitempty"` |
| 28 | + Created *time.Time `json:"created,omitempty"` |
| 29 | + FactorType string `json:"factorType,omitempty"` |
| 30 | + Id string `json:"id,omitempty"` |
| 31 | + LastUpdated *time.Time `json:"lastUpdated,omitempty"` |
| 32 | + Provider string `json:"provider,omitempty"` |
| 33 | + Status string `json:"status,omitempty"` |
| 34 | + Verify *VerifyFactorRequest `json:"verify,omitempty"` |
| 35 | + FactorProfileId string `json:"factorProfileId,omitempty"` |
| 36 | + Profile *CustomHotpUserFactorProfile `json:"profile,omitempty"` |
| 37 | +} |
| 38 | + |
| 39 | +func NewCustomHotpUserFactor() *CustomHotpUserFactor { |
| 40 | + return &CustomHotpUserFactor{ |
| 41 | + FactorType: "hotp", |
| 42 | + } |
| 43 | +} |
| 44 | + |
| 45 | +func (a *CustomHotpUserFactor) IsUserFactorInstance() bool { |
| 46 | + return true |
| 47 | +} |
0 commit comments