Class Base64UrlNamingStrategy

  • All Implemented Interfaces:
    NamingStrategy

    public class Base64UrlNamingStrategy
    extends java.lang.Object
    implements NamingStrategy
    Generates names with the form <prefix><base64url> where 'prefix' is 'spring.gen-' by default (e.g. spring.gen-eIwaZAYgQv6LvwaDCfVTNQ); the 'base64url' String is generated from a UUID. The base64 alphabet is the "URL and Filename Safe Alphabet"; see RFC-4648. Trailing padding characters (@code =) are removed.
    Since:
    2.1
    Author:
    Gary Russell
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Base64UrlNamingStrategy DEFAULT
      The default instance - using spring.gen- as the prefix.
    • Constructor Summary

      Constructors 
      Constructor Description
      Base64UrlNamingStrategy()
      Construct an instance using the default prefix spring.gen-.
      Base64UrlNamingStrategy​(java.lang.String prefix)
      Construct an instance using the supplied prefix.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT

        public static final Base64UrlNamingStrategy DEFAULT
        The default instance - using spring.gen- as the prefix.
    • Constructor Detail

      • Base64UrlNamingStrategy

        public Base64UrlNamingStrategy()
        Construct an instance using the default prefix spring.gen-.
      • Base64UrlNamingStrategy

        public Base64UrlNamingStrategy​(java.lang.String prefix)
        Construct an instance using the supplied prefix.
        Parameters:
        prefix - The prefix.