All Downloads are FREE. Search and download functionalities are using the official Maven repository.

COSE.KeySet Maven / Gradle / Ivy

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package COSE;

import com.upokecenter.cbor.CBORObject;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

/**
 *
 * @author jimsch
 */
public class KeySet {
    private List keys;
    
    public KeySet() {
        keys = new ArrayList();
    }

    
    public KeySet(CBORObject keysIn) {
        keys = new ArrayList();
        
        //  Ignore keys which we cannot deal with or are malformed.
        
        for (int i=0; i getList() {
        return keys;
    }
    
    public void remove(OneKey key) {
        keys.remove(key);
    }
    
    public Stream stream() {
        return keys.stream();
    }
    
    public Stream parallelStream() {
        return keys.parallelStream();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy