Skip to content

Replace deprecated Base64.decode() with Base64.getDecoder().decode()#340

Closed
dodgex wants to merge 1 commit intospring-projects:mainfrom
dodgex:patch-1
Closed

Replace deprecated Base64.decode() with Base64.getDecoder().decode()#340
dodgex wants to merge 1 commit intospring-projects:mainfrom
dodgex:patch-1

Conversation

@dodgex
Copy link
Copy Markdown
Contributor

@dodgex dodgex commented Jan 30, 2026

Replace usage of org.springframework.security.crypto.codec.Base64 that was removed in Spring Security 7 with java.util.Base64

see #338

Signed-off-by: Kay J. <dodgex@users.noreply.github.com>
@venkatnaveen7
Copy link
Copy Markdown

Thanks for suggestion. Even today while im upgrading to spring 7.0.2 the last spring-security-kerberos-core.version was 2.2.0 which is not supported in spring 7. ended up in java.lang.ClassNotFoundException: org.springframework.security.crypto.codec.Base64

@dodgex
Copy link
Copy Markdown
Contributor Author

dodgex commented Feb 3, 2026

Thanks for suggestion. Even today while im upgrading to spring 7.0.2 the last spring-security-kerberos-core.version was 2.2.0 which is not supported in spring 7. ended up in java.lang.ClassNotFoundException: org.springframework.security.crypto.codec.Base64

Seeing how "active" this project is maintained, I am afraid that a fixed releases will take some time. But you can add the dummy org.springframework.security.crypto.codec.Base64 from linked issue to make this work with Spring Security 7.

@dodgex
Copy link
Copy Markdown
Contributor Author

dodgex commented Feb 17, 2026

Fore everyone stumbling on this: Switch your dependencies on the kerberos modules to groupId org.springframework.security (instead of org.springframework.security.kerberos) and use the same version as your other spring security dependencies. this project has been integrated into the main repo for spring security

        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-kerberos-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-kerberos-client</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-kerberos-core</artifactId>
        </dependency>

@dodgex dodgex closed this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants