FRAOathMechanism.h revision 094b0368ec64814f07f74f090192a2fe81c8d0b7
6443N/A * The contents of this file are subject to the terms of the Common Development and 6443N/A * Distribution License (the License). You may not use this file except in compliance with the 6443N/A * specific language governing permission and limitations under the License. 6443N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include 6443N/A * Header, with the fields enclosed by brackets [] replaced by your own identifying 6443N/A * information: "Portions copyright [year] [name of copyright owner]". 6443N/A * Copyright 2016 ForgeRock AS. 6443N/A * Portions Copyright 2014 Nathaniel McCallum, Red Hat 6443N/A * An OATH authentication mechanism capable of generating HMAC- and Time-based One-Time Passwords. 6443N/A * The storage ID of this OATH mechanism. 6443N/A * The version number of this OATH mechanism. 6443N/A * The identity to which this OATH mechanism is registered. 6443N/A * The type of this OATH mechanism (totp or hotp). 6443N/A * The length of the OATH code generated by this mechanism. Always 6 or 8; defaults to 6. 6443N/A * The current login code for this OATH mechanism. 6443N/A * Initializer which parses an OATH URL to extract all configuration detail. 6443N/A * Extracted parameters include: 6443N/A * - Token type (HOTP, TOTP) 6443N/A * - Algorithm (SHA1, MD5 etc) 6443N/A * @param url is the entire URL to parse. 6443N/A * @return instantiated instance or nil if a problem occurred. 6443N/A * Initializer which parses an OATH URL String to extract all configuration detail. 6443N/A * Extracted parameters include: 6443N/A * - Token type (HOTP, TOTP) 6443N/A * - Algorithm (SHA1, MD5 etc) 6443N/A * @param url is the entire URL to parse. 6443N/A * @return instantiated instance or nil if a problem occurred. 6443N/A * Generates the next code for this OATH mechanism.