public String storeData ( String cookieData ) { try { String token = generateToken ( ) ; ensureSpaceExists ( ) ; s3StorageProvider . addHiddenContent ( this . hiddenSpaceName , token , Constants . MEDIA_TYPE_APPLICATION_JSON , IOUtil . writeStringToStream ( cookieData ) ) ; return token ; } catch ( Exception e ) { throw new DuraCloudRuntimeException ( e ) ; } }
Stores string data and returns a token by which that data can be retrieved