3c5027de3c8a5cfea1de863cd628cd86332eea60
Files Diff
- Added: 8
- Removed: 8
- Renamed: 0
- Modified: 42
Refactorings reported:
Refactoring Name | Occurences | ||
---|---|---|---|
Change Parameter Type | 1 | ||
Change Parameter Type status : Status to status : KeyStatus in method public setStatus(status KeyStatus) : void in class org.keycloak.keys.KeyMetadata | From | To | |
Move Method | 11 | ||
Move Method public getSecretKey() : SecretKey from class org.keycloak.keys.FailsafeSecretKeyProvider to public getSecretKey() : SecretKey from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Method private isActive() : boolean from class org.keycloak.keys.AbstractRsaKeyProvider to public isActive() : boolean from class org.keycloak.crypto.KeyStatus | From | To | |
Move Method public getKid() : String from class org.keycloak.keys.FailsafeRsaKeyProvider to public getKid() : String from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Method public getSecretKey(kid String) : SecretKey from class org.keycloak.keys.GeneratedSecretKeyProvider to public getSecretKey() : SecretKey from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Method private isEnabled() : boolean from class org.keycloak.keys.GeneratedSecretKeyProvider to public isEnabled() : boolean from class org.keycloak.crypto.KeyStatus | From | To | |
Move Method public getKid() : String from class org.keycloak.keys.AbstractRsaKeyProvider to public getKid() : String from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Method public getKid() : String from class org.keycloak.keys.GeneratedSecretKeyProvider to public getKid() : String from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Method public getKid() : String from class org.keycloak.keys.FailsafeSecretKeyProvider to public getKid() : String from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Method private isActive() : boolean from class org.keycloak.keys.GeneratedSecretKeyProvider to public isActive() : boolean from class org.keycloak.crypto.KeyStatus | From | To | |
Move Method public getSecretKey() : SecretKey from class org.keycloak.keys.GeneratedSecretKeyProvider to public getSecretKey() : SecretKey from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Method private isEnabled() : boolean from class org.keycloak.keys.AbstractRsaKeyProvider to public isEnabled() : boolean from class org.keycloak.crypto.KeyStatus | From | To | |
Move Attribute | 2 | ||
Move Attribute private kid : String from class org.keycloak.keys.FailsafeRsaKeyProvider to private kid : String from class org.keycloak.crypto.KeyWrapper | From | To | |
Move Attribute private kid : String from class org.keycloak.keys.FailsafeSecretKeyProvider to private kid : String from class org.keycloak.crypto.KeyWrapper | From | To | |
Extract Class | 6 | ||
Extract Class org.keycloak.crypto.KeyWrapper from class org.keycloak.keys.FailsafeRsaKeyProvider | From | To | |
Extract Class org.keycloak.crypto.KeyStatus from class org.keycloak.keys.AbstractRsaKeyProvider | From | To | |
Extract Class org.keycloak.crypto.KeyWrapper from class org.keycloak.keys.FailsafeSecretKeyProvider | From | To | |
Extract Class org.keycloak.crypto.KeyWrapper from class org.keycloak.keys.GeneratedSecretKeyProvider | From | To | |
Extract Class org.keycloak.crypto.KeyWrapper from class org.keycloak.keys.AbstractRsaKeyProvider | From | To | |
Extract Class org.keycloak.crypto.KeyStatus from class org.keycloak.keys.GeneratedSecretKeyProvider | From | To | |
Move And Rename Class | 2 | ||
Move And Rename Class org.keycloak.keys.KeyMetadata.Status moved and renamed to org.keycloak.crypto.KeyUse | From | To | |
Move And Rename Class org.keycloak.keys.AbstractRsaKeyProvider.Keys moved and renamed to org.keycloak.crypto.KeyWrapper | From | To | |
Split Parameter | 1 | ||
Split Parameter model : ComponentModel to [algorithm : String, type : String] in method public GeneratedSecretKeyProvider(model ComponentModel, use KeyUse, type String, algorithm String) in class org.keycloak.keys.GeneratedSecretKeyProvider | From | To | |
Change Variable Type | 3 | ||
Change Variable Type h : AesKeyProvider to key : KeyWrapper in method public getActiveAesKey(realm RealmModel) : ActiveAesKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Change Variable Type m : RsaKeyMetadata to key : KeyWrapper in method public getKeyMetadata() : KeysMetadataRepresentation in class org.keycloak.services.resources.admin.KeyResource | From | To | |
Change Variable Type h : HmacKeyProvider to key : KeyWrapper in method public getActiveHmacKey(realm RealmModel) : ActiveHmacKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Inline Variable | 2 | ||
Inline Variable kid : String in method public getActiveHmacKey(realm RealmModel) : ActiveHmacKey from class org.keycloak.keys.DefaultKeyManager | From | To | |
Inline Variable kid : String in method public getActiveAesKey(realm RealmModel) : ActiveAesKey from class org.keycloak.keys.DefaultKeyManager | From | To | |
Extract Method | 7 | ||
Extract Method public getActiveKey(realm RealmModel, use KeyUse, algorithm String) : KeyWrapper extracted from public getActiveHmacKey(realm RealmModel) : ActiveHmacKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Extract Method public getKey(realm RealmModel, kid String, use KeyUse, algorithm String) : KeyWrapper extracted from public getRsaCertificate(realm RealmModel, kid String) : Certificate in class org.keycloak.keys.DefaultKeyManager | From | To | |
Extract Method public getKey(realm RealmModel, kid String, use KeyUse, algorithm String) : KeyWrapper extracted from public getRsaPublicKey(realm RealmModel, kid String) : PublicKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Extract Method public getActiveKey(realm RealmModel, use KeyUse, algorithm String) : KeyWrapper extracted from public getActiveRsaKey(realm RealmModel) : ActiveRsaKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Extract Method public getActiveKey(realm RealmModel, use KeyUse, algorithm String) : KeyWrapper extracted from public getActiveAesKey(realm RealmModel) : ActiveAesKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Extract Method public getKey(realm RealmModel, kid String, use KeyUse, algorithm String) : KeyWrapper extracted from public getAesSecretKey(realm RealmModel, kid String) : SecretKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Extract Method public getKey(realm RealmModel, kid String, use KeyUse, algorithm String) : KeyWrapper extracted from public getHmacSecretKey(realm RealmModel, kid String) : SecretKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Rename Method | 3 | ||
Rename Method protected loadKeys(realm RealmModel, model ComponentModel) : Keys renamed to protected loadKey(realm RealmModel, model ComponentModel) : KeyWrapper in class org.keycloak.keys.JavaKeystoreKeyProvider | From | To | |
Rename Method public loadKeys(realm RealmModel, model ComponentModel) : Keys renamed to public loadKey(realm RealmModel, model ComponentModel) : KeyWrapper in class org.keycloak.keys.ImportedRsaKeyProvider | From | To | |
Rename Method protected abstract loadKeys(realm RealmModel, model ComponentModel) : Keys renamed to protected abstract loadKey(realm RealmModel, model ComponentModel) : KeyWrapper in class org.keycloak.keys.AbstractRsaKeyProvider | From | To | |
Rename Variable | 3 | ||
Rename Variable m : RsaKeyMetadata to key : KeyWrapper in method public getKeyMetadata() : KeysMetadataRepresentation in class org.keycloak.services.resources.admin.KeyResource | From | To | |
Rename Variable h : HmacKeyProvider to key : KeyWrapper in method public getActiveHmacKey(realm RealmModel) : ActiveHmacKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Rename Variable h : AesKeyProvider to key : KeyWrapper in method public getActiveAesKey(realm RealmModel) : ActiveAesKey in class org.keycloak.keys.DefaultKeyManager | From | To | |
Change Return Type | 6 | ||
Change Return Type AesKeyProvider to GeneratedAesKeyProvider in method public create(session KeycloakSession, model ComponentModel) : GeneratedAesKeyProvider in class org.keycloak.keys.GeneratedAesKeyProviderFactory | From | To | |
Change Return Type Status to KeyStatus in method public getStatus() : KeyStatus in class org.keycloak.keys.KeyMetadata | From | To | |
Change Return Type Keys to KeyWrapper in method protected abstract loadKey(realm RealmModel, model ComponentModel) : KeyWrapper in class org.keycloak.keys.AbstractRsaKeyProvider | From | To | |
Change Return Type Keys to KeyWrapper in method public loadKey(realm RealmModel, model ComponentModel) : KeyWrapper in class org.keycloak.keys.ImportedRsaKeyProvider | From | To | |
Change Return Type Keys to KeyWrapper in method protected loadKey(realm RealmModel, model ComponentModel) : KeyWrapper in class org.keycloak.keys.JavaKeystoreKeyProvider | From | To | |
Change Return Type HmacKeyProvider to GeneratedHmacKeyProvider in method public create(session KeycloakSession, model ComponentModel) : GeneratedHmacKeyProvider in class org.keycloak.keys.GeneratedHmacKeyProviderFactory | From | To | |
Rename Attribute | 4 | ||
Rename Attribute enabled : boolean to algorithm : String in class org.keycloak.keys.GeneratedSecretKeyProvider | From | To | |
Rename Attribute active : boolean to type : String in class org.keycloak.keys.GeneratedSecretKeyProvider | From | To | |
Rename Attribute KID : String to KEY : KeyWrapper in class org.keycloak.keys.FailsafeRsaKeyProvider | From | To | |
Rename Attribute kid : String to key : KeyWrapper in class org.keycloak.keys.FailsafeRsaKeyProvider | From | To | |
Change Attribute Type | 7 | ||
Change Attribute Type KEY : SecretKey to KEY : KeyWrapper in class org.keycloak.keys.FailsafeSecretKeyProvider | From | To | |
Change Attribute Type key : SecretKey to key : KeyWrapper in class org.keycloak.keys.FailsafeSecretKeyProvider | From | To | |
Change Attribute Type active : boolean to type : String in class org.keycloak.keys.GeneratedSecretKeyProvider | From | To | |
Change Attribute Type status : Status to status : KeyStatus in class org.keycloak.keys.KeyMetadata | From | To | |
Change Attribute Type enabled : boolean to algorithm : String in class org.keycloak.keys.GeneratedSecretKeyProvider | From | To | |
Change Attribute Type kid : String to key : KeyWrapper in class org.keycloak.keys.FailsafeRsaKeyProvider | From | To | |
Change Attribute Type KID : String to KEY : KeyWrapper in class org.keycloak.keys.FailsafeRsaKeyProvider | From | To |