apns_utils (apns v2.6.0)

Contains util functions.

Copyright 2017 Erlang Solutions Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Summary

Functions

Link to this function

bin_to_hexstr(Binary)

-spec bin_to_hexstr(binary()) -> string().
-spec epoch() -> integer().
Link to this function

seconds_to_timestamp(Secs)

-spec seconds_to_timestamp(pos_integer()) -> calendar:datetime().
Link to this function

sign(Data, KeyPath)

-spec sign(binary(), string()) -> binary().