public PKCS9Attribute [ ] getAttributes ( ) { PKCS9Attribute [ ] attribs = new PKCS9Attribute [ attributes . size ( ) ] ; ObjectIdentifier oid ; int j = 0 ; for ( int i = 1 ; i < PKCS9Attribute . PKCS9_OIDS . length && j < attribs . length ; i ++ ) { attribs [ j ] = getAttribute ( PKCS9Attribute . PKCS9_OIDS [ i ] ) ; if ( attribs [ j ] != null ) j ++ ; } return attribs ; }
Get an array of all attributes in this set in order of OID .