-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bruk kotlin annoteringer for å redefinere getters
- Loading branch information
Jan-Olav Eide
committed
Oct 14, 2024
1 parent
be53395
commit ce4dae3
Showing
9 changed files
with
43 additions
and
42 deletions.
There are no files selected for viewing
21 changes: 11 additions & 10 deletions
21
...main/kotlin/no/nav/security/token/support/client/core/oauth2/OAuth2AccessTokenResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package no.nav.security.token.support.client.core.oauth2 | ||
|
||
data class OAuth2AccessTokenResponse (@get:JvmName("getAccessToken") var access_token : String? = null, | ||
@get:JvmName("getExpiresAt") var expires_at : Int? = null, | ||
@get:JvmName("getExpiresIn") var expires_in : Int? = 60, | ||
private val additionalParameters : Map<String, Any> = emptyMap()) { | ||
data class OAuth2AccessTokenResponse (@get:JvmName("getAccessToken") var access_token : String? = null, | ||
@get:JvmName("getExpiresAt") var expires_at : Int? = null, | ||
@get:JvmName("getExpiresIn") var expires_in : Int? = 60, | ||
private val additionalParameters : Map<String, Any> = emptyMap()) { | ||
|
||
@Deprecated(message = "Ikke bruk denne", replaceWith = ReplaceWith("getAccessToken()")) | ||
fun getAccess_token() = access_token | ||
@Deprecated(message = "Ikke bruk denne", replaceWith = ReplaceWith("getExpiresAt()")) | ||
fun getExpires_at() = expires_at | ||
@Deprecated(message = "Ikke bruk denne", replaceWith = ReplaceWith("getExpiresIn()")) | ||
fun getExpires_in() = expires_in | ||
|
||
@Deprecated(message = "Ikke bruk denne", replaceWith = ReplaceWith("getAccessToken()")) | ||
fun getAccess_token() = access_token | ||
@Deprecated(message = "Ikke bruk denne", replaceWith = ReplaceWith("getExpiresAt()")) | ||
fun getExpires_at() = expires_at | ||
@Deprecated(message = "Ikke bruk denne", replaceWith = ReplaceWith("getExpiresIn()")) | ||
fun getExpires_in() = expires_in | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters