1. All Methods in the ROSET Java API by: saaiqSAS Last Updated: 26/2/2025 Below are all the methods of the ROSET Java API that are accessible, along with their descriptions. These are categorized based on similar functions and usage for better organization. A usage sample of the ROSET Java API is available on GitHub. You can view it here (ROSET Java API Usage Sample). Version
Method Name Description
String getApiVersion() Returns the version of the current API in the format 'vX.Y.Z'.
char getApiVersionId() Returns a single character that represents the major version of the current API, specifically the 'X' value in 'vX.Y.Z'.
boolean apiSupportsVersion() Returns 'true' if the current API supports the specified version ID (the 'X' value) provided as input.
String getApiVersionForId() Returns the API version that supports the provided version ID (the 'X' value).
Initialization
void stopAllProcesses() Sets the stop flag to true, forcibly halting all ongoing processes. Use this method only when shutting down the application.
void initializeDynamicKeyStorage() Pre-allocates memory for dynamic keys that will be extracted later. This can optimize memory usage, especially when dealing with large numbers of dynamic keys.
void initializeStaticKeyStorage() Pre-allocates memory for static keys that will be extracted later. This can optimize memory usage, especially when dealing with large numbers of static keys.
void resetAllKeyStores() Removes all extracted keys from memory and resets all key-related variables to their default values. Use this method when switching to a new set of keys, making the old ones obsolete.
Key Information
boolean keySupportsRBS() Returns 'true' if the extracted key for the given ID supports RBS (Remote Boot Services).
int getDynamicSetting() Returns the dynamic setting associated with the provided ID and position.
int[] getStaticKey() Returns the static key corresponding to the given ID.
boolean dynamicKeyExists() Checks if the dynamic key for the given ID is extracted and available in memory.
Key Generation
int keyLengthForBits() Returns the key length corresponding to the provided bit size.
boolean keyLengthSupportsRBS() Checks whether the specified key length supports Remote Boot Services (RBS).
int[] generateDynamicKey() Generates a dynamic key as an integer array based on the provided parameters.
String generateDynamicKeyString() Generates a dynamic key string based on the provided parameters.
int[] generateStaticKey() Generates a static key as an integer array based on the specified key length.
String generateStaticKeyString() Generates a static key string based on the specified key length.
Key Extraction
int extractDynamicKeyString() Returns a reference ID after extracting the provided dynamic key string.
int extractDynamicKey() Returns a reference ID after extracting the provided dynamic key as an integer array.
int extractStaticKeyString() Returns a reference ID after extracting the provided static key string.
int extractStaticKey() Returns a reference ID after extracting the provided static key as an integer array.
int extractStaticKeyReversed() Returns a reference ID after re-extracting an already extracted static key in reverse order, providing an additional usable static key.
Quick Processing
boolean setQuickProcessingDynOnly() Enables 'Quick Processing' for the specified dynamic key reference ID.
boolean setQuickProcessing() Enables 'Quick Processing' for the specified key reference IDs. Activating 'Quick Processing' for a set of extracted keys improves performance significantly, but at the cost of increased memory usage.
Secure Metadata Creation
String drosEncrypt() Encrypts the provided string using only the dynamic key with SAS-DROS (Secure Authentication System - Dynamic Range Of Secure).
String drosDecrypt() Decrypts a string that was previously encrypted using SAS-DROS.
String getCharFromDynamicKey() Returns the character at the specified position in the dynamic key character set.
String getExternalChar() Returns a character from the Unicode set that is not present in the provided string.
Encryption & Decryption
int rbsNumberOfBytesToPass() Returns the number of bytes to pass to the SAS-RBS encryption/decryption methods for a given dynamic key ID.
byte[] rbsByteEncrypt() Encrypts the provided byte array using SAS-RBS and returns the encrypted byte array.
byte[] rbsByteDecrypt() Decrypts the given SAS-RBS encrypted byte array and returns the decrypted byte array.
String rcsTextEncrypt() Encrypts the provided string using SAS-RCS and returns the encrypted string.
String rcsTextDecrypt() Decrypts the given SAS-RCS encrypted string and returns the decrypted string.
int rcsNumOfBytesToPass() Returns the number of bytes to pass to the SAS-RCS encryption/decryption methods to achieve a specific output string length.
String rcsByteEncrypt() Encrypts the provided byte array using SAS-RCS and returns the resulting encrypted string.
byte[] rcsByteDecrypt() Decrypts the provided SAS-RCS encrypted string and returns the decrypted byte array.
Miscellaneous
int stringToInt() Converts the provided string representation of a number into an integer.
int charToInt() Converts the provided character (char) number into an integer.
String[] stringBreaker() Splits a string into parts based on the specified delimiter character.
String[] stringDivider() Divides a string into groups, with a set number of characters per group.
String[] stringToCharStringArr() Converts each character of a string into a separate string, returning them as an array of strings.
String intArrayToBase64_Encode() Encodes an integer array into a Base64 string.
int[] intArrayToBase64_Decode() Decodes a Base64 encoded string into an integer array.