How to pull a subset of CRL list based on DistributionPoint.

Problem: I've been unable to get a list of serial numbers of revoked certificates from LDAP. What I got is a string representation of a binary value, [B@95c083, which looks like a pointer.
Output:
objectclass = cRLDistributionPoint
certificaterevocationlist;binary = [B@95c083
cn = CRL1
Question:
Can anyone please take a look at the code and tell me how to go beyond the "pointer" ([B@95c083), i.e., how to get back from LDAP the CRL list associated with a Distribution Point, using Java?
Code:
import java.security.cert.X509Certificate;
import java.security.cert.X509CRL;
import java.io.DataOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.File;
import javax.naming.Context;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
import javax.naming.directory.Attributes;
import java.util.Hashtable;
public class CheckRevocationListCheck
public void performCRLCheck(Signer signer, X509Certificate signers509Cert)
try
checkCert(signer, signers509Cert);
catch(CryptoException ce)
//throw ce;
System.out.println("failed");
} // end of performCRLCheck
public void checkCert(Signer signer, X509Certificate signers509Cert) throws CryptoException
// create an output file to write results
DataOutputStream dataOutputStream= null;
try
dataOutputStream = new DataOutputStream(new FileOutputStream(new File("D:/xxxxx/ServerUnsign/CRLCheckResults.txt")));
catch(FileNotFoundException fnfe)
System.err.println("No output file created." + fnfe.toString());
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://xxxxxxxxxxx");
try
DirContext ctx = new InitialDirContext(env);
Attributes attrs = ctx.getAttributes("cn=CRL1,o=xxxxx,c=us");
System.out.println("attribute 1 = objectclass: " + attrs.get("objectclass").get());
System.out.println("attribute 2 = certificaterevocationlist: " + attrs.get("certificaterevocationlist;binary").get());
System.out.println("attribute 3 = cn: " + attrs.get("cn").get());
dataOutputStream.writeBytes("Attribute 1 = objectclass = "+ attrs.get("objectclass").get());
dataOutputStream.writeBytes("\n");
dataOutputStream.writeBytes("Attribute 2 = certificaterevocationlist;binary = " + attrs.get("certificaterevocationlist;binary").get());
dataOutputStream.writeBytes("\n");
dataOutputStream.writeBytes("Attribute 3 = cn = " + attrs.get("cn").get());
catch(Exception e)
System.err.println("Failed 1" + e.toString());
} // end of checkCert
} // end of CheckRevocationListCheck

Someone told me that it's a cast problem:
(byte[]) attrs.get("certificaterevocationlist;binary").get());
And I got all the serial numbers I wanted.
Thanks.

