Security number validation

hi i have to validate security number based on tHIS REQUEST
if the SECURITYNNUBER IS INVALID UNDER THE SECURITYNUMBER attribute,it must reject(Date & algorith). To override the normal validation,the subject must contain INVALIDSECURITYNUMBER. The incorrect ID number must still reflect in the SECURITYNUMBER attribute.
THE FIRST 6 DIGIT IS DATE
EXAMPLE 7701205334086
public boolean val_SECURITYNUMBER()
        boolean flag = true;
        String u_Securtynr = transactionFile.getS_securtynumber();
        // 1. Invalid securty number if completed
            if(!isBlank(u_Securtynr))
                //if(isValidPattern(u_Securtynr, "[0-9]{13}") && isValidDate(u_Securtynr.substring(0,6), "[0-9]{6}", "yyMMdd"))
                    if(!isValidsecuritynumber(u_Securtynr))
                        if(!isEqualTo(monetaryDetail.getmSubject(), "INVALIDSECURITYNUMBER"))
                              System.out.println("SECURITY " + ERRORCODE 222)
                }else
                      System.out.println("SECURITY " + ERRORCODE 322)
public boolean isValidPattern(String s_value, String s_pattern)
        boolean flag = false;
        if(Pattern.matches(s_pattern, s_value))
            flag = true;
         return flag;
public boolean isValidsecuritynumber(String s_idNumber)
        //boolean flag = false;
        String sIdNumber = s_idNumber;
        int odd = 0;
        int num ;
        if(!isValidPattern(sIdNumber, "[0-9]{13}"))
            return false;
        }else
            try
            //(1)Add all numbers at Odd places
            for(int x = 0; x < 6; x++)
                odd = Integer.parseInt(sIdNumber.charAt(2*x)+"") + odd;
            int Total_A = odd;
            //(2)Combine the even numbered
            String s_even = "";
            for(int y = 0; y <6; y++)
                s_even += sIdNumber.charAt(2*y + 1);
            num = (Integer.parseInt(s_even));
            //(3) s_even x 2
            int numID = num * 2;
            String s_Total3 = numID+"";
            //(4)
            int total4 = 0;
            for(int z=0;z<s_Total3.length();z++)
                total4 += Integer.parseInt(s_Total3.charAt(z)+"");
            int i_secondLast = Total_A + total4;
            String s_secondLast = i_secondLast+"";
            int i_total5 = 10-(Integer.parseInt(s_secondLast.charAt(1)+""));
            if(i_total5 == 10)
                i_total5 = 0;
            if(i_total5 == Integer.parseInt(sIdNumber.charAt(12)+""))
                return true;
            }else
                return false;
            }catch(IndexOutOfBoundsException ioex)
                return false;
        //return flag;

yes how can i do this
if the ID id is invalid under the idnumber attribute,it must reject(Date & algorith). To override the normal validation,the subject must contain INVALIDIDNUMBER. The incorrect ID number must still reflect in the IDNUMBER attribute.
the first 6 digit is date
example 7701205334086
i was not shooting

