Class PinMetadata


  • public class PinMetadata
    extends java.lang.Object
    Metadata about the PIN or PUK.
    • Constructor Summary

      Constructors 
      Constructor Description
      PinMetadata​(boolean defaultValue, int totalAttempts, int attemptsRemaining)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAttemptsRemaining()
      Returns the number of PIN/PUK attempts currently remaining.
      int getTotalAttempts()
      Returns the number of PIN/PUK attempts available after successful verification.
      boolean isDefaultValue()
      Whether or not the default PIN/PUK is set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PinMetadata

        public PinMetadata​(boolean defaultValue,
                           int totalAttempts,
                           int attemptsRemaining)
    • Method Detail

      • isDefaultValue

        public boolean isDefaultValue()
        Whether or not the default PIN/PUK is set. The PIN/PUK should be changed from the default to prevent unwanted usage of the application.
        Returns:
        true if the default key is set.
      • getTotalAttempts

        public int getTotalAttempts()
        Returns the number of PIN/PUK attempts available after successful verification.
      • getAttemptsRemaining

        public int getAttemptsRemaining()
        Returns the number of PIN/PUK attempts currently remaining.