This file contains hidden or 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
import java.util.List; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
public final class ListApplePublicKey { | |
private final List<ApplePublicKey> keys; | |
public ListApplePublicKey(@JsonProperty("keys") List<ApplePublicKey> keys) { | |
this.keys = keys; |
This file contains hidden or 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
public final class TokenResponse { | |
private String access_token; | |
private String token_type; | |
private Long expires_in; | |
private String refresh_token; | |
private String id_token; | |
public String getAccess_token() { | |
return access_token; |
This file contains hidden or 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
import com.fasterxml.jackson.annotation.JsonProperty; | |
public final class ApplePublicKey { | |
private final String kty; | |
private final String kid; | |
private final String use; | |
private final String alg; | |
private final String n; | |
private final String e; |
This file contains hidden or 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
public class AppleIDTokenPayload { | |
private String iss; | |
private String aud; | |
private Long exp; | |
private Long iat; | |
private String sub;// users unique id | |
private String at_hash; | |
private Long auth_time; | |
private Boolean nonce_supported; |
This file contains hidden or 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
/***Imports ****/ | |
import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; | |
import org.bouncycastle.openssl.PEMParser; | |
import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter; | |
import java.security.PrivateKey; | |
import java.security.PublicKey; | |
import io.jsonwebtoken.JwsHeader; | |
import io.jsonwebtoken.Jwts; | |
import io.jsonwebtoken.SignatureAlgorithm; | |
import java.util.Date; |
This file contains hidden or 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
/***** | |
* Tekraze.com for more | |
* | |
*****/ | |
///Imports | |
import org.springframework.data.domain.Page; | |
import org.springframework.data.domain.PageImpl; | |
import org.springframework.data.domain.PageRequest; | |
import org.springframework.data.domain.Pageable; |