Macros |
@LDAP:name@
|
Lookup the LDAP value of the user's LDAP attribute name.
|
@LDAP:name:length@
|
Lookup the LDAP value of the user's LDAP attribute name.
If the value is longer than length, then truncate the value to the specified length.
|
@LDAP:name:length:padding@
|
Lookup the LDAP value of the user's LDAP attribute name.
If the value is longer than length, then truncate the value to the specified length.
If the value is shorter than length, then pad the value with the value of length.
|
@LDAP:DN@
|
Replace with LDAP value of user's LDAP Distinguished Name
|
@User:PwExpireTime@
|
Time user's password will expire in default ISO format.
|
@User:PwExpireTime:pattern@
|
Time user's password will expire where pattern is a SimpleDateFormat pattern
|
@User:DaysUntilPwExpire@
|
Number of days until the user's password will expire
|
@User:ID@
|
User's UserID (if authenticated)
|
@User:Email@
|
User's Email Address
|
@User:Password@
|
User's current password (if authenticated). Use caution, this will allow password to appear in logs and whichever function the macro is used in.
|
@InstanceID@
|
Instance ID of the application
|
@CurrentTime@
|
Current time in default format.
|
@CurrentTime:pattern@
|
Current time where pattern is a SimpleDateFormat pattern
|
@CurrentTime:pattern:tz@
|
Current time where pattern is a SimpleDateFormat pattern, and the timezone is a tz specified
as a valid TimeZone ID.
|
@Site:URL@
|
URL of the site (http://www.example.com/password)
|
@Site:Host@
|
Hostname of the site (www.example.com)
|
@RandomChar@
|
A single random character of visible upper & lower ASCII characters and digits.
|
@RandomChar:length@
|
Random characters, where length is the number of random characters to generate.
|
@RandomChar:length:characters@
|
Random characters, where length is the number of random characters to generate and characters is the list of characters to be used as random characters.
|
@Encode:type:[[value]]@
|
Encode a value using the specified type of encoding, where type is the type of encoding and where value is
the value to encode. The value may include other macros. Types permitted are urlPath,
urlParameter and base64.
|
@Hash:type:[[value]]@
|
Hash a value using the specified hash type, where type is the type of hash and where value is
the value to hash. The value may include other macros. Hash types permitted are md5,
sha1, sha256, and sha512.
|
Macro Examples |
@LDAP:givenName@ |
Jason |
@LDAP:givenName:3@ |
Jas |
@LDAP:givenName:8:-@ |
Jason--- |
<a href="@Site:URL@">Click Here!<a> |
<a href="http://www.example.com/password">Click Here!<a> |
@RandomChar:8:0123456789ABCDEF@ |
4B420A120F |
@LDAP:givenName:1@@LDAP:sn:7@@RandomChar:2:0123456789@ |
JSmith84 |
@LDAP:givenName:1@@LDAP:sn:7:0@@RandomChar:2:0123456789@ |
JSmith0084 |
The time is @CurrentTime:EEE, MMM d, yyyy@. |
The time is Sat, Jan 1, 2000. |