Similar Messages

  • How to pull Net pay for a list of employee numbers

    Hi all,
    Can i know how to pull data for a list of employees with their net pay .
    Can i know which table /FM i should trigger to do this .
    regards,
    Evani

    Hi,
    Using the FM CU_READ_RGDIR read RGDIR, get the sequence number for the given period and read the BT (Payresult table returing from below function module )using the FM PYXX_READ_PAYROLL_RESULT. In BT table (Bank Tranfer) u can get the Bank transfer amount.

  • How can I create an IList Employee list based on my Employee class?

    I'm trying to create an IList<Employee> list based on my Employee class (below).  But this is erroring out.  Is my employee class missing anything?  How could I make this work?
    private void EmployeeList()
    IList<Employee> arL = new IList<Employee>(); //<<<<----errors out here
    arL.Add(new Employee {Name="Mary",Gender="Female", Age=35});
    arL.Add(new Employee { Name = "Bob", Gender = "Male", Age = 40 });
    arL.Add(new Employee { Name = "Tom", Gender = "Male", Age = 50 });
    var qm = from Employee employee in arL
    where employee.Age < 50
    select employee;
    foreach (var m in arL)
    Console.WriteLine(m.ToString());
    class Employee
    private string name;
    private string gender;
    private int age;
    public string Name
    get { return name; }
    set { name = value; }
    public string Gender
    get { return gender; }
    set { gender = value; }
    public int Age
    get {return age;}
    set {age = value;}
    Rich P

    IList is an interface, not a class. This means that it can't be instantiated (can't be "newed").
    List is a class, so it can be instantiated. It implements the IList interface, which means that it must provide the functionality specified in that interface.
    That's what an interface is - a definition of functionality that a class must provide. An interface is often described as a contract that a class must fulfill.
    So in the code in your last post, you are saying that arL is an instance of some class that implements the IList interface, and you are then setting it to an instance of the class List. The List class implements the IList interface, so this assignment is
    legit. It would also be legit to use any other class that implements IList, such as an array.
    Any class that implements IList can have as much extra functionality as whoever wrote it likes, as long as it implements at least the functionality of the interface.
    Sometimes you will come across a method in a library over which you have no control and which returns IList rather than list. In such a case you will be forced to do something like...
    IList list = SomeMethodOrOther();
    So you will have no idea what class list is an instance of, but you will know that it has the functionality of IList. This is about the only circumstance where I would recommend defining a variable as IList rather than List (but it probably won't be long
    before there are some replies to this post that disagree).

  • How to set condition in choose from list based on the combo selection

    Dear Members,
         i have a requirement to filter the item based on the itemgroup. After choosing the itemgroup in the dropdown list i have to filter the item for the particular group in the choose from the list.since i have tried in the combo select it doesnt work out for me.any body can suggest me is it doable. if so pls tell me the work around.
    My coding is as follows..
    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
    if pval.itemUID="Cmb"
                                objChooseCollection = objForm.ChooseFromLists
                                objChooseFromList = objChooseCollection.Item("CFL1")
                                objConditions = objChooseFromList.GetConditions()
                                objcondition = objConditions.Add()
                                objcondition.Alias = "itmsgrpcod"
                                objcondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                                objcondition.CondVal = Form.items.item("Cmb").specific.selected.value
                                objChooseFromList.SetConditions(objConditions)
    End if
    With Regards,
    jai.
    Edited by: JaiShankarRaman on Dec 23, 2009 10:47 AM

    Hello,
    Following is a code sample which I am using:
            Dim oForm As SAPbouiCOM.Form
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim oChooseFromList As SAPbouiCOM.ChooseFromList
            Dim oConditions As SAPbouiCOM.Conditions
            Dim oCondition As SAPbouiCOM.Condition
            Dim CodeType As Integer
            Try
                oForm = oPayOn.SBO_Application.Forms.GetForm(CflEvent.FormTypeEx, CflEvent.FormTypeCount)
                oMatrix = oForm.Items.Item("AC_MATRIX").Specific
                oChooseFromList = oForm.ChooseFromLists.Item("ACC_CFL1")
                CodeType = oMatrix.Columns.Item("AC_MC00").Cells.Item(CflEvent.Row).Specific.Selected.Value
                oConditions = oChooseFromList.GetConditions
                If oConditions.Count > 0 Then
                    oCondition = oConditions.Item(0)
                Else
                    oCondition = oConditions.Add
                End If
                oCondition.Alias = "U_CodeType"
                oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCondition.CondVal = CodeType
                oChooseFromList.SetConditions(oConditions)
            Catch ex As Exception
                'oPayOn.SBO_Application.SetStatusBarMessage(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Medium, True)
            End Try
        End Sub
    I am calling this in the CFL event - before action. So when the user clicks on CFL button - but before it opens - this code is called and the condition is applied. Here AC_MC00 is a combo column in a matrix.
    Regards
    Rahul Jain

  • How can I filter a Sharepoint 2007 libarry list based on current user login?

    Hi all.
    I would like to know how I can filter a SharePoint library list based on current user login.
    Suppose I have created the followings:
    1) A SharePoint form library containing bunch of uploaded InfoPath form data.
    2) The InfoPath form template contains a promoted text field called "TargetUser" to store user domain login (ex: DOMAIN\JOE) and every InfoPath form file in the library has a valid domain name stored in the "TargetUser" field.
    I have created a custom view for the form library and would like to filter this view so only items whose "TargetUser" field matches current user's login ID are displayed.
    I went to Edit View page to customize the view and tried to use the [Me] function but I got a "Filter value is not a valid text string" message instead when clicking OK. Apparently [Me] returns a Person/Group data type and the filter cannot compare its value
    to that of "TargetUser".
    I tried using text functions (ex: TEXT([Me],"") hoping to extract default string value from [Me]. The filter accepts the parameter without any error but the resulting fitlered list does not display any items at all.
    I have googled this subject for hours but I have not found any solution.
    It would be greatly appreciated if anyone can help me to create a functional filtered list.
    FYI, my SharePoint 2007 installation is just WSS 3.0 + Form Server. I do not have MOSS 2007 (so no MOSS 2007 web parts or web services).
    Thank you.
    Jason

    Here's what I usually do in order to accomplish this.  Ultimately you'll need to have 2 different fields.  There's the one you already have, with DOMAIN\username stored in it.  Then you'll need an additional field as a "person" column type. 
    Call it "TargetPerson" or something.
    Create a sharepoint designer workflow that runs each time an item is created or changed.  One action:
    Set FIELD to VALUE.
    The first FIELD is "TargetPerson", the VALUE is your "TargetUser" field. 
    Once this is done, then the person value is stored in the person field.  This is the field that you can filter by "TargetPerson" is equal to [Me]
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura

  • How the pull-down list of Google works?

    Hello,
    Do anyone know how the pull-down list works with it's resizable funtion in Google web search?
    Regards,
    Mortoza

    oh... that thing....
    Yeah, that's an IE thing for form completion. You can disable that in the browser.
    Where do you want to do this? You could certainly do something like that in a Swing application.
    If you want to do it in a web application.... Well, there are ways you could do it with DHTML, probably, but you have to maintain the historical values somehow.

  • What the h*** happened to Live Updating of smart playlists in iT 11? I have several smart lists that pull from larger lists based on how recently a song has played. Not happening now. The whole library only updates "last played"

    What the h*** happened to Live Updating of smart playlists in iT 11? I have several smart lists that pull from larger lists based on how recently a song has played. Not happening now. The whole library only updates "last played" for about 1 in 20 songs. This is really screwing up my lists that I use as backgrounds for a lot of activities in my classroom at school.

    FYI, I've found that Live Updating can SORT OF work. It seems if you only have two rules, live upating works (IE, I have one that is a Rating must be 3-5*'s and last played cannot be within the last 8 weeks). Once the song is played it disapears off the playlist. BUT, as soon as I try to add a third rule, it doesn't work anymore! This is unfortunate because two rules really limits the ability of the playlist...
    Cheers,

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

  • Create a workflow that pulls data from a list based on a person in the list and emails that person

    I am trying to create a workflow in SharePoint 2010 using SharePoint Designer. 
    I have a list [ExceptionList] of users each associated with a sponsor.  A sponsor can have multiple users aligned to them.  I need to create a workflow which emails the sponsor with their associated users.
    Example:
    John, Bill, and Kelly are listed with Bob as their sponsor.  I'd like an email sent that will pull the names of John, Bill, and Kelly into the email so that Bob can validate that he is still their sponsor.
    I know how to create the basic workflow email, but am not sure how to pull in the related names into the body of the email.  I assume I will need to build a string.
    Anyone know how to achieve this?
    Thanks in advance!

    Hi,
    According to your description, my understanding is that you want to use workflow to send an email to the sponsor with the users’ names who are belonging to the sponsor.
    I recommend to create another list to store the users’ names who are belonging to the sponsor and then email the sponsor with the values in the list.
    In my test, I created another list called test list and created two columns: user(store users’ names) and Sponsor(store sponsor’s name). Fill the list with all the sponsors and leave user field as blank.
    After that, create another workflow associated with the ExceptionList to get all the users’ names who are belonging to a sponsor to fill in the user field in the test list and set the workflow to start when an item is created.
    And then you can send email with the value in the user field in test list to the sponsor.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How ti pull data to BI from MDM

    Hi all!
    Can anyone help with advise how to pull data to BI using MDM API?

    Hi,
    The MDM Java API is an application programming interface for the MDM software. It allows MDM customers to write customized applications for interacting with the MDM server. The list of functionality available through the MDM Java API includes Records Management, Extensive Search Capabilities,
    Check-in/Check-out, Matching Validation, Tables and Fields Management, User and Roles Management
    Repository Management, Syndication and Import. It uses an industry-standard SQL-based DBMS as a u201Ccontaineru201D for the repository database.
    BI- Integration Process:
    With the generic DataSource 0MDM_Generic, which is delivered by SAP, you can load the MDM-ID from the MDM Data Manager into the BI system.
    Create a data transfer process with the DataSource as the source and the master data as the target. The system generates the corresponding transformation.
    Create a process chain containing the InfoPackage with which the MDM-ID is extracted, the data transfer process with which the MDM-ID is loaded into the attributes, and an attribute change run.
    regards
    Hemanth

  • I lost my iphone and dont have icloud downloaded in it...how can i get back my contact list?

    i lost my iphone and dont have icloud downloaded in it...how can i get back my contact list?

    Phone to Mac will be able to pull up your previous backup info from your computer so you can have a copy of Contacts, SMS, etc.
    http://www.macroplant.com/phonetomac/

  • How to Pull Vendor Database from SAP

    Hi All,
    Could someone guide me on how to pull the Vendor Database(Need : Vendor Code, Address, Vendor Description, Postal Code , State and the AP Remit Number) from SAP.
    Regards,
    Srikanth

    Hi,
    These are tables. Use SE16 for that.
    But what you want can also be acheived by the standard reports in SAP.
    Use
    1) S_ALR_87012086 - Vendor List
    2) S_ALR_87012087 - Address List
    Regards,
    SAPFICO

  • How to pull inventory from a specific storage location

    Hi guys,
    I wonder how can i determine which storage location should we pull  the stock from ... We have a plant, warehouse and a storage lcoation (XX01) and now i need to create another storgae location (XX02) for the same plant warehouse... now when i create the order system pulls the componenets from same old storage location (XX01)... even though i have inventory in the new storage location ....can somebody guide me how to pull from new storage location. Thanks much

    In addition to helpful hints from other experts, I would like to discuss on other three aspects:
    1.  MRP Run:  This new storage loc is normally operated by production staff before issuing to production orders.  Therefore, some planners do not want to include this stock in the MRP Run.  You can do so by exclude the storage location from MRP (via configuration or material master - set to 1 - Storage location stock Excluded in MRP).  Alternatively, you can plan your replenishment via MRP run by setting with reorder point concept.  You can maintain reorder point and replenishment qty in MRP4 if you create at plant/stor.loc. level and set Sloc MRP indicator to 2 (Stor.stock planned separately).  Then when you run MRP, if stor.loc.stock falls below reorder point, reservration to transfer (311 movement type) is created.  This can be an alternative to the nex point I would like to mention.
    2.  Replenishment:  If you want the production staff to plan replenishment themselves, you can use pull list (MF60).  With the certain setting in the MF60 variant screen, you can create the transfer from store to prod.sloc. or create manual reservation.  Pull list can combine requirements from many production orders, calculate net req. (prod.order reservation - current stock), and perform the replenishment for you. 
    3.  ATP:  Your ATP for component can be set to check the stock at the plant level instead of sloc.level by configuration.  You cannot exclude some of sloc. if you check at plant level though. 
    In terms of material master setup, besides Prod.Sloc.Location in MRP2, you can maintain the stock determination group.  Then, you can add more rules like first from consignment then own stock of sloc. A, then B, then C, for examples.
    Hope it helps.

  • How to get actual value from LOV list

    Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
    Thanks.

    Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
    <html:select property="UserJobCompanyId"
                             disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
                             onchange="submitform();">
                  <html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>                                                     
                </html:select>and I want to get CompanyID of selected Company.
    Thanks, again.

  • How to remove available downloads from the list

    how to remove available downloads from the list without it resuming when i open itunes or check for available downloads?

    There is not a way to remove them from the list.  Just let them download, and then delete them from your library when they are done.

Maybe you are looking for

  • HT1338 QuickTime Error: 2

    The share operation Master File has failed Share command- final cut pro x - master export - error QuickTime Error: 2. ?????

  • Update JList from database table

    Hi! I have a JList that take some value from a mysql table. I want that the JList add or remove value when insert or delete row from db table. Can you help me?

  • Powermac g4 cube, power button blinks twice

    hello,      i have a powermac g4 cube, i plugged it in and it turned on (i could here it) and i went to go turn on the apple display and i pressed the button as normal, and when i pressed it, it lites up and when i let go the light goes out. it is a

  • Internal mic static

    I have an M305-S4848 (Vista 64-bit) and all of a sudden, I am getting an extreme amount of static recorded when I use my internal mic.  It sounds like a drone, white noise, and occasionally blips of sounds.  Just last week it was fine, but now it's a

  • Can't see sent mail in Sent Mailbox

    I'm getting the message " the e-mail has not been read from the server" when I try to look at the e-mails that I have sent. This is driving me crazy!!!! Please, someone help me with this! Very Grateful for a speedy reply Nina