public AuthenticatorAppRegistrationURIBuilder(AMIdentity id,String secretHex,int codeLength,String issuer){
  Reject.ifNull(id,"id cannot be null");
  Reject.ifNull(secretHex,"secretHex cannot be null");
  Reject.ifTrue(StringUtils.isBlank(issuer),"issuer cannot be empty");
  Reject.ifTrue((codeLength < MIN_CODE_LENGTH),"code length must be " + MIN_CODE_LENGTH + " or greater");
  if (secretHex.length() == 0) {
    throw new IllegalArgumentException("secretHex cannot be an empty String.");
  }
  this.issuer=issuer;
  this.id=id;
  this.secretHex=secretHex;
  this.codeLength=codeLength;
}

public AuthenticatorAppRegistrationURIBuilder ( AMIdentity id , String secretHex , int codeLength , String issuer ) { Reject . ifNull ( id , "id cannot be null" ) ; Reject . ifNull ( secretHex , "secretHex cannot be null" ) ; Reject . ifTrue ( StringUtils . isBlank ( issuer ) , "issuer cannot be empty" ) ; Reject . ifTrue ( ( codeLength < MIN_CODE_LENGTH ) , "code length must be " + MIN_CODE_LENGTH + " or greater" ) ; if ( secretHex . length ( ) == 0 ) { throw new IllegalArgumentException ( "secretHex cannot be an empty String." ) ; } this . issuer = issuer ; this . id = id ; this . secretHex = secretHex ; this . codeLength = codeLength ; }
construct a builder which can be used to generate uris for registering oath devices with an oath authentication module .
