This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Multipass | |
{ | |
private static String SITE_KEY = 'site_key'; | |
private static String API_KEY = 'api_key'; | |
public static void generate() | |
{ | |
System.debug('== Generating =='); | |
System.debug(' Create the encryption key using a 16 byte SHA1 digest of your api key and subdomain'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- TODO: Review Ant v1.8 local properties --> | |
<project xmlns:sf="antlib:com.salesforce"> | |
<!-- Download from Salesforce Tools page under Setup --> | |
<typedef | |
uri="antlib:com.salesforce" | |
resource="com/salesforce/antlib.xml" | |
classpath="${basedir}/lib/ant-salesforce.jar"/> | |
<!-- Download from http://sourceforge.net/projects/ant-contrib/files/ant-contrib/1.0b3/ --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Apex doesn't expose dependent picklist info directly, but it's possible to expose. | |
* Approach: | |
* * Schema.PicklistEntry doesn't expose validFor tokens, but they are there, and can be accessed by serializing to JSON | |
* (and then for convenience, deserializing back into an Apex POJO) | |
* * validFor tokens are converted from base64 representations (e.g. gAAA) to binary (100000000000000000000) | |
* each character corresponds to 6 bits, determined by normal base64 encoding rules. | |
* * The binary bits correspond to controlling values that are active - e.g. in the example above, this dependent option | |
* is available for the first controlling field only. | |
* |