Spectral classification of convex cones