Package tigase.push.fcm
Class Credentials
java.lang.Object
tigase.push.fcm.Credentials
-
Constructor Summary
ConstructorsConstructorDescriptionCredentials(String projectId, String privateKeyId, PrivateKey privateKey, String clientEmail, String authUri, URI tokenUri) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringstatic Credentialsstatic CredentialsfromReader(Reader reader) static CredentialsfromString(String data) voidrefresh()protected CompletableFuture<AccessToken> refreshToken(HttpClient client) toString()
-
Constructor Details
-
Credentials
-
-
Method Details
-
fromFile
public static Credentials fromFile(File file) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException -
fromString
public static Credentials fromString(String data) throws NoSuchAlgorithmException, InvalidKeySpecException -
fromReader
public static Credentials fromReader(Reader reader) throws NoSuchAlgorithmException, InvalidKeySpecException -
getProjectId
-
refresh
public void refresh() -
toString
-
createAssertion
protected String createAssertion() throws NoSuchAlgorithmException, InvalidKeyException, SignatureException -
refreshToken
-