Posts

how to do LDAP paged search via spring-ldap?

Image
When an LDAP client is accessing a server across a slow connection, or if the client suspects that the result set from a given query may be very large, the client should be able to retrieve a result set in small pieces. The Simple Paged Result extended control allows this type of retrieval by allowing a one-way walk through a result set. Options on this control allow the client to set the initial page size and reset the page size with each subsequent request to the server. The Simple Paged Resu  

2023 April Adsense Report

Image
RPM CA$0.84 presenting 1.88K times. income increase CA0.58$ it is growing, slowly. next goal: 1$ CA per month. published 12 posts 4 more posts than last month. not bad. errong.win still still not ready to show ads low value content!!!  

How to Write&Read csv file in Java?

Image
use OpenCSV OpenCSV is able to serialize .csv files into preset and reusable schemas implemented as annotated Java pojo beans <!-- https://mvnrepository.com/artifact/com.opencsv/opencsv --> <dependency> <groupId>com.opencsv</groupId> <artifactId>opencsv</artifactId> <version>5.7.1</version> </dependency> Write CSV Read CSV opencsv –  

How to do AES encryption&decryption in java?

Image
show you the code: Base64 UrlEncoder for query parameter the key and iv are configured in properties in base64 format. So I use Base64 Decoder decode them before create SecretKeySpec and IvParameterSpec. new SecretKeySpec(Base64.getDecoder().decode(aliasKey), "AES"), new IvParameterSpec(Base64.getDecoder().decode(aliasIv))); Since I am using AES to encrypt query parameter which will be transport via internet. so I use Base64 UrlEncoder for encrption and UrlDecoder for decryption. return Ba