Class KeyTarImpl

  • All Implemented Interfaces:
    IKeyTar

    public class KeyTarImpl
    extends Object
    implements IKeyTar
    Implementation class for IkeyTar interface that contains the logic for KeyTar processing
    Version:
    1.0
    Author:
    Frank Giordano
    • Constructor Detail

      • KeyTarImpl

        public KeyTarImpl()
    • Method Detail

      • getKeyTarValue

        public String getKeyTarValue()
        Return keyString value after KeyTar has been fully processed.
        Specified by:
        getKeyTarValue in interface IKeyTar
        Returns:
        list of KeyTarConfig objects
      • processKey

        public void processKey()
                        throws com.starxg.keytar.KeytarException
        Retrieve the OS credential store by querying the OS with service and account name. Assign the value to keyString.
        Specified by:
        processKey in interface IKeyTar
        Throws:
        com.starxg.keytar.KeytarException - error processing
      • setAccountName

        public void setAccountName​(String accountName)
        Description copied from interface: IKeyTar
        set required service name used for OS credential store querying
        Specified by:
        setAccountName in interface IKeyTar
        Parameters:
        accountName - string value used for OS credential store querying
      • setServiceName

        public void setServiceName​(String serviceName)
        Description copied from interface: IKeyTar
        set required account name used for OS credential store querying
        Specified by:
        setServiceName in interface IKeyTar
        Parameters:
        serviceName - string value used for OS credential store querying