Class ServiceAccountAuthenticationExample
- java.lang.Object
-
- com.blackberry.workspaces.sdk.api.examples.ServiceAccountAuthenticationExample
-
public class ServiceAccountAuthenticationExample extends Object
-
-
Constructor Summary
Constructors Constructor Description ServiceAccountAuthenticationExample(APISession apiSession)
Creates an instances of the WorkspacesExample class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateToken(String userEmail, String issuer, int durationMinutes, PrivateKey pKey, String encryptionAlgorithm)
-
-
-
Constructor Detail
-
ServiceAccountAuthenticationExample
public ServiceAccountAuthenticationExample(APISession apiSession)
Creates an instances of the WorkspacesExample class- Parameters:
apiSession
- An ApiSession instance to be used.
-
-
Method Detail
-
generateToken
public String generateToken(String userEmail, String issuer, int durationMinutes, PrivateKey pKey, String encryptionAlgorithm)
- Parameters:
userEmail
-issuer
-durationMinutes
-pKey
-encryptionAlgorithm
-- Returns:
-
-