Java UUID Create generateSession()

Here you can find the source of generateSession()

Description

generate Session

License

Apache License

Declaration

public static String generateSession() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.UUID;

public class Main {
    public static String generateSession() {
        // Generate SessionKey
        UUID uniqueKey = UUID.randomUUID();
        String sessionKey = String.valueOf(uniqueKey);
        return sessionKey;

    }//from w  ww  .  j a v a 2 s.c om
}

Related

  1. generateRandomUUID(final int length)
  2. generateRawUUID()
  3. generateRequestId()
  4. generateRequestId()
  5. generateSegmentFileName(String segmentNameStr)
  6. generateShortUuid()
  7. generateSoapMessageId(String messageIdPrefix)
  8. generateToken()
  9. GenerateUniqueID()