Package com.eatthepath.pushy.apns.util
Class TokenUtil
java.lang.Object
com.eatthepath.pushy.apns.util.TokenUtil
A utility class for processing APNs token strings.
- Author:
- Jon Chambers
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
sanitizeTokenString
(String tokenString) Returns a "sanitized" version of the given token string suitable for sending to an APNs server.
-
Method Details
-
sanitizeTokenString
Returns a "sanitized" version of the given token string suitable for sending to an APNs server. This method returns a version of the original string with all non-hexadecimal digits removed. This can be especially useful when dealing with strings produced with[NSData describe]
.- Parameters:
tokenString
- the token string to sanitize- Returns:
- a "sanitized" version of the given token string suitable for sending to an APNs server
-