Similar Messages

  • Our benefit administrator keeps getting an error on adding a social security number that starts with a 9, that is a valid SSN for a spouse, How do we allow this to go through?

    Our benefit administrator keeps getting an error on adding a social security number that starts with a 9, that is a valid SSN for a spouse, How do we allow this to go through?

    To attempt a new chat session...
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    http://helpx.adobe.com/x-productkb/global/service1.html

  • Im in maldives and i been using the singapore store for a long time. and i used my credit card issued in maldives but with a singapore store and its been working well until one day my card expired and i reissued a new card. a different security number onl

    i been using the singapore app store for a long time. and my credit card is issued in maldives and it was working well until one day my card got expired so i reissued it again here in maldives.and i was updates my payment methid only my having a new security number.and yet there came an error msg saying my payment is not valid.so now i cant buy any apps
    so please help me out.

    so adjust your iTunes account settings to reflect the new card...

  • When I try to install the ibooks app it asks me to verify my account but will not accept my security number.

    When i try to install the ibooks app on my ipod touch 4 it shows me my apple account details but says that the security number is incorrect. I have not as yet used my account is this the problem?

    It is a problem if you can;t download/install apps.  If you are sure that the card data is correct and the card is valid I would contact the itunes store.  I would go here and select iTunes Store Account and Billing.
    http://www.apple.com/support/itunes/

  • Hi! I`'m from Russia and i want to buy the new unlocked iPhone 4S in the U.S. in November, but i need to know, am i need this doc's?"What to Bring with You  Your old mobile phone, if you're replacing it. Social Security number of the account holder. etc"

    Hi! I'm from Russia and i want to buy the new unlocked iPhone 4S in the U.S. in November, but i need to know, am i need this doc's?
    What to Bring with You
    Your old mobile phone, if you’re replacing it.
    Social Security number of the account holder.
    Valid government-issued photo ID.
    Carrier account password, if you have one.
    Your Apple ID and password.

    http://www.apple.com/iphone/LTE/
    According to Apple's list (link above) you will probably want to pick up a Sprint or US Cellular model. HOWEVER, as I mentioned above I know that the Verizon iPhones come unlocked from the factory (assuming it will be the same for iPhone 6 and 6+). I DO NOT KNOW if the Sprint and US Cellular models come unlocked. But I am sure some quick internet research will lead you to the answer.
    I think your goal would be to get a Sprint or US Cellular version. Also I believe a law was just recently passed that allows someone to have a phone unlocked by the carrier no questions asked. So even if the Sprint and US Cellular iPhones are locked you can have them unlocked.
    Update:
    http://www.cbsnews.com/news/obama-signs-bill-unlocking-cellphones/

  • Mask Social Security number (National Identifier) SSN in SSHR

    Hello folks,
    I am working on an issue with the online payslip. We need to have the ability to hide or mask part of the social security number (national identifier), to comply with California regulatory requirements.
    <ul><li>What is shown: 999-55-0001</li>
    <li>What we need it to look like: xxx-xx-0001</li>
    </ul>
    The same goes for employee number, if longer than 4 characters. Can anyone assist?
    Please note, the profile HR: National Identifier Validation, does not apply to this issue.
    Thanks,
    Mark

    Hello Thierry,
    I did log an SR, but the response was that nothing specific was going to be developed for that legislation, since they believe a personalization (hiding the SSN) will address the requirement. I was hoping that we could do this in the same way that bank accounts are masked in Payment Methods.
    We have reviewed the California labor codes again and we believe we can just hide it by personalizations. We just need to make sure that SSN is not required for our other jurisdictions, otherwise we are back to the beginning.
    Thanks for all your help!
    Edited by: markpescatrice on Dec 10, 2008 9:27 AM

  • HT201304 Why is it not letting me download free apps on my iPad when ? It's asking for my bank details again and when I type my security number in its says its been declined from a previous purchase? Can u help me pls!

    Why is t not letting me download free apps on my iPad when it's asking for my security number and when I type it in my details on my iCloud account it's saying its been declined and asking for another payment card ? Can some1 help me pls!!

    You will need to contact iTunes support to get that sorted out: http://www.apple.com/support/itunes/contact/

  • How to config Check Digits function module for Student Number Validation

    Hi SLCM Experts,
    In the SAP-SLCM, How to use check digits function module for validate student number.  Just only config it or need to customizing program.
    *Any idea to student number validation in SLCM?*
    Best Regards,
    Suvatchai K.

    Hi ,
    Can you expalin it further ?
    You configure the St. no in piq_matr . And set it  as external or internal no. range which suits your business .
    What is the validation you are looking for ?
    Regards
    Gajalakshmi

  • Confirmed serial number valid but when I do set up says not valid

    I managed to get a tech on chat who confirmed my serial number for CS6 Master Suite was valid but when I do set up and enter sn it says it is not valid.

    copy and paste into your browser's address bar, http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

  • Serial Number validation during Delivery Creation itself(PGI-system checks)

    Process:
    Sales Order PR(Purchase Order) GR( New Serial Numbers are created automatically or manually keyed in)
    Once the Goods Receipt is received, we do the (SO) DELIVERYu2014SERIAL NUMBER ASSIGNMENT Post Goods Issue
    Issue:
    Current Serial Number Profile Management does not do a valid serial number check during DELIVERY CREATION where we do a SERIAL NUMBER ASSIGNMENT.
    Only during POST GOODS ISSUE, the check happens for valid serial numbers; this is too late in the game for business as there is a time lag of 3 days from the DELIVERY CREATION and PGI.
    Reason being--- We donu2019t check the following u201C Existing Stock Checku201D( which does a serial number validation during delivery creation as well)
    SPRO>Plant Maintenance and Customer Service>Master Data in Plant Maintenance and Customer Service>Technical Objects>Serial Number Management>Define Serial Number Profiles
    If we check this option, the business requirement to do a valid serial number check does happen during delivery creation, however we cannot create new serial numbers during Purchase Order- GOODS RECEIPT.
    QUESTION:
    Can we have the system check the valid serial numbers from stock during delivery creation and serial number assignment.
    And Also create new serial numbers during Purchase Order- Goods Receipt.

    Hi
    1.In std SAP its not possible to check the serail number during Delivery creation, through enhancement it can be done.
    2.During GR for PO serial numbers can be created.
    Rgds
    Ramesh

  • My Appstore account says that my security number don´t match but my credit card got charged 3 times in a row, how can I fix this, and how can I get my money back or the apps downloaded?

    Hello, I was trying to purchase Whats app, when I try to enter my credit card info, it keep telling that my security number don´t match, but my credit card got charged, 3 time in a row. I can send a screen capture of the message telling that already charged my card.
    How can I fix this problem? I mean how can I download the app or get the credit in the store or get my money back?
    Thanks in advance

    Hi Marvin,
    Thanks for visiting Apple Support Communities.
    Did you receive an email confirmation of your purchase? If so, you can use the steps in this article to report an issue with your order:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933
    Best Regards,
    Jeremy

  • Force user to enter a social security number

    How do I force a user to enter their social security number. The form I'm working on is connected to a system that won't allow the SS# to be left blank. I need to add something that will not allow a blank SS# field on my from. Any help is greatly appreciated.

    In the Object palette, make your field required:

  • Where do I get my Security Number

    Where do I get my Security Number to update my account and to download my updates and to change my address

    What security number? 
    The one from your credit card?

  • I have changed bank details and do not have 3 digit security number. When trying to update bank details my security ? answers are not recognised.

    I have changed my bank details and no longer have my 3 digit security number. I have tried to change my bank details but my security question answers are not recognised. What should I do?

    All credit cards have a security number, on the back of the card. If you don't have your card, then you will not be able to enter in that credit card. This is a standard security precaution to keep someone who gets hold of your card number but not the card itself from being able to make charges to your account. You will need to contact your bank and get a replacement card.
    As to your security questions, go to:
    https://appleid.apple.com/
    Click "Manage My Account", sign in, and go to the Password and Security section. Answer the security questions and you'll be taken to a screen where you can then change them. If you've forgotten your answers, there should be a link just under the security questions fields where you can have a reset email sent to your Rescue email address. If the link for the email doesn't appear, as can happen if you didn't set a rescue email address or (apparently) have a .Mac email address, see the user tip created by Kappy, another user here, on how to proceed:
    https://discussions.apple.com/docs/DOC-4551
    Regards.

  • How to create security character validation to avoid automated programs

    Hi All,
    I am developing a web page for creating user accounts. I would like to do the security character validation to avoid the misuse from automated programs.
    This is what you may have seen on all popular web pages where you are asked to enter a scrambled set of characters into a text field before submitting your request.
    Please provide any samples or direct me where I can get some help on this.
    Your help is greatly appreciated.
    TIA,
    CK

    Why look for samples when u can can use ur own logic and thinking ?
    My approach ...
    1) Create a lot of scambled images having alphabets like 'rhoit' , 'rohit' ..
    File naming convention should be same as the text. Ex: rhoit.jpg, rohit.jpg ...
    2) Add the images names into a table and then populate a HashMap / ArrayList containing the image names
    3) Randomly pick some artibitrary element from the Arraylist and display the corresponding image in the create user accounts page.
    3) Compare the image name with the inputed text value for a match. The expected value should be set in request parameter.
    4) Handle the success/failure condition.
    I hope that should work fine.
    Regards
    -Rohit

Maybe you are looking for

  • How to perform power spectra analysis in DIAdem

    Dear all: I am a beginner in DIAdem but I have to complete my PhD thesis that is about the analysis of rat EEG in DIAdem. I have acquired 10G data of rat EEG. I prefer the power spectra method. Would someone please tell me: 1. How to perform power sp

  • Unexpected Signal : 11

    I have a critical java application running a sunOS 5.8 on X86, Java VM 1.4.2_03-b02. This application has been running for over a year without any problems and then it crashed with the following error report. Unexpected Signal : 11 occurred at PC=0xD

  • How can I bookmark a set of open tabs (easily)?

    I was able to do this in a pull-down box on version 3.x (latest 3.6), but that ability seems to have been overlooked in 4.0......

  • Mark(highlight, bold, and so on) text in GWT (for help)

    I want to display a paragraph text in GWT, in some component(TextArea, or RichTextArea...), and then double-click the words in the text to select them. Now I want to highlight the words, can GWT support that effects I need? I have tried to use TextAr

  • IWeb is only importing 644 of 1064 pics... help

    I have no idea why iWeb refuses to make a complete gallery of my event in iPhoto (1000+ pic/mov). It stops at 643 for some reason. I've tried creating a new site, etc. etc. I'm not getting anywhere. Any suggestions?